Y
Yoramo
hello
I'm calling Win32 API methods like "SendMessage" in this method there
are the lParam & wParam parameters, sometimes I need to pass a structure
address in the lParam or wParam.
the only way I found that workes is to define SendMessage like that:
[DllImport("User32.dll",CharSet = CharSet.Auto)]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam,
ref RECT r);
this approach is very limited and enforces me to define a new prototype for
every datatype I need to pass.
I'm sure there is a better way. but I did not find it.
Thanks in advance.
Yoramo
I'm calling Win32 API methods like "SendMessage" in this method there
are the lParam & wParam parameters, sometimes I need to pass a structure
address in the lParam or wParam.
the only way I found that workes is to define SendMessage like that:
[DllImport("User32.dll",CharSet = CharSet.Auto)]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam,
ref RECT r);
this approach is very limited and enforces me to define a new prototype for
every datatype I need to pass.
I'm sure there is a better way. but I did not find it.
Thanks in advance.
Yoramo