com.moesol.bindings.platform_sdk.windows_api
Class HKEY
java.lang.Object
com.moesol.bindings.platform_sdk.windows_api.HANDLE
com.moesol.bindings.platform_sdk.windows_api.HKEY
public class HKEY
- extends HANDLE
Constructor Summary |
HKEY(long handle)
|
HKEY(long handle,
boolean temporary)
|
CLASSES_ROOT
public static final HKEY CLASSES_ROOT
CURRENT_USER
public static final HKEY CURRENT_USER
LOCAL_MACHINE
public static final HKEY LOCAL_MACHINE
USERS
public static final HKEY USERS
PERFORMANCE_DATA
public static final HKEY PERFORMANCE_DATA
CURRENT_CONFIG
public static final HKEY CURRENT_CONFIG
DYN_DATA
public static final HKEY DYN_DATA
HKEY
public HKEY(long handle,
boolean temporary)
- Parameters:
handle
- temporary
-
HKEY
public HKEY(long handle)
- Parameters:
handle
-
Open
public static HKEY Open(HKEY hKeyParent,
String lpszKeyName,
int samDesired)
- Calls
PlatformSDK.RegOpenKeyEx(com.moesol.bindings.platform_sdk.windows_api.HKEY, java.lang.String, int, int, com.moesol.bindings.platform_sdk.windows_api.HKEY[])
. Similar to ATL's CRegKey.Open.
- Throws:
Win32Exception
- unless ERROR_SUCCESS is returned
Open
public static HKEY Open(HKEY hKeyParent,
String lpszKeyName)
- Calls Open with KEY_ALL_ACCESS.
- Throws:
Win32Exception
- unless ERROR_SUCCESS is returned
Close
public void Close()
- Calls
PlatformSDK.RegCloseKey(HKEY)
- Throws:
Win32Exception
- unless ERROR_SUCCESS is returned
QueryStringValue
public String QueryStringValue(String string)
- Calls {@link PlatformSDK#RegQueryValue(HKEY, String, Object[])
- Parameters:
string
-
- Returns:
Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.