As shown, I insert U disk into the computer, and then under the resource manager of universal serial bus (USB) to look at the properties of the U disk, you can see the location of the USB mass storage device: Port_0022. Hub_ # 0001, could you tell me if I use c # to write such a function, how to write ah, have understand the great god give directions, thank you very much
CodePudding user response:
Check Windows API inside there should be a way to get information,
CodePudding user response:
reference 1/f, 711 glaciers response: Windows API should check there are ways to get information, inside Is that inside the Win32_USBController, because I never used this before, so don't know much about it CodePudding user response:
http://www.luofenming.com/show.aspx? Id=ART2017122900001 In this I do before this function, you can consult CodePudding user response:
Thank you, I looked at you, you wrote for the function of the disk, insert port on how to get you know CodePudding user response:
https://docs.microsoft.com/zh-cn/windows/win32/wmisdk/using-wmi Official documentation, there is no Chinese managed to see, if you think you may submit your own translation can go on making translation, CodePudding user response:
https://docs.microsoft.com/zh-cn/dotnet/framework/unmanaged-api/wmi/ Less to give you a call, the wmi explanation is above, is here. Under the net how to call CodePudding user response:
refer to 6th floor fat uncle write code reply: https://docs.microsoft.com/zh-cn/dotnet/framework/unmanaged-api/wmi/ Few parts of the call to you, is the interpretation of the wmi above, here is the.net under how to call Thank you, this is a bit difficult for me, because I have not used this before, I ask you to implement this feature easy CodePudding user response:
refer to 7th floor Aspirant_Happy response: Quote: refer to the sixth floor fat uncle write code reply: https://docs.microsoft.com/zh-cn/dotnet/framework/unmanaged-api/wmi/ Few parts of the call to you, is the interpretation of the wmi above, here is the.net under how to call Thank you, this is a bit difficult for me, because I have not used this before, I ask you to implement this feature is it easy to Ah, not hard after Windows xp all hardware information push into the wmi service, you are using. Net calls the service interface for hardware information, it is very simple, not control him CodePudding user response:
refer to the eighth floor fat uncle write code reply: Quote: refer to 7th floor Aspirant_Happy response: Quote: refer to the sixth floor fat uncle write code reply: https://docs.microsoft.com/zh-cn/dotnet/framework/unmanaged-api/wmi/ Few parts of the call to you, is the interpretation of the wmi above, here is the.net under how to call Thank you, this is a bit difficult for me, because I have not used this before, I ask you to implement this feature is it easy to Ah, not hard after Windows xp all hardware information push into the wmi service, you are using. Net calls the service interface for hardware information, it is very simple, not control his Do you have any similar Demo, I this thing make me for a long time, every day a head two big