Microsoft KB Archive/191658

{|
 * width="100%"|

PRB: Starting MSAA Client as Service Causes WinExplorer Problems

 * }

Q191658

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK)

-

SYMPTOMS
When you start a Microsoft Active Accessibility (MSAA) client as a service and it installs an in-context hook before Windows Explorer starts, the Copy and Paste operations do not work in Windows Explorer. Other problems might also exist.

RESOLUTION
When you start a Microsoft Active Accessibility (MSAA) client as a service that uses in-context hooking, you should wait until Windows Explorer has started to install the hook(s). To do this, install an out-of-context hook for EVENT_OBJECT_CREATE using the MSAA SetWinEventHook API and wait until an object with the Shell_TrayWnd class name is created. This indicates that Windows Explorer has been started and that you can safely install your in- context hooks without disabling the Windows Explorer Copy and Paste operations. After you see this event, uninstall the temporary out-of- context hook and install the desired in-context hooks.