_MsgBox

This function displays a message box with OK and Cancel buttons on the target device.

int _MsgBox(
  BSTR String 
);

Parameters

  • String
    Text to display in the message box.

Return Values

If OK is chosen, this function returns IDOK, or 1. If Cancel is chosen, this function returns IDCANCEL, or 2.

Remarks

You can call this function from a script that Cescript.exe executes.

Requirements

OS Versions: Windows CE 4.2 and later.

See Also

Scripting Host Functions | Scripting Host Tool

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.