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.

78 lines
2.4 KiB

  1. #ifndef __DRVENVT_HPP__
  2. #define __DRVEVNT_HPP__
  3. /*++
  4. Copyright (C) 2000 Microsoft Corporation
  5. All rights reserved.
  6. Module Name:
  7. ldmgr.hpp
  8. Abstract:
  9. This file contains the declararion of the class
  10. dealing with various Driver Events namely
  11. o DrvDocumentEvent
  12. o DrvPrinterEvent
  13. Author:
  14. Khaled Sedky (khaleds) 18 January 2000
  15. Revision History:
  16. --*/
  17. #ifndef __LDERROR_HPP__
  18. #include "lderror.hpp"
  19. #endif
  20. #ifndef __BASECLS_HPP__
  21. #include "basecls.hpp"
  22. #endif
  23. //
  24. // Forward declarations
  25. //
  26. class TLoad64BitDllsMgr;
  27. class TPrinterEventMgr : public TClassID,
  28. public TLd64BitDllsErrorHndlr,
  29. public TRefCntMgr,
  30. public TPrinterDriver
  31. {
  32. public:
  33. TPrinterEventMgr(
  34. IN TLoad64BitDllsMgr *pIpLdrObj
  35. );
  36. ~TPrinterEventMgr(
  37. VOID
  38. );
  39. BOOL
  40. SpoolerPrinterEvent(
  41. IN LPWSTR pszPrinterName,
  42. IN int PrinterEvent,
  43. IN DWORD Flags,
  44. IN LPARAM lParam,
  45. OUT PDWORD pErrorCode
  46. );
  47. int
  48. DocumentEvent(
  49. IN LPWSTR pszPrinterName,
  50. IN ULONG_PTR InDC,
  51. IN int EscapeCode,
  52. IN DWORD InSize,
  53. IN LPBYTE pInBuf,
  54. OUT PDWORD pOutSize,
  55. OUT LPBYTE *ppOutBuf,
  56. OUT PDWORD pErrorCode
  57. );
  58. private:
  59. TLoad64BitDllsMgr *m_pLdrObj;
  60. };
  61. #endif //__DRVENVT_HPP__