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.

91 lines
1.6 KiB

  1. class CWinNTFSPrintQueueGeneralInfo : INHERIT_TRACKING,
  2. public IADsFSPrintQueueGeneralInfo
  3. {
  4. friend class CWinNTPrintQueue;
  5. public:
  6. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  7. DECLARE_STD_REFCOUNTING;
  8. DECLARE_IDispatch_METHODS;
  9. DECLARE_IADsFSPrintQueueGeneralInfo_METHODS;
  10. //
  11. // constructor and destructor
  12. //
  13. CWinNTFSPrintQueueGeneralInfo();
  14. ~CWinNTFSPrintQueueGeneralInfo();
  15. //
  16. // To perform operations that can potentially fail.
  17. //
  18. static
  19. HRESULT
  20. CWinNTFSPrintQueueGeneralInfo::Create(
  21. CWinNTPrintQueue FAR * pCoreADsObject,
  22. CWinNTFSPrintQueueGeneralInfo FAR * FAR * ppPrintQueueGenInfo
  23. );
  24. protected:
  25. //
  26. // member variables
  27. //
  28. CAggregatorDispMgr * _pDispMgr;
  29. CWinNTPrintQueue *_pCoreADsObject;
  30. };
  31. //
  32. // CWinNTFSPrintQueueOperation Property set
  33. //
  34. class CWinNTFSPrintQueueOperation :INHERIT_TRACKING,
  35. public IADsFSPrintQueueOperation
  36. {
  37. friend class CWinNTPrintQueue;
  38. public:
  39. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  40. DECLARE_STD_REFCOUNTING;
  41. DECLARE_IDispatch_METHODS;
  42. DECLARE_IADsFSPrintQueueOperation_METHODS;
  43. //
  44. // constructor
  45. //
  46. CWinNTFSPrintQueueOperation();
  47. ~CWinNTFSPrintQueueOperation();
  48. static
  49. HRESULT
  50. CWinNTFSPrintQueueOperation::Create(
  51. CWinNTPrintQueue * pCoreADsObject,
  52. CWinNTFSPrintQueueOperation ** ppPrintQueueOps
  53. );
  54. protected:
  55. DWORD _dwStatus;
  56. CAggregatorDispMgr * _pDispMgr;
  57. CWinNTPrintQueue * _pCoreADsObject;
  58. };