Message queue
-
is message queue will be per process or thread or System???
-
is message queue will be per process or thread or System???
Per thread; but it's created on demand so not all threads will have one. Steve
-
is message queue will be per process or thread or System???
voorugonda prashanth wrote:
is message queue will be per process or thread or System??
Exactly what you want to know?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
-
is message queue will be per process or thread or System???
I believe private queues are machine based. public queues work only in what they call "Domain Mode" and are integrated with Active Directory so.... I don't know exactly what that means, but it sounds like they might be more Enterprise based rather than Machine based.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum led mike
-
Per thread; but it's created on demand so not all threads will have one. Steve
if it is per thread, then why we need handle in MSG structure???
-
if it is per thread, then why we need handle in MSG structure???
voorugonda prashanth wrote:
then why we need handle in MSG structure???
I assume you're referring to the
hwnd
HWND
in the struct. We need this because, regardless of any threading issues, we still need to know which window the message is for. From MSDN onGetMessage
"The GetMessage function retrieves a message from the calling thread's message queue." Steve