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.

71 lines
2.1 KiB

  1. /******************************************************************
  2. PrintJob.H -- WMI provider class definition
  3. Generated by Microsoft WBEM Code Generation Engine
  4. Description:
  5. *******************************************************************/
  6. // Property set identification
  7. //============================
  8. #ifndef _PrintJob_H_
  9. #define _PrintJob_H_
  10. #define PROVIDER_NAME_PRINTJOB L"PCHAT_PrintJob"
  11. // Property name externs -- defined in PrintJob.cpp
  12. //=================================================
  13. extern const WCHAR *c_szName;
  14. extern const WCHAR *c_szPagesPrinted;
  15. extern const WCHAR *c_szSize;
  16. extern const WCHAR *c_szStatus;
  17. extern const WCHAR *c_szTimeSubmitted;
  18. extern const WCHAR *c_szUser;
  19. class CPrintJob : public Provider
  20. {
  21. private:
  22. // member data
  23. CInstance *m_pCurrent;
  24. CInstance *m_pParamIn;
  25. CInstance *m_pParamOut;
  26. LONG m_lFlags;
  27. // member methods
  28. HRESULT GetInstanceData(IWbemClassObjectPtr pObj,
  29. CInstance *pInstance);
  30. public:
  31. // Constructor/destructor
  32. //=======================
  33. CPrintJob(LPCWSTR lpwszClassName, LPCWSTR lpwszNameSpace);
  34. virtual ~CPrintJob();
  35. protected:
  36. // Reading Functions
  37. //============================
  38. virtual HRESULT EnumerateInstances(MethodContext *pMethodContext,
  39. long lFlags = 0L);
  40. virtual HRESULT GetObject(CInstance* pInstance, long lFlags = 0L);
  41. virtual HRESULT ExecQuery(MethodContext *pMethodContext,
  42. CFrameworkQuery& Query, long lFlags = 0L);
  43. // Writing Functions
  44. //============================
  45. virtual HRESULT PutInstance(const CInstance& Instance, long lFlags = 0L);
  46. virtual HRESULT DeleteInstance(const CInstance& Instance, long lFlags = 0L);
  47. // Other Functions
  48. virtual HRESULT ExecMethod(const CInstance& Instance, const BSTR bstrMethodName,
  49. CInstance *pInParams, CInstance *pOutParams,
  50. long lFlags = 0L);
  51. };
  52. #endif