Desktop Functions: Smart Device Functions:
|
SetupDiEnumDeviceInfo (setupapi)
C# Signature:
[DllImport("setupapi.dll", SetLastError=true)] VB Signature:
<DllImport("setupapi.dll", _ User-Defined Types:Alternative Managed API:Do you know one? Please contribute it! Notes:The SetupDiEnumDeviceInfo function retrieves a context structure for a device information element of the specified device information set. Each call returns information about one device. The function can be called repeatedly to get information about several devices. Parameters in Handle to the device information set containing the devices for which to return element information. in Zero-based index to the list of interfaces in the device information set. You should first call this function with the MemberIndex parameter set to zero to obtain the first interface. Then, repeatedly increment MemberIndex and retrieve an interface until this function fails and GetLastError returns ERROR_NO_MORE_ITEMS. out Pointer to an SP_DEVINFO_DATA structure that receives information about this element. You must set the cbSize member to sizeof(SP_DEVINFO_DATA) before calling this function. Return Values If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError. Tips & Tricks:Please add some! Sample Code:Please add some! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|