PRB: Starting MSAA Client as Service Causes WinExplorer Problems

ID: Q191658


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK)
  • Microsoft Windows 2000


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 kbWinOS2000 kbSDKWin32 kbWinOS95 kbx86 kbGrpShell
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: January 25, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.