 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func CMGetDevNodeProperty(devInst *windows.Handle, propKey *DEVPROPKEY, propType *uint32, ...) error
- func CMGetDeviceIDList(filter *win32.LPWSTR, buf []uint16) error
- func CMGetDeviceIDListSize(filter *win32.LPWSTR, size *uint32) error
- func CMLocateDevNode(devInst **windows.Handle, deviceID []uint16) error
- type DEVPROPKEY
- type Device
Constants ¶
      View Source
      
  
const ( // Configuration Manager return codes CR_SUCCESS = 0x00 // Filter flags CM_GETIDLIST_FILTER_ENUMERATOR = 0x00000001 CM_GETIDLIST_FILTER_PRESENT = 0x00000100 DEVPROP_TYPE_UINT32 uint32 = 0x00000007 )
Variables ¶
      View Source
      
  
var ( // https://github.com/Infinidat/infi.devicemanager/blob/8be9ead6b04ff45c63d9e3bc70d82cceafb75c47/src/infi/devicemanager/setupapi/properties.py#L138C1-L143C34 DEVPKEYDeviceBusNumber = &DEVPROPKEY{ FmtID: ole.GUID{ Data1: 0xa45c254e, Data2: 0xdf1c, Data3: 0x4efd, Data4: [8]byte{0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0}, }, PID: 23, } // https://github.com/Infinidat/infi.devicemanager/blob/8be9ead6b04ff45c63d9e3bc70d82cceafb75c47/src/infi/devicemanager/setupapi/properties.py#L187-L192 DEVPKEYDeviceAddress = &DEVPROPKEY{ FmtID: ole.GUID{ Data1: 0xa45c254e, Data2: 0xdf1c, Data3: 0x4efd, Data4: [8]byte{0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0}, }, PID: 30, } )
Functions ¶
func CMGetDevNodeProperty ¶
Types ¶
type DEVPROPKEY ¶
type DEVPROPKEY struct {
	FmtID ole.GUID
	PID   uint32
}
    DEVPROPKEY represents a device property key (GUID + pid)
 Click to show internal directories. 
   Click to hide internal directories.