Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
984 B

  1. //-----------------------------------------------------------------------
  2. //
  3. // File: REGUTILS.H
  4. //
  5. //-----------------------------------------------------------------------
  6. #ifndef _REGUTILS_H_
  7. #define _REGUTILS_H_
  8. BOOL GetRegValueString( HKEY hMainKey, LPSTR lpszSubKey, LPSTR lpszValName, LPSTR lpszValue, int iMaxSize );
  9. BOOL GetRegValueInt( HKEY hMainKey, LPSTR lpszSubKey, LPSTR lpszValName, int* piValue );
  10. BOOL SetRegValueString( HKEY hMainKey, LPSTR lpszSubKey, LPSTR lpszValName, LPSTR lpszValue );
  11. BOOL SetRegValueInt( HKEY hMainKey, LPSTR lpszSubKey, LPSTR lpszValName, int iValue );
  12. BOOL SetRegValueDword( HKEY hk, LPTSTR pSubKey, LPTSTR pValue, DWORD dwVal );
  13. DWORD GetRegValueDword( HKEY hk, LPTSTR pSubKey, LPTSTR pValue );
  14. #define REG_BAD_DWORD 0xF0F0F0F0
  15. BOOL IconSetRegValueString(LPSTR lpszSubKey, LPSTR lpszValName, LPSTR lpszValue );
  16. BOOL IconGetRegValueString(LPSTR lpszSubKey, LPSTR lpszValName, LPSTR lpszValue, int iMaxSize );
  17. #endif //_REGUTILS_H_