sendmessage in .net

Interprocess Communication Between .NET and MFC Using WM_COPYDATA – CodeProject

The .NET Application
Obtaining a Handle to the Target Process

The Init function starts the MFC application as a child process, and saves the main window handle which is needed to transmit the data. For my purposes, this method is much simpler than the traditional way of “finding the process” by using the Win32 functions FindWindow and EnumWindows. In addition, it guarantees the handle of the correct instance of the target application.

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

What is 11 + 12 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)