IAPI::PostMessage

property PostMessage.

Posts asynchronously a message to a window.

 

HRESULT PostMessage(
  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.

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