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.

51 lines
1.5 KiB

  1. /*****************************************************************************\
  2. * MODULE: ppinfo.h
  3. *
  4. * Prototypes for print-job information routines.
  5. *
  6. * Copyright (C) 1996-1997 Microsoft Corporation
  7. * Copyright (C) 1996-1997 Hewlett Packard
  8. *
  9. * History:
  10. * 07-Oct-1996 HWP-Guys Initiated port from win95 to winNT
  11. *
  12. \*****************************************************************************/
  13. #ifndef _PPINFO_H
  14. #define _PPINFO_H
  15. // Mask of printer enum type flags for EnumPrinter requests that our
  16. // provider doesn't handle.
  17. //
  18. #define PRINTER_ENUM_NOTFORUS (PRINTER_ENUM_DEFAULT | \
  19. PRINTER_ENUM_LOCAL | \
  20. PRINTER_ENUM_FAVORITE | \
  21. PRINTER_ENUM_SHARED \
  22. )
  23. // This macro returns a pointer to the location specified by length. This
  24. // assumes calculations in BYTES. We cast it to the LPTSTR to assure the
  25. // pointer reference will support UNICODE.
  26. //
  27. #define ENDOFBUFFER(buf, length) (LPTSTR)((((LPSTR)buf) + (length - sizeof(TCHAR))))
  28. // PrintProcessor information routines.
  29. //
  30. BOOL PPEnumPrinters(
  31. DWORD dwType,
  32. LPTSTR pszName,
  33. DWORD dwLevel,
  34. LPBYTE pPrinterEnum,
  35. DWORD cbBuf,
  36. LPDWORD pcbNeeded,
  37. LPDWORD pcbReturned);
  38. BOOL PPGetPrinter(
  39. HANDLE hPrinter,
  40. DWORD dwLevel,
  41. LPBYTE lpbPrinter,
  42. DWORD cbBuf,
  43. LPDWORD pcbNeeded);
  44. #endif