This method posts a message to a running application.
HRESULT PostMessageToApp( long uMsg, long wParam, long lParam );
NOERROR indicates success. If an error occurs, the appropriate HRESULT value is returned.
This method provides a simple way to conduct communication between applications. To use PostMessageToApp, both applications must have the message name defined in a common header file. Both the client and server application must invoke RegisterWindowMessage to register the message name. To receive messages, the server application must call IfmManage::RegisterStartedApplication, with the message name as the third parameter. Any message with this name that is posted by the client application with PostMessageToApp is sent to the server’s event sinks.
If speed is important, memory-mapped files are a much faster way to implement interprocess communication.
IfmManage::RegisterStartedApplication