windows-nt/Source/XPSP1/NT/enduser/troubleshoot/sstub/sniffstub.h

39 lines
976 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
// SniffStub.h : Declaration of the CSniffStub
#ifndef __SNIFFSTUB_H_
#define __SNIFFSTUB_H_
#include "resource.h" // main symbols
#include <atlctl.h>
/////////////////////////////////////////////////////////////////////////////
// CSniffStub
class ATL_NO_VTABLE CSniffStub :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CSniffStub, &CLSID_SniffStub>,
public IDispatchImpl<ISniffStub, &IID_ISniffStub, &LIBID_SSTUBLib>,
public IObjectSafetyImpl<CSniffStub, INTERFACESAFE_FOR_UNTRUSTED_CALLER>
{
public:
CSniffStub()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_SNIFFSTUB)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CSniffStub)
COM_INTERFACE_ENTRY(ISniffStub)
COM_INTERFACE_ENTRY(IDispatch)
COM_INTERFACE_ENTRY(IObjectSafety)
END_COM_MAP()
// ISniffStub
public:
STDMETHOD(Sniff)(/*[in]*/ BSTR strNodeName, /*[in]*/ BSTR strLaunchBasis, /*[in]*/ BSTR strAdditionalArgs, /*[out, retval]*/ VARIANT* nState);
};
#endif //__SNIFFSTUB_H_