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. BHO failing in Windows 2003 Server

BHO failing in Windows 2003 Server

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminquestion
6 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.
  • T Offline
    T Offline
    tony_Udz
    wrote on last edited by
    #1

    Hello, I have written a BHO for explorer.exe. It is working fine with Win XP but same code is not working with Windows 2003 Server. Does anybody has any idea about this? Regards, Tony

    L 1 Reply Last reply
    0
    • T tony_Udz

      Hello, I have written a BHO for explorer.exe. It is working fine with Win XP but same code is not working with Windows 2003 Server. Does anybody has any idea about this? Regards, Tony

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      tony_udz wrote:

      but same code is not working with Windows 2003 Server.

      Oh, it's not working? Well that explains a lot. Thanks for all the specific information. :rolleyes:

      led mike

      T 1 Reply Last reply
      0
      • L led mike

        tony_udz wrote:

        but same code is not working with Windows 2003 Server.

        Oh, it's not working? Well that explains a lot. Thanks for all the specific information. :rolleyes:

        led mike

        T Offline
        T Offline
        tony_Udz
        wrote on last edited by
        #3

        I mean to say BHO Dll is not loaded when exlorer.exe is laucnched. If you have any idea about this please let me know. My concern is that is ther any significant difference between Win XP and Win 2003 Server with reference to BHo.

        L 1 Reply Last reply
        0
        • T tony_Udz

          I mean to say BHO Dll is not loaded when exlorer.exe is laucnched. If you have any idea about this please let me know. My concern is that is ther any significant difference between Win XP and Win 2003 Server with reference to BHo.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          tony_udz wrote:

          I mean to say BHO Dll is not loaded when exlorer.exe is laucnched.

          And how did you determine that? Is it listed in the add-ons list?

          led mike

          T 1 Reply Last reply
          0
          • L led mike

            tony_udz wrote:

            I mean to say BHO Dll is not loaded when exlorer.exe is laucnched.

            And how did you determine that? Is it listed in the add-ons list?

            led mike

            T Offline
            T Offline
            tony_Udz
            wrote on last edited by
            #5

            Actually, to debug this dll i have inserted a MessageBox() in every function, For e.g. In windows XP flow is as follows: - When dll is registered flow is as follows: - 1) DllMain. 2) Dll Register Server. 3) Dll Main. When you open Explorer.exe 1) Dll Main. 2) Dll GetCLassObject. 3) SetSite. When you close Explorer.exe 1) Dll Can Unload. 2) DllMain. But in Windows 2003 flow is as follows: - When dll is registered flow is as follows: - 1) DllMain. 2) Dll Register Server. 3) Dll Main. When you open Explorer.exe No call to DLLMain. I dont know for few unknown reason DLLMain could not be called. Please let me know if you have still not understood the problem.

            T 1 Reply Last reply
            0
            • T tony_Udz

              Actually, to debug this dll i have inserted a MessageBox() in every function, For e.g. In windows XP flow is as follows: - When dll is registered flow is as follows: - 1) DllMain. 2) Dll Register Server. 3) Dll Main. When you open Explorer.exe 1) Dll Main. 2) Dll GetCLassObject. 3) SetSite. When you close Explorer.exe 1) Dll Can Unload. 2) DllMain. But in Windows 2003 flow is as follows: - When dll is registered flow is as follows: - 1) DllMain. 2) Dll Register Server. 3) Dll Main. When you open Explorer.exe No call to DLLMain. I dont know for few unknown reason DLLMain could not be called. Please let me know if you have still not understood the problem.

              T Offline
              T Offline
              tony_Udz
              wrote on last edited by
              #6

              I found the problem. In Windows Server 2003, i had to enable 'Enable Third Party Browser' from Tools-> Internet Options --> Advanced --> Enable Third Party browser extensions (requires restart). Thanks for your help!!

              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