I've been writing some tools to interact with a USB Flash Drive (removable drive) for our portable application. We are going to be tying some relevant information directly to the flash drive via the serial number (device serial number, not the volume serial number which is formatting based)
I am able to read the device serial number. What is required to write/modify that device serial number?
I am open to seeing this in any language really (Perl, Ruby, Python, C/C++, .NET anything, etc) but C# is the current code base so what would be first preference.
If a code snippet or script can't be found, some canned application or tool (binary, etc) or similar would be helpful as well.