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.

57 lines
1.0 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996
  5. //
  6. // File: printhlp.hxx
  7. //
  8. // Contents: Helper functions for printer object.
  9. //
  10. // History: 08-May-96 t-ptam (PatrickT) migrated
  11. //
  12. //----------------------------------------------------------------------------
  13. BOOL
  14. WinNTEnumJobs(
  15. HANDLE hPrinter,
  16. DWORD dwFirstJob,
  17. DWORD dwNoJobs,
  18. DWORD dwLevel,
  19. LPBYTE *lplpbJobs,
  20. DWORD *pcbBuf,
  21. LPDWORD lpdwReturned
  22. );
  23. BOOL
  24. WinNTEnumPrinters(
  25. DWORD dwType,
  26. LPTSTR lpszName,
  27. DWORD dwLevel,
  28. LPBYTE *lplpbPrinters,
  29. LPDWORD lpdwReturned
  30. );
  31. BOOL
  32. WinNTGetPrinter(
  33. HANDLE hPrinter,
  34. DWORD dwLevel,
  35. LPBYTE *lplpbPrinters
  36. );
  37. HRESULT
  38. GetPrinterInfo(
  39. THIS_ LPPRINTER_INFO_2 *lplpPrinterInfo2,
  40. BSTR bstrPrinterName
  41. );
  42. HRESULT
  43. Set(
  44. LPPRINTER_INFO_2 lpPrinterInfo2,
  45. LPTSTR pszPrinterName
  46. );
  47. HRESULT
  48. WinNTDeletePrinter(
  49. POBJECTINFO pObjectInfo
  50. );