BetterExplorer.UsbEject.DeviceClass.DeviceClass C# (CSharp) Метод

DeviceClass() защищенный Метод

Initializes a new instance of the DeviceClass class.
protected DeviceClass ( System.Guid classGuid, IntPtr hwndParent ) : System
classGuid System.Guid A device class Guid.
hwndParent System.IntPtr The handle of the top-level window to be used for any user interface or IntPtr.Zero for no handle.
Результат System
		protected DeviceClass(Guid classGuid, IntPtr hwndParent) {
			_classGuid = classGuid;

			_deviceInfoSet = Native.SetupDiGetClassDevs(ref _classGuid, 0, hwndParent, Native.DIGCF_DEVICEINTERFACE | Native.DIGCF_PRESENT);
			if (_deviceInfoSet == new IntPtr(Native.INVALID_HANDLE_VALUE))
				throw new Win32Exception(Marshal.GetLastWin32Error());
		}

Same methods

DeviceClass::DeviceClass ( System.Guid classGuid ) : System