RegQueryInfoKeyA.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

RegQueryInfoKeyA (ADVAPI32.@)

SYNOPSIS

LSTATUS RegQueryInfoKeyA
 (
  HKEY      hkey,
  LPSTR     class,
  LPDWORD   class_len,
  LPDWORD   reserved,
  LPDWORD   subkeys,
  LPDWORD   max_subkey,
  LPDWORD   max_class,
  LPDWORD   values,
  LPDWORD   max_value,
  LPDWORD   max_data,
  LPDWORD   security,
  FILETIME* modif
 )

DESCRIPTION

Retrieves information about a registry key.

PARAMS

hKey [In] Handle to an open key.

lpClass [Out] Class string of the key.

lpcClass [In/Out] size of lpClass.

lpReserved [In] Reserved; must be NULL.

lpcSubKeys [Out] Number of subkeys contained by the key.

lpcMaxSubKeyLen [Out] Size of the key's subkey with the longest name.

lpcMaxClassLen [Out] Size of the longest string specifying a subkey class in TCHARS.

lpcValues [Out] Number of values associated with the key.

lpcMaxValueNameLen [Out] Size of the key's longest value name in TCHARS.

lpcMaxValueLen [Out] Longest data component among the key's values.

lpcbSecurityDescriptor [Out] Size of the key's security descriptor.

lpftLastWriteTime [Out] FILETIME structure that is the last write time.

RETURNS

Success: ERROR_SUCCESS

Failure: nonzero error code from Winerror.h

IMPLEMENTATION

Defined in "winreg.h".

Implemented in "dlls/advapi32/registry.c".

Debug channel "reg".