The information in this article applies to:
SUMMARYOn Windows NT 3.51, GetProcessWindowStation() and GetThreadDesktop() will return NULL handles from a service that has not called any USER or GDI APIs. MORE INFORMATION
Initially, a service will not have a windowstation and desktop associated
with it. In order to associate a windowstation and desktop to the service,
the service must call a USER or GDI API that interacts with the service's
desktop such as GetDesktopWindow() or CreateDC(). Once one of these APIs
has been called, GetProcessWindowStation() and GetThreadDesktop() will
return valid handles.
REFERENCESFor more information on windowstations and desktops, please refer to the Win32 SDK documentation. Additional query words: 3.51 4.00 kbdss
|
|
Last Reviewed: October 18, 1999 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |