Leaked source code of windows server 2003
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.

38 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 _RegQueryGenericWithType(HKEY hkey, LPCWSTR pszSubKey,
  12. LPCWSTR pszValueName, DWORD* pdwType, PBYTE pbValue, DWORD cbValue);
  13. HRESULT _RegQueryValueSize(HKEY hkey, LPCWSTR pszSubKey, LPCWSTR pszValueName,
  14. DWORD* pcbValue);
  15. HRESULT _RegQueryString(HKEY hkey, LPCWSTR pszSubKey, LPCWSTR pszValueName,
  16. LPWSTR pszValue, DWORD cchValue);
  17. HRESULT _RegQueryDWORD(HKEY hkey, LPCWSTR pszSubKey, LPCWSTR pszValueName,
  18. DWORD* pdwValue);
  19. HRESULT _RegEnumStringValue(HKEY hkey, DWORD dwIndex, LPWSTR pszValue,
  20. DWORD cchValue);
  21. HRESULT _RegEnumStringKey(HKEY hkey, DWORD dwIndex, LPWSTR pszKey,
  22. DWORD cchKey);
  23. HRESULT _RegDeleteValue(HKEY hkey, LPCWSTR pszSubKey, LPCWSTR pszValueName);
  24. HRESULT _RegSetString(HKEY hkey, LPCWSTR pszValueName, LPCWSTR pszValue);
  25. HRESULT _RegSetDWORD(HKEY hkey, LPCWSTR pszValueName, DWORD dwValue);
  26. HRESULT _RegSetBinary(HKEY hkey, LPCWSTR pszValueName, PVOID pvValue, DWORD cbValue);
  27. HRESULT _RegSetKeyAndString(HKEY hkey, LPCWSTR pszKey, LPCWSTR pszSubkey,
  28. LPCWSTR pszValueName, LPCWSTR pszValue);
  29. HRESULT _RegSubkeyExists(HKEY hkey, LPCWSTR pszPath, LPCWSTR pszSubkey);
  30. #endif //_REG_H