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

  1. // RAEventLog.h : Declaration of the CRAEventLog
  2. #ifndef __RAEVENTLOG_H_
  3. #define __RAEVENTLOG_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CRARegSetting
  7. class ATL_NO_VTABLE CRAEventLog :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CRAEventLog, &CLSID_RAEventLog>,
  10. public IDispatchImpl<IRAEventLog, &IID_IRAEventLog, &LIBID_RASSISTANCELib>
  11. {
  12. public:
  13. CRAEventLog()
  14. {
  15. }
  16. DECLARE_REGISTRY_RESOURCEID(IDR_RAEVENTLOG)
  17. DECLARE_PROTECT_FINAL_CONSTRUCT()
  18. BEGIN_COM_MAP(CRAEventLog)
  19. COM_INTERFACE_ENTRY(IRAEventLog)
  20. COM_INTERFACE_ENTRY(IDispatch)
  21. END_COM_MAP()
  22. public:
  23. STDMETHOD(LogRemoteAssistanceEvent)(
  24. /*[in]*/ LONG ulEventType,
  25. /*[in]*/ LONG ulEventCode,
  26. /*[in]*/ VARIANT* EventString
  27. );
  28. private:
  29. HRESULT
  30. LogRemoteAssistanceEvent(
  31. /*[in]*/ LONG ulEventType,
  32. /*[in]*/ LONG ulEventCode,
  33. /*[in]*/ long numStrings = 0,
  34. /*[in]*/ LPCTSTR* strings = NULL
  35. );
  36. HRESULT
  37. GetProperty(IDispatch* pDisp, BSTR szProperty, VARIANT * pVarRet);
  38. HRESULT
  39. GetArrayValue(IDispatch * pDisp, LONG index, VARIANT * pVarRet);
  40. HRESULT
  41. LogJScriptEventSource(
  42. IN long ulEventType,
  43. IN long ulEventCode,
  44. IN VARIANT *pVar
  45. );
  46. };
  47. #endif //__RAEVENTLOG_H_