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.

67 lines
1.9 KiB

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