pEpCOMServerAdapter.cpp
author Volker Birk <vb@pep-project.org>
Tue, 21 Jun 2016 19:24:54 +0200
changeset 110 c643437f9b61
parent 96 7c1816ce1dbd
child 117 a0bb0649aae8
permissions -rw-r--r--
store updateKey in resource table
     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 * const 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 }