다음을 통해 공유


ISpDataKey::OpenKey (Windows Embedded CE 6.0)

1/6/2010

This method opens a subkey and retrieves a new object that supports ISpDataKey for the specified subkey.

Syntax

HRESULT OpenKey(
  const WCHAR* pszSubKeyName, 
  ISpDataKey** ppSubKey
);

Parameters

  • pszSubKeyName
    [in] Pointer to a null-terminated string specifying the name of the subkey to open.
  • ppSubKey
    [out] Address of a pointer to the ISpDataKey interface for the subkey.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

E_INVALIDARG

pszSubKeyName is invalid or bad.

E_POINTER

ppSubKey is invalid or bad.

SPERR_NOT_FOUND

Registry key not found.

FAILED(hr)

Appropriate error message.

Requirements

Header sapi.h, sapi.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpDataKey
SAPI Interfaces