starting gatekeeper after init of module
authorVolker Birk <vb@pep-project.org>
Sun, 19 Jun 2016 08:17:04 +0200
changeset 8956b26b1c4f3b
parent 88 659d0fc5bc30
child 90 1328c5a129ea
starting gatekeeper after init of module
GateKeeper.h
pEpCOMServerAdapter.cpp
     1.1 --- a/GateKeeper.h	Sun Jun 19 07:59:43 2016 +0200
     1.2 +++ b/GateKeeper.h	Sun Jun 19 08:17:04 2016 +0200
     1.3 @@ -13,6 +13,11 @@
     1.4          RegCloseKey(cu);
     1.5      }
     1.6  
     1.7 +    CpEpCOMServerAdapterModule * const module() const
     1.8 +    {
     1.9 +        return _self;
    1.10 +    }
    1.11 +
    1.12      void keep();
    1.13  
    1.14  protected:
     2.1 --- a/pEpCOMServerAdapter.cpp	Sun Jun 19 07:59:43 2016 +0200
     2.2 +++ b/pEpCOMServerAdapter.cpp	Sun Jun 19 08:17:04 2016 +0200
     2.3 @@ -14,8 +14,10 @@
     2.4  class CpEpCOMServerAdapterModule : public ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >
     2.5  {
     2.6  public:
     2.7 -    CpEpCOMServerAdapterModule() : ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >(), gatekeeper_thread(NULL)
     2.8 +    HRESULT PreMessageLoop(int nShowCmd)
     2.9      {
    2.10 +        ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >::PreMessageLoop(nShowCmd);
    2.11 +
    2.12          gatekeeper_thread = new thread(gatekeeper, this);
    2.13          gatekeeper_thread->detach();
    2.14      }