Source code of Windows XP (NT5)
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.

38 lines
976 B

  1. // SniffStub.h : Declaration of the CSniffStub
  2. #ifndef __SNIFFSTUB_H_
  3. #define __SNIFFSTUB_H_
  4. #include "resource.h" // main symbols
  5. #include <atlctl.h>
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CSniffStub
  8. class ATL_NO_VTABLE CSniffStub :
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<CSniffStub, &CLSID_SniffStub>,
  11. public IDispatchImpl<ISniffStub, &IID_ISniffStub, &LIBID_SSTUBLib>,
  12. public IObjectSafetyImpl<CSniffStub, INTERFACESAFE_FOR_UNTRUSTED_CALLER>
  13. {
  14. public:
  15. CSniffStub()
  16. {
  17. }
  18. DECLARE_REGISTRY_RESOURCEID(IDR_SNIFFSTUB)
  19. DECLARE_PROTECT_FINAL_CONSTRUCT()
  20. BEGIN_COM_MAP(CSniffStub)
  21. COM_INTERFACE_ENTRY(ISniffStub)
  22. COM_INTERFACE_ENTRY(IDispatch)
  23. COM_INTERFACE_ENTRY(IObjectSafety)
  24. END_COM_MAP()
  25. // ISniffStub
  26. public:
  27. STDMETHOD(Sniff)(/*[in]*/ BSTR strNodeName, /*[in]*/ BSTR strLaunchBasis, /*[in]*/ BSTR strAdditionalArgs, /*[out, retval]*/ VARIANT* nState);
  28. };
  29. #endif //__SNIFFSTUB_H_