Package com.sun.jna.platform.win32
Klasse Cfgmgr32Util
java.lang.Object
com.sun.jna.platform.win32.Cfgmgr32Util
Cfgmgr32 utility API.
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic String
CM_Get_Device_ID
(int devInst) Utility method to call Cfgmgr32's CM_Get_Device_ID_Size, allocates the required memory for the Buffer parameter based on the type mapping used, calls to CM_Get_Device_ID, and returns the received string.static Object
CM_Get_DevNode_Registry_Property
(int devInst, int ulProperty) Utility method to call Cfgmgr32's CM_Get_DevNode_Registry_Property that allocates the required memory for the Buffer parameter, and returns values of the appropriate type.
-
Konstruktordetails
-
Cfgmgr32Util
public Cfgmgr32Util()
-
-
Methodendetails
-
CM_Get_Device_ID
Utility method to call Cfgmgr32's CM_Get_Device_ID_Size, allocates the required memory for the Buffer parameter based on the type mapping used, calls to CM_Get_Device_ID, and returns the received string.- Parameter:
devInst
- Caller-supplied device instance handle that is bound to the local machine.- Gibt zurück:
- The device instance ID string.
- Löst aus:
Cfgmgr32Util.Cfgmgr32Exception
-
CM_Get_DevNode_Registry_Property
public static Object CM_Get_DevNode_Registry_Property(int devInst, int ulProperty) throws Cfgmgr32Util.Cfgmgr32Exception Utility method to call Cfgmgr32's CM_Get_DevNode_Registry_Property that allocates the required memory for the Buffer parameter, and returns values of the appropriate type.- Parameter:
devInst
- Caller-supplied device instance handle that is bound to the local machine.ulProperty
- ACM_DRP_
-prefixed constant value that identifies the device property to be obtained from the registry. These constants are defined in Cfgmgr32.h.- Gibt zurück:
- An
Object
containing the specified registry property for the device.If the property is of type
WinNT.REG_SZ
, aString
is returned.If the property is of type
WinNT.REG_MULTI_SZ
, an array ofString
is returned.If the property is of type
WinNT.REG_DWORD
, anInteger
is returned.If the property is of type
WinNT.REG_BINARY
, an array ofByte
is returned.If no value exists for this property (error
Cfgmgr32.CR_NO_SUCH_VALUE
), returnsnull
. - Löst aus:
Cfgmgr32Util.Cfgmgr32Exception
- on any errors other thanCfgmgr32.CR_NO_SUCH_VALUE
-