CeSvcOpenEx
The CeSvcOpenEx function opens a nested subkey under an open registry subkey.
Syntax
HRESULT CeSvcOpenEx (
HCESVC hSvcRoot,
LPTSTR pszPath,
BOOL fCreate,
PHCESVC phSvc
);
Parameters
- hSvcRoot
[in] Specifies a handle to a registry subkey. - pszPath
[in] Reference to a null-terminated string that contains a subpath to append to the logical subkey. - fCreate
[in] Specifies a Boolean value that is set to TRUE to indicate that the subkey should be created if it does not exist. - phSvc
[out] Reference to a handle to the registry subkey.
Return Values
This function returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
- S_OK
The function completed successfully.
Remarks
The handle specified by phSvc is equivalent to an HKEY and can be used by other Windows CE CEUTIL functions.
To obtain the handle specified by hSvcRoot, call CeSvcOpen
When the handle returned by CeSvcOpenEx is no longer needed, call the CeSvcClose function.
This function is part of Windows CE CEUTIL, a utility DLL for dealing with desktop registry entries for Windows CE. CEUTIL functions are for use by desktop applications that need to communicate remotely with Windows CE–based devices. These functions are not available to applications running on Windows CE–based devices.
Requirements
Pocket PC: Windows Mobile 2000 and later
OS Versions: Windows CE 3.0 and later
Header: ceutil.h
Library: ceutil.lib
See Also
Send feedback on this topic to the authors.
© 2005 Microsoft Corporation. All rights reserved.