pEpCOMServerAdapter.cpp
author Krista Grothoff <krista@pep-project.org>
Thu, 08 Sep 2016 11:25:22 +0200
branchCOM-28
changeset 160 9b97e91f4ad0
parent 117 a0bb0649aae8
child 269 26c8597fe860
permissions -rw-r--r--
Closed branch COM-28
     1 // pEpCOMServerAdapter.cpp : Implementation of WinMain
     2 
     3 
     4 #include "stdafx.h"
     5 #include "resource.h"
     6 #include "xdlldata.h"
     7 
     8 #include "GateKeeper.h"
     9 #include "pEpCOMServerAdapter.h"
    10 
    11 using namespace ATL;
    12 using namespace std;
    13 
    14 void CpEpCOMServerAdapterModule::gatekeeper(CpEpCOMServerAdapterModule * self)
    15 {
    16     pEp::GateKeeper keeper(self);
    17     keeper.keep();
    18 }
    19 
    20 CpEpCOMServerAdapterModule _AtlModule;
    21 
    22 //
    23 extern "C" int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, 
    24 								LPTSTR /*lpCmdLine*/, int nShowCmd)
    25 {
    26     _AtlModule.hModule(hInstance);
    27     _AtlModule.start_gatekeeper();
    28 
    29     return _AtlModule.WinMain(nShowCmd);
    30 }