Package com.sun.jna.platform.win32
Interface Cfgmgr32
- All Superinterfaces:
- Library
Windows Cfgmgr32.
- Author:
- widdis[at]gmail[dot]com
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.sun.jna.LibraryLibrary.Handler
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Cfgmgr32static final intFields inherited from interface com.sun.jna.LibraryOPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
- 
Method SummaryModifier and TypeMethodDescriptionintCM_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.intCM_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.intCM_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.intCM_Get_DevNode_Registry_Property(int dnDevInst, int ulProperty, IntByReference pulRegDataType, Pointer buffer, IntByReference pulLength, int ulFlags) The CM_Get_DevNode_Registry_Property function retrieves a specified device property from the registry.intCM_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.intCM_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.intCM_Locate_DevNode(IntByReference pdnDevInst, 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.
- 
Field Details- 
INSTANCE
- 
CR_SUCCESSstatic final int CR_SUCCESS- See Also:
 
- 
CR_DEFAULTstatic final int CR_DEFAULT- See Also:
 
- 
CR_OUT_OF_MEMORYstatic final int CR_OUT_OF_MEMORY- See Also:
 
- 
CR_INVALID_POINTERstatic final int CR_INVALID_POINTER- See Also:
 
- 
CR_INVALID_FLAGstatic final int CR_INVALID_FLAG- See Also:
 
- 
CR_INVALID_DEVNODEstatic final int CR_INVALID_DEVNODE- See Also:
 
- 
CR_INVALID_DEVINSTstatic final int CR_INVALID_DEVINST- See Also:
 
- 
CR_INVALID_RES_DESstatic final int CR_INVALID_RES_DES- See Also:
 
- 
CR_INVALID_LOG_CONFstatic final int CR_INVALID_LOG_CONF- See Also:
 
- 
CR_INVALID_ARBITRATORstatic final int CR_INVALID_ARBITRATOR- See Also:
 
- 
CR_INVALID_NODELISTstatic final int CR_INVALID_NODELIST- See Also:
 
- 
CR_DEVNODE_HAS_REQSstatic final int CR_DEVNODE_HAS_REQS- See Also:
 
- 
CR_DEVINST_HAS_REQSstatic final int CR_DEVINST_HAS_REQS- See Also:
 
- 
CR_INVALID_RESOURCEIDstatic final int CR_INVALID_RESOURCEID- See Also:
 
- 
CR_DLVXD_NOT_FOUNDstatic final int CR_DLVXD_NOT_FOUND- See Also:
 
- 
CR_NO_SUCH_DEVNODEstatic final int CR_NO_SUCH_DEVNODE- See Also:
 
- 
CR_NO_SUCH_DEVINSTstatic final int CR_NO_SUCH_DEVINST- See Also:
 
- 
CR_NO_MORE_LOG_CONFstatic final int CR_NO_MORE_LOG_CONF- See Also:
 
- 
CR_NO_MORE_RES_DESstatic final int CR_NO_MORE_RES_DES- See Also:
 
- 
CR_ALREADY_SUCH_DEVNODEstatic final int CR_ALREADY_SUCH_DEVNODE- See Also:
 
- 
CR_ALREADY_SUCH_DEVINSTstatic final int CR_ALREADY_SUCH_DEVINST- See Also:
 
- 
CR_INVALID_RANGE_LISTstatic final int CR_INVALID_RANGE_LIST- See Also:
 
- 
CR_INVALID_RANGEstatic final int CR_INVALID_RANGE- See Also:
 
- 
CR_FAILUREstatic final int CR_FAILURE- See Also:
 
- 
CR_NO_SUCH_LOGICAL_DEVstatic final int CR_NO_SUCH_LOGICAL_DEV- See Also:
 
- 
CR_CREATE_BLOCKEDstatic final int CR_CREATE_BLOCKED- See Also:
 
- 
CR_NOT_SYSTEM_VMstatic final int CR_NOT_SYSTEM_VM- See Also:
 
- 
CR_REMOVE_VETOEDstatic final int CR_REMOVE_VETOED- See Also:
 
- 
CR_APM_VETOEDstatic final int CR_APM_VETOED- See Also:
 
- 
CR_INVALID_LOAD_TYPEstatic final int CR_INVALID_LOAD_TYPE- See Also:
 
- 
CR_BUFFER_SMALLstatic final int CR_BUFFER_SMALL- See Also:
 
- 
CR_NO_ARBITRATORstatic final int CR_NO_ARBITRATOR- See Also:
 
- 
CR_NO_REGISTRY_HANDLEstatic final int CR_NO_REGISTRY_HANDLE- See Also:
 
- 
CR_REGISTRY_ERRORstatic final int CR_REGISTRY_ERROR- See Also:
 
- 
CR_INVALID_DEVICE_IDstatic final int CR_INVALID_DEVICE_ID- See Also:
 
- 
CR_INVALID_DATAstatic final int CR_INVALID_DATA- See Also:
 
- 
CR_INVALID_APIstatic final int CR_INVALID_API- See Also:
 
- 
CR_DEVLOADER_NOT_READYstatic final int CR_DEVLOADER_NOT_READY- See Also:
 
- 
CR_NEED_RESTARTstatic final int CR_NEED_RESTART- See Also:
 
- 
CR_NO_MORE_HW_PROFILESstatic final int CR_NO_MORE_HW_PROFILES- See Also:
 
- 
CR_DEVICE_NOT_THEREstatic final int CR_DEVICE_NOT_THERE- See Also:
 
- 
CR_NO_SUCH_VALUEstatic final int CR_NO_SUCH_VALUE- See Also:
 
- 
CR_WRONG_TYPEstatic final int CR_WRONG_TYPE- See Also:
 
- 
CR_INVALID_PRIORITYstatic final int CR_INVALID_PRIORITY- See Also:
 
- 
CR_NOT_DISABLEABLEstatic final int CR_NOT_DISABLEABLE- See Also:
 
- 
CR_FREE_RESOURCESstatic final int CR_FREE_RESOURCES- See Also:
 
- 
CR_QUERY_VETOEDstatic final int CR_QUERY_VETOED- See Also:
 
- 
CR_CANT_SHARE_IRQstatic final int CR_CANT_SHARE_IRQ- See Also:
 
- 
CR_NO_DEPENDENTstatic final int CR_NO_DEPENDENT- See Also:
 
- 
CR_SAME_RESOURCESstatic final int CR_SAME_RESOURCES- See Also:
 
- 
CR_NO_SUCH_REGISTRY_KEYstatic final int CR_NO_SUCH_REGISTRY_KEY- See Also:
 
- 
CR_INVALID_MACHINENAMEstatic final int CR_INVALID_MACHINENAME- See Also:
 
- 
CR_REMOTE_COMM_FAILUREstatic final int CR_REMOTE_COMM_FAILURE- See Also:
 
- 
CR_MACHINE_UNAVAILABLEstatic final int CR_MACHINE_UNAVAILABLE- See Also:
 
- 
CR_NO_CM_SERVICESstatic final int CR_NO_CM_SERVICES- See Also:
 
- 
CR_ACCESS_DENIEDstatic final int CR_ACCESS_DENIED- See Also:
 
- 
CR_CALL_NOT_IMPLEMENTEDstatic final int CR_CALL_NOT_IMPLEMENTED- See Also:
 
- 
CR_INVALID_PROPERTYstatic final int CR_INVALID_PROPERTY- See Also:
 
- 
CR_DEVICE_INTERFACE_ACTIVEstatic final int CR_DEVICE_INTERFACE_ACTIVE- See Also:
 
- 
CR_NO_SUCH_DEVICE_INTERFACEstatic final int CR_NO_SUCH_DEVICE_INTERFACE- See Also:
 
- 
CR_INVALID_REFERENCE_STRINGstatic final int CR_INVALID_REFERENCE_STRING- See Also:
 
- 
CR_INVALID_CONFLICT_LISTstatic final int CR_INVALID_CONFLICT_LIST- See Also:
 
- 
CR_INVALID_INDEXstatic final int CR_INVALID_INDEX- See Also:
 
- 
CR_INVALID_STRUCTURE_SIZEstatic final int CR_INVALID_STRUCTURE_SIZE- See Also:
 
- 
NUM_CR_RESULTSstatic final int NUM_CR_RESULTS- See Also:
 
- 
CM_LOCATE_DEVNODE_NORMALstatic final int CM_LOCATE_DEVNODE_NORMAL- See Also:
 
- 
CM_LOCATE_DEVNODE_PHANTOMstatic final int CM_LOCATE_DEVNODE_PHANTOM- See Also:
 
- 
CM_LOCATE_DEVNODE_CANCELREMOVEstatic final int CM_LOCATE_DEVNODE_CANCELREMOVE- See Also:
 
- 
CM_LOCATE_DEVNODE_NOVALIDATIONstatic final int CM_LOCATE_DEVNODE_NOVALIDATION- See Also:
 
- 
CM_LOCATE_DEVNODE_BITSstatic final int CM_LOCATE_DEVNODE_BITS- See Also:
 
- 
CM_DRP_DEVICEDESCstatic final int CM_DRP_DEVICEDESC- See Also:
 
- 
CM_DRP_HARDWAREIDstatic final int CM_DRP_HARDWAREID- See Also:
 
- 
CM_DRP_COMPATIBLEIDSstatic final int CM_DRP_COMPATIBLEIDS- See Also:
 
- 
CM_DRP_SERVICEstatic final int CM_DRP_SERVICE- See Also:
 
- 
CM_DRP_CLASSstatic final int CM_DRP_CLASS- See Also:
 
- 
CM_DRP_CLASSGUIDstatic final int CM_DRP_CLASSGUID- See Also:
 
- 
CM_DRP_DRIVERstatic final int CM_DRP_DRIVER- See Also:
 
- 
CM_DRP_CONFIGFLAGSstatic final int CM_DRP_CONFIGFLAGS- See Also:
 
- 
CM_DRP_MFGstatic final int CM_DRP_MFG- See Also:
 
- 
CM_DRP_FRIENDLYNAMEstatic final int CM_DRP_FRIENDLYNAME- See Also:
 
- 
CM_DRP_LOCATION_INFORMATIONstatic final int CM_DRP_LOCATION_INFORMATION- See Also:
 
- 
CM_DRP_PHYSICAL_DEVICE_OBJECT_NAMEstatic final int CM_DRP_PHYSICAL_DEVICE_OBJECT_NAME- See Also:
 
- 
CM_DRP_CAPABILITIESstatic final int CM_DRP_CAPABILITIES- See Also:
 
- 
CM_DRP_UI_NUMBERstatic final int CM_DRP_UI_NUMBER- See Also:
 
- 
CM_DRP_UPPERFILTERSstatic final int CM_DRP_UPPERFILTERS- See Also:
 
- 
CM_DRP_LOWERFILTERSstatic final int CM_DRP_LOWERFILTERS- See Also:
 
- 
CM_DRP_BUSTYPEGUIDstatic final int CM_DRP_BUSTYPEGUID- See Also:
 
- 
CM_DRP_LEGACYBUSTYPEstatic final int CM_DRP_LEGACYBUSTYPE- See Also:
 
- 
CM_DRP_BUSNUMBERstatic final int CM_DRP_BUSNUMBER- See Also:
 
- 
CM_DRP_ENUMERATOR_NAMEstatic final int CM_DRP_ENUMERATOR_NAME- See Also:
 
- 
CM_DRP_SECURITYstatic final int CM_DRP_SECURITY- See Also:
 
- 
CM_DRP_SECURITY_SDSstatic final int CM_DRP_SECURITY_SDS- See Also:
 
- 
CM_DRP_DEVTYPEstatic final int CM_DRP_DEVTYPE- See Also:
 
- 
CM_DRP_EXCLUSIVEstatic final int CM_DRP_EXCLUSIVE- See Also:
 
- 
CM_DRP_CHARACTERISTICSstatic final int CM_DRP_CHARACTERISTICS- See Also:
 
- 
CM_DRP_ADDRESSstatic final int CM_DRP_ADDRESS- See Also:
 
- 
CM_DRP_UI_NUMBER_DESC_FORMATstatic final int CM_DRP_UI_NUMBER_DESC_FORMAT- See Also:
 
- 
CM_DRP_DEVICE_POWER_DATAstatic final int CM_DRP_DEVICE_POWER_DATA- See Also:
 
- 
CM_DRP_REMOVAL_POLICYstatic final int CM_DRP_REMOVAL_POLICY- See Also:
 
- 
CM_DRP_REMOVAL_POLICY_HW_DEFAULTstatic final int CM_DRP_REMOVAL_POLICY_HW_DEFAULT- See Also:
 
- 
CM_DRP_REMOVAL_POLICY_OVERRIDEstatic final int CM_DRP_REMOVAL_POLICY_OVERRIDE- See Also:
 
- 
CM_DRP_INSTALL_STATEstatic final int CM_DRP_INSTALL_STATE- See Also:
 
- 
CM_DRP_LOCATION_PATHSstatic final int CM_DRP_LOCATION_PATHS- See Also:
 
- 
CM_DRP_BASE_CONTAINERIDstatic final int CM_DRP_BASE_CONTAINERID- See Also:
 
 
- 
- 
Method Details- 
CM_Locate_DevNodeThe 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.- Parameters:
- 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_NOVALIDATION
- Returns:
- If the operation succeeds, CM_Locate_DevNode returns CR_SUCCESS. Otherwise, the function returns one of the CR_Xxx error codes that are defined in Cfgmgr32.h.
- See Also:
 
- 
CM_Get_ParentThe 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.- Parameters:
- 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.
- Returns:
- If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h.
- See Also:
 
- 
CM_Get_ChildThe 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.- Parameters:
- 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.
- Returns:
- If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h.
- See Also:
 
- 
CM_Get_SiblingThe 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.- Parameters:
- 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.
- Returns:
- If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h.
- See Also:
 
- 
CM_Get_Device_IDThe CM_Get_Device_ID function retrieves the device instance ID for a specified device instance on the local machine.- Parameters:
- 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.
- Returns:
- If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h.
- See Also:
 
- 
CM_Get_Device_ID_SizeThe 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.- Parameters:
- 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.
- Returns:
- If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h.
- See Also:
 
- 
CM_Get_DevNode_Registry_Propertyint CM_Get_DevNode_Registry_Property(int dnDevInst, int ulProperty, IntByReference pulRegDataType, Pointer buffer, IntByReference pulLength, int ulFlags) The CM_Get_DevNode_Registry_Property function retrieves a specified device property from the registry.- Parameters:
- dnDevInst- A caller-supplied device instance handle that is bound to the local machine.
- ulProperty- A- CM_DRP_-prefixed constant value that identifies the device property to be obtained from the registry. These constants are defined in Cfgmgr32.h.
- pulRegDataType- Optional, can be- null. A pointer to a location that receives the registry data type, specified as a- REG_-prefixed constant defined in Winnt.h.
- buffer- Optional, can be- null. A pointer to a caller-supplied buffer that receives the requested device property. If this value is- null, the function supplies only the length of the requested data in the address pointed to by- pulLength.
- pulLength- A pointer to a- ULONGvariable into which the function stores the length, in bytes, of the requested device property.- If the Buffer parameter is set to - null, the ULONG variable must be set to zero.- If the Buffer parameter is not set to - null, the- ULONGvariable must be set to the length, in bytes, of the caller-supplied buffer.
- ulFlags- Not used, must be zero.
- Returns:
- If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of theCR_-prefixed error codes that are defined in Cfgmgr32.h.
 
 
-