com.moesol.bindings.platform_sdk.windows_api
Class HKEY

java.lang.Object
  extended by com.moesol.bindings.platform_sdk.windows_api.HANDLE
      extended by com.moesol.bindings.platform_sdk.windows_api.HKEY

public class HKEY
extends HANDLE


Field Summary
static HKEY CLASSES_ROOT
           
static HKEY CURRENT_CONFIG
           
static HKEY CURRENT_USER
           
static HKEY DYN_DATA
           
static HKEY LOCAL_MACHINE
           
static HKEY PERFORMANCE_DATA
           
static HKEY USERS
           
 
Constructor Summary
HKEY(long handle)
           
HKEY(long handle, boolean temporary)
           
 
Method Summary
 void Close()
          Calls PlatformSDK.RegCloseKey(HKEY)
static HKEY Open(HKEY hKeyParent, String lpszKeyName)
          Calls Open with KEY_ALL_ACCESS.
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[]).
 String QueryStringValue(String string)
          Calls {@link PlatformSDK#RegQueryValue(HKEY, String, Object[])
 
Methods inherited from class com.moesol.bindings.platform_sdk.windows_api.HANDLE
_getHandle, _safeGetHandle, detach, equals, getLeakCount, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

HKEY

public HKEY(long handle,
            boolean temporary)
Parameters:
handle -
temporary -

HKEY

public HKEY(long handle)
Parameters:
handle -
Method Detail

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.