SECRegistry::QueryValue

Encapsulates the RegQueryValueEx API.

Defined in: SECREG.CPP

Syntax

(32-bit) BOOL QueryValue( LPCTSTRlpszValueName, KeyValueTypes& value_type, LPBYTE lpbBuffer, DWORD& dwBufferSize );

(16-bit) BOOL QueryValue( LPCTSTR lpszSubkeyName, SECPBYTE lpbBuffer, LONG& lBufferSize );

Return Value

Nonzero if value was successfully queried, otherwise 0.

Parameters

lpszValueName

Name of value to query.

lpszSubkeyName

name of subkey to query.

value_type

Buffer to hold value type.

lpbBuffer

Buffer to hold value data.

dwBufferSize

Size of buffer pointed to by lpbBuffer;

dwBufferSize

Size of buffer pointed to by lpbBuffer; on return contains size of data actually copied to buffer.

lBufferSize

Size of buffer pointed to by lpbBuffer; on return contains size of data actually copied to buffer.

Comments

Queries the value of the currently opened registry key and copies the value data into the buffer. Encapsulates the RegQueryValue API.

See Also

SECRegistry  QueryInfo