Skip to main content
gamedev.net
🔒 Locked

Postmessage / Windows messaging problem

Started by Esmo2000 Jul 6, 2006 at 9:10 PM 1 replies 500+ views
Original Post
Esmo2000
Esmo2000
Hey All: I have a process (specifically the windows MSGINA although, that's pretty much irrelevant) and I am transmitting an hwnd to another service. From the other service, I want to post a message back, and have the callback for the message triggered, however, postmessage is returning false implying that I am not using the hwnd right. Can anyone give me suggestions as to why it might not work? Cheers, J
We are what we do repeatedly. Excellence, then, is not an act, but a habit.
Esmo2000
Esmo2000
There is one more thing, I tried doing a post message from the program itself, and the postmessage was sucessful. So it only fails from another application.

Ideas?
We are what we do repeatedly. Excellence, then, is not an act, but a habit.
mutex
mutex
Are the threads in the same desktop? MSDN says that "Messages can be sent only between processes that are on the same desktop", and IIRC MSGINA runs on a separate desktop. See this for GINA info.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.