Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 1.34 KB

CeRegOpenKeyEx.md

File metadata and controls

67 lines (47 loc) · 1.34 KB

Home

Function name : CeRegOpenKeyEx

Group: Remote Application Programming (RAPI) - Library: rapi


This function opens the specified key.


Code examples:

Pocket PC: custom RAPI class for operating with the System Registry

Declaration:

LONG CeRegOpenKeyEx(
  HKEY hKey,
  LPCWSTR lpszSubKey,
  DWORD ulOptions,
  REGSAM samDesired,
  PHKEY phkResult
);  

FoxPro declaration:

DECLARE INTEGER CeRegOpenKeyEx IN rapi;
	INTEGER   hKey,;
	STRING    lpszSubKey,;
	INTEGER   ulOptions,;
	INTEGER   samDesired,;
	INTEGER @ phkResult  

Parameters:

hKey [in] Handle to a currently open key or any of the predefined reserved handle values

lpszSubKey [in] Pointer to a null-terminated string containing the name of the subkey to open.

ulOptions [in] Reserved; set to 0.

samDesired [in] Not supported; set to 0.

phkResult [out] Pointer to a variable that receives a handle to the opened key.


Return value:

ERROR_SUCCESS (0) indicates success.


Comments:

When you no longer need the returned handle, call the CeRegCloseKey function to close it.