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.0 KiB

  1. //***************************************************************************
  2. //
  3. // (c) 1999 by Microsoft Corporation
  4. //
  5. // wmihost.h
  6. //
  7. // alanbos 23-Mar-99 Created.
  8. //
  9. // Defines the WMI Active Scripting Host class.
  10. //
  11. //***************************************************************************
  12. #ifndef _WMIHOST_H_
  13. #define _WMIHOST_H_
  14. //***************************************************************************
  15. //
  16. // CLASS NAME:
  17. //
  18. // CWmiScriptingHost
  19. //
  20. // DESCRIPTION:
  21. //
  22. // The WMI implementation of an Active Scripting Host
  23. //
  24. //***************************************************************************
  25. class CWmiScriptingHost : public IActiveScriptSite
  26. {
  27. protected:
  28. long m_lRef;
  29. IDispatch* m_pObject;
  30. public:
  31. CWmiScriptingHost ();
  32. ~CWmiScriptingHost ();
  33. // IUnknown methods
  34. HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppv);
  35. ULONG STDMETHODCALLTYPE AddRef();
  36. ULONG STDMETHODCALLTYPE Release();
  37. // IActiveScriptSite methods
  38. virtual HRESULT STDMETHODCALLTYPE GetLCID(
  39. /* [out] */ LCID __RPC_FAR *plcid);
  40. virtual HRESULT STDMETHODCALLTYPE GetItemInfo(
  41. /* [in] */ LPCOLESTR pstrName,
  42. /* [in] */ DWORD dwReturnMask,
  43. /* [out] */ IUnknown __RPC_FAR *__RPC_FAR *ppiunkItem,
  44. /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppti);
  45. virtual HRESULT STDMETHODCALLTYPE GetDocVersionString(
  46. /* [out] */ BSTR __RPC_FAR *pbstrVersion);
  47. virtual HRESULT STDMETHODCALLTYPE OnScriptTerminate(
  48. /* [in] */ const VARIANT __RPC_FAR *pvarResult,
  49. /* [in] */ const EXCEPINFO __RPC_FAR *pexcepinfo);
  50. virtual HRESULT STDMETHODCALLTYPE OnStateChange(
  51. /* [in] */ SCRIPTSTATE ssScriptState);
  52. virtual HRESULT STDMETHODCALLTYPE OnScriptError(
  53. /* [in] */ IActiveScriptError __RPC_FAR *pscripterror);
  54. virtual HRESULT STDMETHODCALLTYPE OnEnterScript( void);
  55. virtual HRESULT STDMETHODCALLTYPE OnLeaveScript( void);
  56. };
  57. #endif