Example 10
Converting APIs
[DllImport("Setupapi.dll", CharSet=CharSet.Auto, SetLastError = true)] public static extern bool SetupDiEnumDeviceInfo( int DeviceInfoSet,int MemberIndex,ref SP_DEVINFO_DATA DeviceInfoData); [DllImport("Setupapi.dll", CharSet=CharSet.Auto, SetLastError = true)] public static extern int SetupDiGetClassDevs( ref Guid ClassGuid, ref String Enumerator,int hwndParent,int Flags ); [DllImport("Setupapi.dll", CharSet=CharSet.Auto, SetLastError = true)] public static extern int SetupDiGetClassDevs( IntPtr ClassGuid, ref String Enumerator,int hwndParent,int Flags ); ...