QueryRegistryValue(3w)

QueryRegistryValue3w

Usage

LONG QueryRegistryValue
(
HKEY hKey,
LPCWSTR lpValueName,
LPBYTE* lpData,
LPDWORD lpType,
LPDWORD lpcbData
)

Overview

Retrieves value data from the registry and allocates memory for the value data.

Params

hKey [In] Handle of the key to query.

lpValueName [In] Name of value under hkey to query.

lpData [Out] Destination for the values contents,.

lpType [Out] Destination for the value type.

lpcbData [Out] Destination for the size of data.

Returns

Success: ERROR_SUCCESS

Failure: Otherwise.

Notes

Use MyFree to release the lpData buffer.

Implementation

Declared in "setupapi.h".

Implemented in "dlls/setupapi/misc.c".

Debug channel "setupapi".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.