SECRegistry::GetValue
Retrieves the value of the current key.
Defined in: SECREG.CPP
Syntax
virtual BOOL GetValue(LPCTSTR lpszValueName, CByteArray& return_array);
virtual BOOL GetValue(LPCTSTR lpszValueName, DWORD& dwReturnValue);
virtual BOOL GetValue(LPCTSTR lpszValueName, CStringArray& return_array);
virtual BOOL GetValue(LPCTSTR lpszValueName, CString& strReturn);
Return Value
Nonzero if value was successfully retrieved, otherwise 0.
Parameters
lpszValueName
The value name
return_array
A CByteArray to receive binary data.
dwReturnValue
A DWORD to receive DWORD data
return_array
A CStringArray to receive multi-string data.
strReturn
A CString to receive string data.
Comments
Retrieves data from named value. Encapsulates RegQueryValueEx API.
These methods assume the type of data is known when called. This can be determined by either enumerating the data with EnumerateValues, or calling QueryValue.
Developer Notes
For 32-bit only.
See Also
SECRegistry Open Close EnumerateValues QueryValue GetBinaryValue GetDoubleWordValue GetStringValue GetStringArrayValue SetValue