![]() ![]() How can I retrieve the manufacturer serial number of an USB flash drive in Delphi? How can I retrieve the manufacturer serial number of an USB flash drive in.ĮDIT checking the only USB device I had handy returned a hardware serial number of 'u' but a very long and valid looking PNPDeviceID which appeared to include a serial number, which is why I suggested that field. Portable Delphi creates a portable Delphi IDE that can be started from e.g. You can then use the PNPDeviceID as a unique identifier. For example, executing the query SELECT * FROM Win32_DiskDrive Where InterfaceType = 'USB' returns a wealth of information about all of the USB devices currently connected to the machine. ![]() your interested in querying the classes using SQL like syntax queries. You will want to keep a link to the official Microsoft which will help you with what query to execute to get what information. ![]() The free download includes source and an example project that allows you to play with the API and queries to your hearts content. You can use the WMI library by which takes most of the pain of using WMI queries. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |