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.

63 lines
956 B

  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_PAPER_SIZE TEXT("PaperSize")
  24. //
  25. // Get a DWORD value from the registry
  26. //
  27. DWORD
  28. GetPrinterDataDWord(
  29. HANDLE hPrinter,
  30. LPTSTR pRegKey,
  31. DWORD defaultValue
  32. );
  33. //
  34. // Save a DWORD value to the registry
  35. //
  36. BOOL
  37. SetPrinterDataDWord(
  38. HANDLE hPrinter,
  39. LPTSTR pRegKey,
  40. DWORD value
  41. );
  42. #endif // !_PRNDATA_H_