Hi again mav, I actually tried the PNPDeviceID for my LG UP3D USB Device and it simply informed nothing. *But* going to msinfo32.exe gives me the following output: LG UP3D USB Device USBSTOR\DISK&VEN_LG_UP3D&PROD_&REV_\200508010001&0 USB Mass Storage Device USB\VID_043E&PID_7090\200508010001 which tells me that windows actually has a PNPDeviceId for it, that being VID_043E&PID_7090 (according to the article at Coding4Fun about the wireless usb PC Lock). Now the question is: Why? you can check out a printscreen I've done of the simple app for identifying the hardware HERE Cheers, Vini
Marcos Accioly
Posts
-
Using .NET's WMI to Identify Pen-Drive's Unique ID -
Using .NET's WMI to Identify Pen-Drive's Unique IDmav.northwind wrote:
At least with the 4 sticks (3 different brands) I tried it with, they all kept their PNPDeviceID, even when I plugged them into another computer. But your mileage may vary...
You're quite right, mav... Looking through msinfo32.exe I could check that it remains the same, actually. I also tested on another workstation. Thanks a lot for your help. And btw: the link that Dave (if Im not wrong) posted is very nice. If you wanna take a peek: http://msdn.microsoft.com/coding4fun/someassemblyrequired/isthatyou/default.aspx Cheers,
-
DIsplay a rtf document in RichTextBoxYou are mastering the art of finding the answers for your own questions! =) Good job! Vini
-
Calling a Web Service From Desktop AppSorry Mark for being confusing. All I wanna do is to copy, from my windows app, a bunch of configuration in an xml file to a remote server. Doesn't need necessarily be via web services. Does File.Copy accept and ftp address or something similar? Cheers! Vini
-
problem with ref and out parametersAren't you missing the "out" modifier in the calling function? []'s Vini
-
Calling a Web Service From Desktop AppThe question is quite simple (but I could not find the best answer myself): What is the best C# way to transfer a file from a Desktop application (Windows Application) to a Server for persistance? Persisting information about a windows form is ok, but how about persisting it somewhere else on the web? Regards, Vini
-
Using .NET's WMI to Identify Pen-Drive's Unique IDmav.northwind wrote:
Hi! I think Win32_DiskDrive.PNPDeviceID is unique. I tried it with two idential usb sticks and they gave different PNPDeviceID's.
Hi Mav... Tried that but unfortunately I think I couldn't use that, as windows gives your pen-drive a different PNPDeviceID each time you plug it in. =) I needed something that could tell "Oh, this is Jimmy's pen-drive" for instance. I am developing an app in which, along with user and password, the client system has to provide an unique ID for the pen-drive being used with the app. Any other ideas? Regards... Vini
-
Declare class as partial class in CodeDOMHappens to me all the time: ask a question to which I didn't bother enough/was too deep thinking to quickly find the answer myself. Best regards... :-D Vini - Csharpian
-
Using .NET's WMI to Identify Pen-Drive's Unique IDHello, I have been trying to modify the available .NET WMI examples on The Code Project so that I could uniquely identify a pen-drive (usb key). Unlike the hard disks, pen drives do not expose a property like UniqueID. Any ideas of what I could use to uniquely identify it? I have already read and tried the "normal" examples available on .NET's WMI. Thank you all in advance, Vini - CSharping a lot