kicking MessageLoop
authorVolker Birk <vb@pep-project.org>
Sun, 19 Jun 2016 08:23:18 +0200
changeset 910cddbdb0973f
parent 90 1328c5a129ea
child 92 bd0cd4106700
kicking MessageLoop
GateKeeper.cpp
pEpCOMServerAdapter.cpp
     1.1 --- a/GateKeeper.cpp	Sun Jun 19 08:20:37 2016 +0200
     1.2 +++ b/GateKeeper.cpp	Sun Jun 19 08:23:18 2016 +0200
     1.3 @@ -45,6 +45,8 @@
     1.4  
     1.5  void GateKeeper::keep_plugin()
     1.6  {
     1.7 +    MessageBox(NULL, _T("test"), _T("keep_plugin"), MB_ICONINFORMATION | MB_TOPMOST);
     1.8 +
     1.9      DWORD value;
    1.10      DWORD size;
    1.11  
     2.1 --- a/pEpCOMServerAdapter.cpp	Sun Jun 19 08:20:37 2016 +0200
     2.2 +++ b/pEpCOMServerAdapter.cpp	Sun Jun 19 08:23:18 2016 +0200
     2.3 @@ -14,17 +14,10 @@
     2.4  class CpEpCOMServerAdapterModule : public ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >
     2.5  {
     2.6  public:
     2.7 -    HRESULT PreMessageLoop(int nShowCmd)
     2.8 +    CpEpCOMServerAdapterModule() : ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >(), gatekeeper_thread(NULL)
     2.9      {
    2.10 -        HRESULT result = ATL::CAtlExeModuleT< CpEpCOMServerAdapterModule >::PreMessageLoop(nShowCmd);
    2.11 -        assert(result == S_OK);
    2.12 -        if (result != S_OK)
    2.13 -            return result;
    2.14 -
    2.15          gatekeeper_thread = new thread(gatekeeper, this);
    2.16          gatekeeper_thread->detach();
    2.17 -
    2.18 -        return S_OK;
    2.19      }
    2.20  
    2.21  	DECLARE_LIBID(LIBID_pEpCOMServerAdapterLib)