|
-
March 31st, 1999, 09:20 AM
#1
ATL service thread message pump
I have created a service with ATL Wizard. In the
"void CServiceModule::Run()" function I found the code
while (GetMessage(&msg, 0, 0, 0))
DispatchMessage(&msg);
My question is: where are messages from "DispatchMessage(&msg)" processed?
Thanx a lot!
-
April 6th, 1999, 12:58 PM
#2
Re: ATL service thread message pump
If your object is running in a STA then all calls to its methods will go through the Message loop. Read up on STA Stuff.
-
April 8th, 1999, 08:49 AM
#3
Re: ATL service thread message pump
Hi,
When you call CoInitialize or CoInitailizeEx with apartment model threading the COM Subsystem will
create an Invisible Window with class name "OleMainThreadWndClass". it will use this window to
recieve client requests. this is the simplest expaination, if you need more details refer to any book
which explains COM threading models and proxy implementation
Regards,
Anil
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|