pEpCOMServerAdapter.cpp
author Thomas
Wed, 02 May 2018 09:46:48 +0200
branchCOM-87
changeset 287 99abd7d70c1e
parent 269 26c8597fe860
permissions -rw-r--r--
Rename flags
     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 }