Hooking service is not running automatically after upgrading to XP SP2
-
I wrote a service that loads a dll for global hook purpose using SetWindowsHookEx function with WH_KEYBOARD_LL parameter. It is defined to run automatically on system startup and to interact with the desktop, as well. It works fine till I upgraded XP to XP SP2. The service starts successfully in manual mode but not automatically on system startup. The event viewer reports the errors event id 7009 and 7000 from the Service Control Manager. Event ID: 7009 Source: Service Control Manager Description: Timeout (120000 milliseconds) waiting for service to connect. Event ID: 7000 Source: Service Control Manager Description: The Certificate Authority service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion. After commented out the hooking function I saw that the services started on system startup. Is there anything that you know regarding to global hooking on XP SP2 that prevent from my service to run on system startup? Thanks, Dudi