The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
CRegKey::SetDWORDValue
Call this method to set the DWORD value of the registry key.
LONG SetDWORDValue(
LPCTSTR pszValueName,
DWORD dwValue
) throw( );
- pszValueName
Pointer to a string containing the name of the value to set. If a value with this name is not already present, the method adds it to the key.
- dwValue
The DWORD data to be stored with the specified value name.
If the method succeeds, the return value is ERROR_SUCCESS. If the method fails, the return value is a nonzero error code defined in WINERROR.H.
This method uses RegSetValueEx to write the value to the registry.
Requirements
Header: atlbase.h
Show: