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.

40 lines
1.6 KiB

  1. #ifndef _REG_H
  2. #define _REG_H
  3. #include <objbase.h>
  4. #define MAX_KEY MAX_PATH
  5. #define MAX_VALUE MAX_PATH
  6. HRESULT _RegOpenKey(HKEY hkey, LPCWSTR pszKey, HKEY* phkey);
  7. HRESULT _RegCreateKey(HKEY hkey, LPCWSTR pszKey, HKEY* phkey, DWORD* pdwDisp);
  8. HRESULT _RegCloseKey(HKEY hkey);
  9. HRESULT _RegQueryType(HKEY hkey, LPCWSTR pszSubKey, LPCWSTR pszValueName,
  10. DWORD* pdwType);
  11. HRESULT _RegQueryGeneric(HKEY hkey, LPCWSTR pszSubKey, LPCWSTR pszValueName,
  12. PBYTE pbValue, DWORD cbValue);
  13. HRESULT _RegQueryGenericWithType(HKEY hkey, LPCWSTR pszSubKey,
  14. LPCWSTR pszValueName, DWORD* pdwType, PBYTE pbValue, DWORD cbValue);
  15. HRESULT _RegQueryValueSize(HKEY hkey, LPCWSTR pszSubKey, LPCWSTR pszValueName,
  16. DWORD* pcbValue);
  17. HRESULT _RegQueryString(HKEY hkey, LPCWSTR pszSubKey, LPCWSTR pszValueName,
  18. LPWSTR pszValue, DWORD cchValue);
  19. HRESULT _RegQueryDWORD(HKEY hkey, LPCWSTR pszSubKey, LPCWSTR pszValueName,
  20. DWORD* pdwValue);
  21. HRESULT _RegEnumStringValue(HKEY hkey, DWORD dwIndex, LPWSTR pszValue,
  22. DWORD cchValue);
  23. HRESULT _RegEnumStringKey(HKEY hkey, DWORD dwIndex, LPWSTR pszKey,
  24. DWORD cchKey);
  25. HRESULT _RegDeleteValue(HKEY hkey, LPCWSTR pszSubKey, LPCWSTR pszValueName);
  26. HRESULT _RegSetString(HKEY hkey, LPCWSTR pszValueName, LPCWSTR pszValue);
  27. HRESULT _RegSetDWORD(HKEY hkey, LPCWSTR pszValueName, DWORD dwValue);
  28. HRESULT _RegSetBinary(HKEY hkey, LPCWSTR pszValueName, PVOID pvValue, DWORD cbValue);
  29. HRESULT _RegSetKeyAndString(HKEY hkey, LPCWSTR pszKey, LPCWSTR pszSubkey,
  30. LPCWSTR pszValueName, LPCWSTR pszValue);
  31. HRESULT _RegSubkeyExists(HKEY hkey, LPCWSTR pszPath, LPCWSTR pszSubkey);
  32. #endif //_REG_H