Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there a similar function to SendMessage Win32API ?

1 view
Skip to first unread message

Microsoft Newsgroup

unread,
Sep 2, 2001, 12:15:41 PM9/2/01
to
I need to send a WM_COPYDATA message to another application in C#.... How
can I do that in this new language ??


Thanxs,

Marcio Castilho

Patrick Steele

unread,
Sep 4, 2001, 12:51:41 PM9/4/01
to
In article <#yvoWK9MBHA.2124@tkmsftngp05> (from Microsoft Newsgroup
<mar...@softcast.com.br>),

> I need to send a WM_COPYDATA message to another application in C#.... How
> can I do that in this new language ??

Use PInvoke to call the Win32 API:

[dllimport("user32",
CharSet=System.Runtime.InteropServices.CharSet.Auto)]
public extern static int SendMessage(int hWnd, int Msg, int wParam, int
lparam);

--
Patrick Steele

0 new messages