Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm trying to find a USB storage device where there is an aspect which is programmable?

Such as an EPROM component to allow you to change the model/serial number or another piece of information which isn't stored within the file system. Or even a way to hide information within the file system which can't be accessed by traditional file copying/disk cloning methods.

We have an offline data transfer process and would like to restrict/license the use by limiting the software to only work with the USB storage devices that we provide for the process.
Posted

1 solution

Not fully safe, but generally good enough:
Get the DeviceModel
C#
ManagementObjectSearcher mos = new ManagementObjectSearcher("select model from Win32_DiskDrive");
encrypt that value and store it in a Resource file.
When you run your program, just check that a disk with an acceptable name is available.
You could add further details like VendorID, PrductID etc. If you purchase enough items, a manufacturer might change the ProductID for you - and then you are on the safe side.
 
Share this answer
 
Comments
Stephen Hewison 5-Nov-12 11:47am    
Thanks for the response. +5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900