-
Notifications
You must be signed in to change notification settings - Fork 0
/
DeltaTImeFilter.cpp
65 lines (49 loc) · 1.76 KB
/
DeltaTImeFilter.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// =============================================================================
// DeltaTimeFilter.cpp
// implementation of the CDeltaTimeFilterApp class.
// =============================================================================
// Copyright (c) WildPackets, Inc. 2006. All rights reserved.
#include "stdafx.h"
#include "resource.h"
#include <initguid.h>
#include "DeltaTimeFilter.h"
#include "DeltaTimeFilterPlugin.h"
////////////////////////////////////////////////////////////////////////////////
// CDeltaTimeFilterApp
////////////////////////////////////////////////////////////////////////////////
CDeltaTimeFilterApp::CDeltaTimeFilterApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
BEGIN_MESSAGE_MAP(CDeltaTimeFilterApp, CWinApp)
END_MESSAGE_MAP()
CDeltaTimeFilterApp theApp;
// -----------------------------------------------------------------------------
// InitInstance
// -----------------------------------------------------------------------------
BOOL
CDeltaTimeFilterApp::InitInstance()
{
m_Plugin.DllMain( m_hInstance, DLL_PROCESS_ATTACH, 0 );
return CWinApp::InitInstance();
}
#if defined(_MSC_VER)
#if defined (_WIN64)
#pragma comment(linker, "/EXPORT:PlugInMain=PlugInMain,PRIVATE")
#else
#pragma comment(linker, "/EXPORT:PlugInMain=_PlugInMain@8,PRIVATE")
#endif
#endif
// ----------------------------------------------------------------------------
// PlugInMain
// ----------------------------------------------------------------------------
extern "C"
int WINAPI
PlugInMain(
SInt16 inMessage,
PluginParamBlock* ioParams)
{
CPeekPlugin& Plugin = theApp.GetPlugin();
return Plugin.HandleMessage(inMessage, ioParams);
}