CRegKey::QueryValue

This method 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.

Syntax

LONG QueryValue( DWORD& dwValue, LPCTSTR lpszValueName );

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

At a Glance

Header file: Atlbase.h
Platforms:
Versions: Version 2.0 and later
Complete documentation: Visual C++ documentation

See Also

CRegKey Overview, CRegKey Methods, CRegKey::m_hKey