Umesha MS
Umesha MS

Reputation: 2921

Getting response from SendMessage() + WM_COPYDATA

Currently I am working on a sample which sends user data to the other process using WM_COPYDATA. I construct the COPYDATASTRUCT structure to fill the user data. And send the data to other process using SendMessage() function. The OnCopy() function returns true/ false value. But want to get other than the true/false(Like int, char[], float, etc).

Please help me to getting the response from the other process other than true/false

Regards

Upvotes: 2

Views: 2054

Answers (1)

Sanja Melnichuk
Sanja Melnichuk

Reputation: 3505

Hi all you can to do its send response by SendMessage with COPYDATASTRUCT struct which consist your return data. You cant change SendMessage return type.

Upvotes: 3

Related Questions