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
1014 B
38 lines
1014 B
// 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_
|