Partilhar via


CRegKey::DeleteValue

Call this method to remove a value field from m_hKey.

LONG DeleteValue(
   LPCTSTR lpszValue 
) throw( );

Parameters

  • lpszValue
    Specifies the value field to remove.

Return Value

If successful, returns ERROR_SUCCESS. If the method fails, the return value is a nonzero error code defined in WINERROR.H.

Requirements

Header: atlbase.h

See Also

Reference

CRegKey Class

CRegKey::DeleteSubKey

Other Resources

CRegKey Members