PRB: Starting MSAA Client as Service Causes WinExplorer Problems

ID: Q191658

The information in this article applies to:

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

Additional query words:

Keywords          : kbole kbClient kbHook kbNTOS400 kbWinOS95 kbx86 kbGrpShell 
Issue type        : kbprb
Solution Type     : kbpending

Last Reviewed: August 22, 1998