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.

39 lines
1.0 KiB

  1. // Copyright (c) 1999 Microsoft Corporation. All rights reserved.
  2. //
  3. // Declaration of CActiveScriptError. Object that implements IActiveScriptError for returning error information from the script engine.
  4. //
  5. #pragma once
  6. #include "englex.h"
  7. #include "activescript.h"
  8. #include "unkhelp.h"
  9. class CActiveScriptError
  10. : public IActiveScriptError,
  11. public ComSingleInterface
  12. {
  13. public:
  14. ComSingleInterfaceUnknownMethods(IActiveScriptError)
  15. CActiveScriptError(HRESULT hr, Lexer &lexer, const char *pszDescription);
  16. // IActiveScriptError
  17. STDMETHOD(GetExceptionInfo)(
  18. /* [out] */ EXCEPINFO *pexcepinfo);
  19. STDMETHOD(GetSourcePosition)(
  20. /* [out] */ DWORD *pdwSourceContext,
  21. /* [out] */ ULONG *pulLineNumber,
  22. /* [out] */ LONG *plCharacterPosition);
  23. STDMETHOD(GetSourceLineText)(
  24. /* [out] */ BSTR *pbstrSourceLine);
  25. private:
  26. HRESULT m_scode;
  27. SmartRef::WString m_wstrDescription;
  28. const WCHAR *m_pwszSource;
  29. ULONG m_ulLineNumber;
  30. LONG m_lCharacterPosition;
  31. SmartRef::WString m_wstrSourceLine;
  32. };