G
Guest
Hy,
Can anybody tell me how to get the function SetupDiGetDeviceInstanceId over
Platform Invoke Call to my C# Application.
I tried to code it, but I always get an error.
Can you help me and send a little example code ?
My E-Mail Adress is (e-mail address removed)
[DllImport("SetupApi.dll", CharSet=CharSet.Unicode, SetLastError=true)]
public static extern Boolean
SetupDiGetDeviceInstanceId(IntPtr DeviceInfoSet,
SP_DEVINFO_DATA DeviceInfoData,
ref StringBuilder DeviceInstanceId,
Int32 DeviceInstanceIdSize,
ref Int32 RequiredSize);
Can anybody tell me how to get the function SetupDiGetDeviceInstanceId over
Platform Invoke Call to my C# Application.
I tried to code it, but I always get an error.
Can you help me and send a little example code ?
My E-Mail Adress is (e-mail address removed)
[DllImport("SetupApi.dll", CharSet=CharSet.Unicode, SetLastError=true)]
public static extern Boolean
SetupDiGetDeviceInstanceId(IntPtr DeviceInfoSet,
SP_DEVINFO_DATA DeviceInfoData,
ref StringBuilder DeviceInstanceId,
Int32 DeviceInstanceIdSize,
ref Int32 RequiredSize);