SendMessage

Method of IShell

Sends Window Message

Return Value

JavaScript

var pnResult = Shell.SendMessage(hWnd, nCommand, wParam, lParam);

Visual Basic Script

pnResult = Shell.SendMessage hWnd, nCommand, wParam, lParam

C++

long nResult;
HRESULT hr = Shell.SendMessage(hWnd, nCommand, wParam, lParam, &nResult);