Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Ativirus-Firewall is blocking a needed global hook!

Ativirus-Firewall is blocking a needed global hook!

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionlearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Russell
    wrote on last edited by
    #1

    My program crashes on a client's pc (with XP) on this 3 lines (on any other pc it correcly runs):

    m\_pMainWnd->ShowWindow(SW\_SHOWMAXIMIZED);		//Wanted a maximed window
    m\_pMainWnd->SetForegroundWindow();				//Set this window on the top of the others
    m\_pMainWnd->UpdateWindow();
    

    They are default instruction in the initialization function (InitInstance) of a MFC program. My antivirus (COMODO) tells a warning on UpdateWindow because when run trys to install a global hook on "atioglxx.dll" (It looks a dll from my ATI video board). If I do not permit this the program stops, else runs perfectly. I'm quite sure that some setting of the antivirus of the client is locking this function! Or that his video-board isn't so compatible with this function. Why this hook? Is it important? can I avoid this to let the program run on every pc? Any other solution? Of course there is the easy way (but not the real solution) to tell to the user to disable the antivirus (I think it is Norton) Thanks


    Russell

    D 1 Reply Last reply
    0
    • R Russell

      My program crashes on a client's pc (with XP) on this 3 lines (on any other pc it correcly runs):

      m\_pMainWnd->ShowWindow(SW\_SHOWMAXIMIZED);		//Wanted a maximed window
      m\_pMainWnd->SetForegroundWindow();				//Set this window on the top of the others
      m\_pMainWnd->UpdateWindow();
      

      They are default instruction in the initialization function (InitInstance) of a MFC program. My antivirus (COMODO) tells a warning on UpdateWindow because when run trys to install a global hook on "atioglxx.dll" (It looks a dll from my ATI video board). If I do not permit this the program stops, else runs perfectly. I'm quite sure that some setting of the antivirus of the client is locking this function! Or that his video-board isn't so compatible with this function. Why this hook? Is it important? can I avoid this to let the program run on every pc? Any other solution? Of course there is the easy way (but not the real solution) to tell to the user to disable the antivirus (I think it is Norton) Thanks


      Russell

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Russell' wrote:

      Is it important? can I avoid this to let the program run on every pc?

      Have you tried?

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups