Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Win2K and hidden OLE windows

31 views
Skip to first unread message

Doug Collier

unread,
Sep 18, 2001, 7:24:27 PM9/18/01
to
Hi All,

Most of you are probably aware of the hidden OLE windows with the name
"OleMainThreadWndName". Well, I used to be able to monitor the messages
coming into those windows using Spy++, but now that I am using Win2K, I
cannot find those windows.

Does anyone know what is going on here? Is COM using a different window for
it's STA communication or is Spy++ not working correctly under Win2K? My
thought was that Spy++ was not working properly, but I cannot seem to find
another windows message monitoring utility anywhere. Any suggestions?

Just reply to the newsgroup for everyone's benefit

much thanks
-doug


Bill Cheng (MS)

unread,
Sep 20, 2001, 10:23:50 PM9/20/01
to
Hi Doug,

Thanks for using Microsoft products.

I also cannot locate the "OleMainThreadWndName" window in Spy++. The window
class is "OleMainThreadWndClass". I can find the window using FindWindowEx.

I suggest we use hook to intercept the message. We can use
GetWindowThreadProcessId to get the thread that creates the window.

Best Regards,

Bill

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.

©2001 Microsoft Corporation. All rights reserved.

Jason Orphanidis

unread,
Oct 22, 2001, 7:20:55 AM10/22/01
to
Maybe COM now uses the special hidden window for message posting only,
refered to in MSDN as message-only windows.
I don't think these kind of windows are viewable from Spy++... I quote from
MSDN:

"To create a message-only window, specify the HWND_MESSAGE constant or a
handle to an existing message-only window in the hWndParent parameter of the
CreateWindowEx function"
"To find message-only windows, specify HWND_MESSAGE in the hwndParent
parameter of the FindWindowEx function".

Just a thought.

Jason

"Bill Cheng (MS)" <billchn...@microsoft.com> wrote in message
news:KT8j2Rk...@cppssbbsa01.microsoft.com...

0 new messages