Library.Handler
Modifier and Type | Field and Description |
---|---|
static int |
CM_LOCATE_DEVNODE_BITS |
static int |
CM_LOCATE_DEVNODE_CANCELREMOVE |
static int |
CM_LOCATE_DEVNODE_NORMAL |
static int |
CM_LOCATE_DEVNODE_NOVALIDATION |
static int |
CM_LOCATE_DEVNODE_PHANTOM |
static int |
CR_BUFFER_SMALL |
static int |
CR_SUCCESS |
static Cfgmgr32 |
INSTANCE |
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
Modifier and Type | Method and Description |
---|---|
int |
CM_Get_Child(IntByReference pdnDevInst,
int dnDevInst,
int ulFlags)
The CM_Get_Child function is used to retrieve a device instance handle to
the first child node of a specified device node (devnode) in the local
machine's device tree.
|
int |
CM_Get_Device_ID_Size(IntByReference pulLen,
int dnDevInst,
int ulFlags)
The CM_Get_Device_ID_Size function retrieves the buffer size required to
hold a device instance ID for a device instance on the local machine.
|
int |
CM_Get_Device_ID(int devInst,
Pointer Buffer,
int BufferLen,
int ulFlags)
The CM_Get_Device_ID function retrieves the device instance ID for a
specified device instance on the local machine.
|
int |
CM_Get_Parent(IntByReference pdnDevInst,
int dnDevInst,
int ulFlags)
The CM_Get_Parent function obtains a device instance handle to the parent
node of a specified device node (devnode) in the local machine's device
tree.
|
int |
CM_Get_Sibling(IntByReference pdnDevInst,
int dnDevInst,
int ulFlags)
The CM_Get_Sibling function obtains a device instance handle to the next
sibling node of a specified device node (devnode) in the local machine's
device tree.
|
int |
CM_Locate_DevNode(IntByReference pdnDevInst,
java.lang.String pDeviceID,
int ulFlags)
The CM_Locate_DevNode function obtains a device instance handle to the
device node that is associated with a specified device instance ID on the
local machine.
|
static final Cfgmgr32 INSTANCE
static final int CR_SUCCESS
static final int CR_BUFFER_SMALL
static final int CM_LOCATE_DEVNODE_NORMAL
static final int CM_LOCATE_DEVNODE_PHANTOM
static final int CM_LOCATE_DEVNODE_CANCELREMOVE
static final int CM_LOCATE_DEVNODE_NOVALIDATION
static final int CM_LOCATE_DEVNODE_BITS
int CM_Locate_DevNode(IntByReference pdnDevInst, java.lang.String pDeviceID, int ulFlags)
pdnDevInst
- A pointer to a device instance handle that CM_Locate_DevNode
retrieves. The retrieved handle is bound to the local machine.pDeviceID
- A pointer to a NULL-terminated string representing a device
instance ID. If this value is NULL, or if it points to a
zero-length string, the function retrieves a device instance
handle to the device at the root of the device tree. *ulFlags
- A variable of ULONG type that supplies one of the following
flag values that apply if the caller supplies a device
instance identifier: CM_LOCATE_DEVNODE_NORMAL,
CM_LOCATE_DEVNODE_PHANTOM, CM_LOCATE_DEVNODE_CANCELREMOVE, or
CM_LOCATE_DEVNODE_NOVALIDATIONint CM_Get_Parent(IntByReference pdnDevInst, int dnDevInst, int ulFlags)
pdnDevInst
- Caller-supplied pointer to the device instance handle to the
parent node that this function retrieves. The retrieved handle
is bound to the local machine.dnDevInst
- Caller-supplied device instance handle that is bound to the
local machine.ulFlags
- Not used, must be zero.int CM_Get_Child(IntByReference pdnDevInst, int dnDevInst, int ulFlags)
pdnDevInst
- Caller-supplied pointer to the device instance handle to the
child node that this function retrieves. The retrieved handle
is bound to the local machine.dnDevInst
- Caller-supplied device instance handle that is bound to the
local machine.ulFlags
- Not used, must be zero.int CM_Get_Sibling(IntByReference pdnDevInst, int dnDevInst, int ulFlags)
pdnDevInst
- Caller-supplied pointer to the device instance handle to the
sibling node that this function retrieves. The retrieved
handle is bound to the local machine.dnDevInst
- Caller-supplied device instance handle that is bound to the
local machine.ulFlags
- Not used, must be zero.int CM_Get_Device_ID(int devInst, Pointer Buffer, int BufferLen, int ulFlags)
devInst
- Caller-supplied device instance handle that is bound to the
local machine.Buffer
- Address of a buffer to receive a device instance ID string.
The required buffer size can be obtained by calling
CM_Get_Device_ID_Size, then incrementing the received value to
allow room for the string's terminating NULL.BufferLen
- Caller-supplied length, in characters, of the buffer specified
by Buffer.ulFlags
- Not used, must be zero.int CM_Get_Device_ID_Size(IntByReference pulLen, int dnDevInst, int ulFlags)
pulLen
- Receives a value representing the required buffer size, in
characters.dnDevInst
- Caller-supplied device instance handle that is bound to the
local machine.ulFlags
- Not used, must be zero.