IAPI::MsgBox

property MsgBox.

Behaves in the same way as VBScript MsgBox, except that the first parameter is a handle of parent window.

 

HRESULT MsgBox(
  long hWndParent,
  BSTR Prompt,
  long Buttons,
  BSTR Title,
  long *pVal
);

Parameters

hWndParent

[in,defaultvalue(0)] . Handle of parent window

Prompt

[in] .   Prompting message

Buttons

[in,defaultvalue(0)] . Same values as in VBScript

Title

[in,defaultvalue("")] . Title of the message

pVal

[out, retval] The returned value is related to the pushed button

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, PopupMsgBox