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.

98 lines
1.4 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 a EXPAND_SZ value from the user info registry key
  31. //
  32. LPTSTR
  33. GetRegistryExpandStr(
  34. HKEY hRootKey,
  35. LPTSTR pKeyName,
  36. LPTSTR pValueName
  37. );
  38. //
  39. // Get per-user devmode information
  40. //
  41. PDEVMODE
  42. GetPerUserDevmode(
  43. LPTSTR pPrinterName
  44. );
  45. //
  46. // Save per-user devmode information
  47. //
  48. VOID
  49. SavePerUserDevmode(
  50. LPTSTR pPrinterName,
  51. PDEVMODE pDevmode
  52. );
  53. //
  54. // Find the cover page editor executable filename
  55. //
  56. LPTSTR
  57. GetCoverPageEditor(
  58. VOID
  59. );
  60. //
  61. // Find the directories under which user cover pages are stored
  62. //
  63. LPTSTR
  64. GetUserCoverPageDir(
  65. VOID
  66. );
  67. #endif // !_REGISTRY_H_