Share via


ICcConnection::RegistyQueryValue (Compact 2013)

3/26/2014

Deprecated.

This method queries for a registry value.

In Windows Embedded Compact 2013, CoreCon HLAPI has been deprecated.

Syntax

HRESULT RegistryQueryValue(
  LONG hKey,
  LPCOLESTR lpSubKey,
  LPCOLESTR lpValueName,
  DWORD dwType,
  WCHAR[]lpValue,
  LONG* pcbValue
);

Parameters

  • hKey
    [in] Base key to search for the value.
  • lpSubKey
    [in] Subkey to search the value.
  • lpValueName
    [in] Value to query.
  • dwType
    [in] Value type to query.
  • lpValue
    [out] Buffer to return value in.
  • pcbValue
    [in, out] Length of value returned.

Return Value

If the method fails, it returns an HRESULT error code.

If the method succeeds, it returns one of the following:

Value

Description

S_OK

Indicates the method call was successful.

E_INVALIDARG

Indicates invalid arguments.

Requirements

Header

ccconnection.h

See Also

Reference

ICcConnection
Core Connectivity Interfaces