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.

84 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. prndata.h
  5. Abstract:
  6. Funtions for dealing with printer property data in the registry
  7. Environment:
  8. Fax driver, user and kernel mode
  9. Revision History:
  10. 01/09/96 -davidx-
  11. Created it.
  12. dd-mm-yy -author-
  13. description
  14. --*/
  15. #ifndef _PRNDATA_H_
  16. #define _PRNDATA_H_
  17. //
  18. // Default discount rate period: 8:00pm to 7:00am
  19. //
  20. #define DEFAULT_STARTCHEAP MAKELONG(20, 0)
  21. #define DEFAULT_STOPCHEAP MAKELONG(7, 0)
  22. #define PRNDATA_PERMISSION TEXT("Permission")
  23. #define PRNDATA_ISMETRIC TEXT("IsMetric")
  24. //
  25. // Get a string value from the PrinterData registry key
  26. //
  27. LPTSTR
  28. GetPrinterDataStr(
  29. HANDLE hPrinter,
  30. LPTSTR pRegKey
  31. );
  32. //
  33. // Save a string value to the PrinterData registry key
  34. //
  35. BOOL
  36. SetPrinterDataStr(
  37. HANDLE hPrinter,
  38. LPTSTR pRegKey,
  39. LPTSTR pValue
  40. );
  41. //
  42. // Get a DWORD value from the registry
  43. //
  44. DWORD
  45. GetPrinterDataDWord(
  46. HANDLE hPrinter,
  47. LPTSTR pRegKey,
  48. DWORD defaultValue
  49. );
  50. //
  51. // Save a DWORD value to the registry
  52. //
  53. BOOL
  54. SetPrinterDataDWord(
  55. HANDLE hPrinter,
  56. LPTSTR pRegKey,
  57. DWORD value
  58. );
  59. #endif // !_PRNDATA_H_