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.

31 lines
761 B

  1. //
  2. // PrnUtil.h
  3. //
  4. #pragma once
  5. typedef struct tagPRINTER_ENUM
  6. {
  7. LPTSTR pszPrinterName;
  8. LPTSTR pszPortName;
  9. DWORD dwFlags;
  10. } PRINTER_ENUM;
  11. #define PRF_LOCAL 0x00000001
  12. #define PRF_REMOTE 0x00000002
  13. #define PRF_VIRTUAL 0x00000004
  14. #define PRF_DEFAULT 0x00000008
  15. #define PRF_SHARED 0x00000010
  16. int MyEnumPrinters(PRINTER_ENUM** pprgPrinters, DWORD dwEnumFlags);
  17. #define MY_PRINTER_ENUM_LOCAL 0x00000001
  18. #define MY_PRINTER_ENUM_REMOTE 0x00000002
  19. #define MY_PRINTER_ENUM_VIRTUAL 0x00000004 // virtual printers on FILE: port
  20. int MyEnumLocalPrinters(PRINTER_ENUM** prgPrinters);
  21. int MyEnumRemotePrinters(PRINTER_ENUM** prgPrinters);
  22. BOOL ConnectToNetworkPrinter(HWND hWndOwner, LPCTSTR pszPrinterShare);