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.

61 lines
1.3 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // REGISTRY.H
  4. //
  5. // Microsoft Confidential
  6. // Copyright (cMicrosoft 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. // Include file(s).
  18. //
  19. #include <windows.h>
  20. //
  21. // Defined root keys.
  22. //
  23. #define HKCR HKEY_CLASSES_ROOT
  24. #define HKCU HKEY_CURRENT_USER
  25. #define HKLM HKEY_LOCAL_MACHINE
  26. #define HKU HKEY_USERS
  27. //
  28. // Type definitions.
  29. //
  30. typedef BOOL (CALLBACK * REGENUMKEYPROC) (HKEY, LPTSTR, LPARAM);
  31. typedef BOOL (CALLBACK * REGENUMVALPROC) (LPTSTR, LPTSTR, LPARAM);
  32. //
  33. // External function prototypes.
  34. //
  35. BOOL RegExists(HKEY, LPTSTR, LPTSTR);
  36. BOOL RegDelete(HKEY, LPTSTR, LPTSTR);
  37. LPTSTR RegGetString(HKEY, LPTSTR, LPTSTR);
  38. LPVOID RegGetBin(HKEY, LPTSTR, LPTSTR);
  39. DWORD RegGetDword(HKEY, LPTSTR, LPTSTR);
  40. BOOL RegSetString(HKEY, LPTSTR, LPTSTR, LPTSTR);
  41. BOOL RegSetDword(HKEY, LPTSTR, LPTSTR, DWORD);
  42. BOOL RegCheck(HKEY, LPTSTR, LPTSTR);
  43. BOOL RegEnumKeys(HKEY, LPTSTR, REGENUMKEYPROC, LPARAM, BOOL);
  44. BOOL RegEnumValues(HKEY, LPTSTR, REGENUMVALPROC, LPARAM, BOOL);
  45. #endif // _REGISTRY_H_