internal static extern unsafe bool SetupDiEnumDeviceInterfaces( DeviceInformationSetHandle DeviceInfoSet, IntPtr DeviceInfoData, ref Guid InterfaceClassGuid, UInt32 MemberIndex, ref DeviceInterface.Native DeviceInterfaceData );
internal DeviceInformationSet(string enumerator, DeviceInformationClassFlags flags) { handle = SetupDiGetClassDevsEnumerator(IntPtr.Zero, enumerator, IntPtr.Zero, flags); if (handle.IsInvalid) { throw new Win32Exception(); } }
internal static extern unsafe bool SetupDiGetDeviceInterfaceDetailW( DeviceInformationSetHandle DeviceInfoSet, ref DeviceInterface.Native DeviceInterfaceData, byte *DeviceInterfaceDetailData, UInt32 DeviceInterfaceDetailDataSize, ref UInt32 RequiredSize, IntPtr DeviceInfoData );
internal DeviceInformationSet(Guid guid, DeviceInformationClassFlags flags) { handle = SetupDiGetClassDevsGuid(ref guid, IntPtr.Zero, IntPtr.Zero, flags); if (handle.IsInvalid) { throw new Win32Exception(); } this.guid = guid; }