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.

61 lines
1.5 KiB

  1. //
  2. // CActiveScriptEngine.h
  3. //
  4. // Contains the header for the ActiveScriptEngine used in TBScript.
  5. //
  6. // Copyright (C) 2001 Microsoft Corporation
  7. //
  8. // Author: a-devjen (Devin Jenson)
  9. //
  10. #ifndef INC_CACTIVESCRIPTENGINE_H
  11. #define INC_CACTIVESCRIPTENGINE_H
  12. #include <windows.h>
  13. #include <stdio.h>
  14. #include <activscp.h>
  15. #include <olectl.h>
  16. #include <stddef.h>
  17. #include "scpapi.h"
  18. #include "ITBScript.h"
  19. #include "CTBShell.h"
  20. #include "CTBGlobal.h"
  21. class CActiveScriptEngine : public IActiveScriptSite
  22. {
  23. public:
  24. CActiveScriptEngine(CTBGlobal *TBGlobalPtr = NULL,
  25. CTBShell *TBShellPtr = NULL);
  26. ~CActiveScriptEngine(void);
  27. STDMETHODIMP QueryInterface(REFIID RefIID, void **vObject);
  28. STDMETHODIMP_(ULONG) AddRef(void);
  29. STDMETHODIMP_(ULONG) Release(void);
  30. STDMETHODIMP GetItemInfo(LPCOLESTR Name, DWORD ReturnMask,
  31. IUnknown **UnknownItem, ITypeInfo **TypeInfo);
  32. STDMETHODIMP OnScriptError(IActiveScriptError *ScriptError);
  33. STDMETHODIMP GetLCID(LCID *Lcid);
  34. STDMETHODIMP GetDocVersionString(BSTR *Version);
  35. STDMETHODIMP OnScriptTerminate(const VARIANT *varResult,
  36. const EXCEPINFO *ExceptInfo);
  37. STDMETHODIMP OnStateChange(SCRIPTSTATE ScriptState);
  38. STDMETHODIMP OnEnterScript(void);
  39. STDMETHODIMP OnLeaveScript(void);
  40. private:
  41. LONG RefCount;
  42. CTBGlobal *TBGlobal;
  43. CTBShell *TBShell;
  44. };
  45. #endif // INC_CACTIVESCRIPTENGINE_H