CRegKey::QueryValue

LONG QueryValue( DWORD& dwValue, LPCTSTR lpszValueName );

LONG QueryValue( LPTSTR szValue, LPCTSTR lpszValueName, DWORD* pdwCount )

Return Value

If successful, returns ERROR_SUCCESS; otherwise, an error value.

Parameters

dwValue

[out] The value field’s numerical data.

lpszValueName

[in] Specifies the value field to be queried.

szValue

[out] The value field’s string data.

pdwCount

[in, out] The size of the string data. Its value is initially set to the size of the szValue buffer.

Remarks

Retrieves the data for the specified value field of m_hKey. The first version of QueryValue allows you to retrieve numerical data. The second version allows you to retrieve string data.

CRegKey OverviewClass Members