InterProcess Communication
-
Hello, I am trying to send a message across processes. However, the message is not successfully sent. Here is what happens: a) If the process (from which message is to be sent) is not elevated, then GetLastError returns 5 which means access error. b) If the process (from which message is to sent) is elevated, then the message is sucessfully sent. Now the problem is I cannot elevate the process. Is there any work around or possible solution. Thanks.
Top 10, Top ten, Top 10 lists, Top ten lists Top 10 about everything
-
Hello, I am trying to send a message across processes. However, the message is not successfully sent. Here is what happens: a) If the process (from which message is to be sent) is not elevated, then GetLastError returns 5 which means access error. b) If the process (from which message is to sent) is elevated, then the message is sucessfully sent. Now the problem is I cannot elevate the process. Is there any work around or possible solution. Thanks.
Top 10, Top ten, Top 10 lists, Top ten lists Top 10 about everything
I think you need to indicate what o/s, what version of c++, and how you are sending the message - eg postmessage, sendmessage, carrier-pidgeon for others to help/make sense of your request 'g'
-
I think you need to indicate what o/s, what version of c++, and how you are sending the message - eg postmessage, sendmessage, carrier-pidgeon for others to help/make sense of your request 'g'
OK. Here are the details: I am using Windows Vista. I am developing the application using VS 2005 (C++). I have tried PostMessage & SendMessage. Both have same behavior in both cases. Thanks.
Top 10, Top ten, Top 10 lists, Top ten lists Top 10 about everything
-
Hello, I am trying to send a message across processes. However, the message is not successfully sent. Here is what happens: a) If the process (from which message is to be sent) is not elevated, then GetLastError returns 5 which means access error. b) If the process (from which message is to sent) is elevated, then the message is sucessfully sent. Now the problem is I cannot elevate the process. Is there any work around or possible solution. Thanks.
Top 10, Top ten, Top 10 lists, Top ten lists Top 10 about everything
Identity Undisclosed wrote:
Is there any work around or possible solution
Use a different IPC mechanism (named pipe, shared memory + mutex or event or something)?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Hello, I am trying to send a message across processes. However, the message is not successfully sent. Here is what happens: a) If the process (from which message is to be sent) is not elevated, then GetLastError returns 5 which means access error. b) If the process (from which message is to sent) is elevated, then the message is sucessfully sent. Now the problem is I cannot elevate the process. Is there any work around or possible solution. Thanks.
Top 10, Top ten, Top 10 lists, Top ten lists Top 10 about everything
You're seeing the correct behavior. UIPI blocks messages sent from a lower-integrity process to a higher-integrity process. If you control the receiving process, you can call
ChangeWindowMessageFilter()
to allow the message through.--Mike--
-
OK. Here are the details: I am using Windows Vista. I am developing the application using VS 2005 (C++). I have tried PostMessage & SendMessage. Both have same behavior in both cases. Thanks.
Top 10, Top ten, Top 10 lists, Top ten lists Top 10 about everything
Look at the WM_COPYDATA message. See: Inter-Process Communication using WM_COPYDATA[^]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc -- PC Power delivered to your phone](http://www.soonr.com)