Easy IPC on Windows Mobile?

后端 未结 5 1407
小鲜肉
小鲜肉 2020-12-19 13:00

In a C++ project (i.e. no .NET) on Windows Mobile, I am looking for a way to easily communicate between two independently running applications. Application A would run a ser

5条回答
  •  情深已故
    2020-12-19 13:26

    On Windows Mobile I seem to remember that all processes are mapped into the same address space. So, create message windows in both processes with known names and or class names and use FindWindow in each process to find the other.

    Then, SendMessage with a WM_APP defined message id and a pointer to the data to transmit in wParam or lParam.

    If I am wrong and Mobile does partition process memory, then just use WM_COPYDATA which - on the desktop uses memory mapping and so is really fast - to send data between the apps.

提交回复
热议问题