IAPI::SendMessage

property SendMessage.

Sends synchronously a message to a window.

 

HRESULT SendMessage(
  long hWnd,
  long Msg,
  long wParam,
  long lParam,
  long *pVal
);

Parameters

hWnd

[in] .   Handle of the target window

Msg

[in] .   Windows message. For example: 273 for WM_COMMAND

wParam

[in] .   0 or any identifier if Msg = 273

lParam

[in] .   0

pVal

[out, retval] The returned value by the target window.

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI