I did this in my MIDI project to allow a dynamic naming via an e.g. address switch to have more than one devices connected and recognized. Please have a look at the source code at my bitbucket. Unfortunately I have not time to deep dive into my code, so please try it at your own - but as a long time V-USB-user you should have no problem.