Method WndCopyData.Send
Overload
Sends string or other data to a window of any process. Uses API SendMessageWM_COPYDATA.
public static nint Send<T>(wnd w, int dataId, ReadOnlySpan<T> data, nint wParam = 0) where T : unmanaged
Parameters
w (wnd)
The window. |
dataId (int)
Data id. It is COPYDATASTRUCT.dwData. |
data (ReadOnlySpan<T>)
Data. For example string or byte[]. String can contain |
wParam (nint)
Can be any value. Optional. |
Returns
nint
SendMessage's return value. |
Type Parameters
T
Type of data elements. For example, char for string, byte for byte[]. |