Share via


ICcConnection::RegistySetValue (Compact 2013)

3/26/2014

Deprecated.

This method sets a registry value.

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

Syntax

HRESULT RegistrySetValue(
  LONG hKey,
  LPCOLESTR lpSubKey,
  LPCOLESTR lpValueName,
  DWORD dwType,
  LPCOLESTR lpData,
  DWORD cbData
);

Parameters

  • hKey
    [in] Base key to create a new key under.
  • lpSubKey
    [in] Subkey to set a value under.
  • lpValueName
    [in] Value to set.
  • dwType
    [in] Value type to set.
  • lpData
    [in] Data to set.
  • cbData
    [in] Length of data.

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