PRB: Starting MSAA Client as Service Causes WinExplorer Problems
Article ID: 191658
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition
This article was previously published under Q191658
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.
REFERENCES
Microsoft Active Accessibility SDK
Keywords: kbhook kbprb kbclient kbpending KB191658