pEpCOMServerAdapter.cpp
author Markus Schaber <markus@pep-security.net>
Tue, 04 Oct 2016 23:07:42 +0200
branchkeysync
changeset 178 9f30e2a5f72c
parent 117 a0bb0649aae8
child 269 26c8597fe860
permissions -rw-r--r--
COM-30 COM-24: Refactorings
Drop unused enum.
     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 }