Smart Device Functions:
Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than setupapi, prefix the name with the module name and a period.
[DllImport(@"setupapi.dll", CharSet=CharSet.Auto, SetLastError = true)]
Declare Function SetupDiEnumDeviceInterfaces Lib "setupapi.dll" (TODO) As TODO
Alternative Managed API:
Do you know one? Please contribute it!
Tips & Tricks:
//You need to create a structure for the deviceInterfaceData like this....
public struct SP_DEVICE_INTERFACE_DATA
//Then initialize the cbSize value like this in your calling method
SP_DEVICE_INTERFACE_DATA devData = new SP_DEVICE_INTERFACE_DATA();
devData.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(devData);
// failure to do so will always return false (which is the value you'll also get if the device is not connected)
// Here's what the call looks like...
// The DeviceGUID parameter will be device dependant. Look in the Manufacturer's sdk or api for the correct guid for your device
Please edit this page!
Do you have...