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.

68 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. reguser.h
  5. Abstract:
  6. For accessing information stored under registry key:
  7. HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE
  8. Environment:
  9. Fax driver user interface
  10. Revision History:
  11. 01/16/96 -davidx-
  12. Created it.
  13. dd-mm-yy -author-
  14. description
  15. --*/
  16. #ifndef _REGISTRY_H_
  17. #define _REGISTRY_H_
  18. //
  19. // Maximum length allowed for a string value (including the null terminator)
  20. //
  21. #define MAX_STRING_LEN MAX_PATH
  22. //
  23. // Open a handle to the specified registry key
  24. //
  25. #define REG_READONLY KEY_READ
  26. #define REG_READWRITE KEY_ALL_ACCESS
  27. #define GetUserInfoRegKey(pKeyName, readOnly) \
  28. OpenRegistryKey(HKEY_CURRENT_USER, pKeyName, FALSE,readOnly)
  29. //
  30. // Get per-user devmode information
  31. //
  32. PDEVMODE
  33. GetPerUserDevmode(
  34. LPTSTR pPrinterName
  35. );
  36. //
  37. // Find the directories under which user cover pages are stored
  38. //
  39. LPTSTR
  40. GetUserCoverPageDir(
  41. VOID
  42. );
  43. #endif // !_REGISTRY_H_