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.

55 lines
1.3 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // REGISTRY.H
  4. //
  5. // Pacific Access Confidential
  6. // Copyright (c) Pacific Access Communications Corporation 1998
  7. // All rights reserved
  8. //
  9. // Registry function prototypes for the application.
  10. //
  11. // 4/98 - Jason Cohen (JCOHEN)
  12. //
  13. //////////////////////////////////////////////////////////////////////////////
  14. #ifndef _REGISTRY_H_
  15. #define _REGISTRY_H_
  16. //
  17. // Defined root keys.
  18. //
  19. #define HKCR HKEY_CLASSES_ROOT
  20. #define HKCU HKEY_CURRENT_USER
  21. #define HKLM HKEY_LOCAL_MACHINE
  22. #define HKU HKEY_USERS
  23. //
  24. // Type definitions.
  25. //
  26. typedef BOOL (CALLBACK * REGENUMKEYPROC) (HKEY, LPTSTR, LPARAM);
  27. typedef BOOL (CALLBACK * REGENUMVALPROC) (LPTSTR, LPTSTR, LPARAM);
  28. //
  29. // External function prototypes.
  30. //
  31. BOOL RegExists(HKEY, LPTSTR, LPTSTR);
  32. BOOL RegDelete(HKEY, LPTSTR, LPTSTR);
  33. LPTSTR RegGetString(HKEY, LPTSTR, LPTSTR);
  34. LPVOID RegGetBin(HKEY, LPTSTR, LPTSTR);
  35. DWORD RegGetDword(HKEY, LPTSTR, LPTSTR);
  36. BOOL RegSetString(HKEY, LPTSTR, LPTSTR, LPTSTR);
  37. BOOL RegSetDword(HKEY, LPTSTR, LPTSTR, DWORD);
  38. BOOL RegCheck(HKEY, LPTSTR, LPTSTR);
  39. BOOL RegEnumKeys(HKEY, LPTSTR, REGENUMKEYPROC, LPARAM, BOOL);
  40. BOOL RegEnumValues(HKEY, LPTSTR, REGENUMVALPROC, LPARAM, BOOL);
  41. #endif // _REGISTRY_H_