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.

75 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. printhlp.hxx
  5. Abstract:
  6. Helper functions for printer object
  7. Author:
  8. Ram Viswanathan (ramv) 11-18-95
  9. Revision History:
  10. --*/
  11. BOOL
  12. WinNTEnumPrinters(DWORD dwType,
  13. LPTSTR lpszName,
  14. DWORD dwLevel,
  15. LPBYTE *lplpbPrinters,
  16. LPDWORD lpdwReturned
  17. );
  18. BOOL
  19. WinNTGetPrinter(HANDLE hPrinter,
  20. DWORD dwLevel,
  21. LPBYTE *lplpbPrinters
  22. );
  23. HRESULT
  24. GetPrinterInfo(THIS_ LPPRINTER_INFO_2 *lplpPrinterInfo2,
  25. LPWSTR pszPrinterName);
  26. HRESULT
  27. Set(LPPRINTER_INFO_2 lpPrinterInfo2,
  28. LPTSTR pszPrinterName
  29. );
  30. BOOL
  31. PrinterStatusWinNTToADs(DWORD dwWinNTStatus,
  32. DWORD *pdwADsStatus);
  33. BOOL
  34. PrinterStatusADsToWinNT( DWORD dwADsStatus,
  35. DWORD *pdwWinNTStatus);
  36. HRESULT
  37. WinNTDeletePrinter( POBJECTINFO pObjectInfo);
  38. HRESULT
  39. PrinterNameFromObjectInfo(POBJECTINFO pObjectInfo,
  40. LPTSTR szUncPrinterName
  41. );
  42. #if (!defined(BUILD_FOR_NT40))
  43. HRESULT
  44. GetPrinterInfo7(
  45. THIS_ LPPRINTER_INFO_7 *lplpPrinterInfo7,
  46. LPWSTR pszPrinterName
  47. );
  48. HRESULT
  49. SetPrinter7(
  50. LPPRINTER_INFO_7 lpPrinterInfo7,
  51. LPTSTR pszPrinterName
  52. );
  53. #endif