Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | Windows | MBS Win Plugin | 10.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Use ConsoleExecuteMBS on Mac OS X and Linux.
ParentWindowHandle:
A handle to the owner window used for displaying a UI or error messages. This value can be 0 if the operation is not associated with a window. You can pass window.handle from a Xojo window.
Operation:
A string, referred to in this case as a verb, that specifies the action to be performed. The set of available verbs depends on the particular file or folder. Generally, the actions available from an object's shortcut menu are available verbs. The following verbs are commonly used:
edit | Launches an editor and opens the document for editing. If File is not a document file, the function will fail. |
explore | Explores a folder specified by File. |
find | Initiates a search beginning in the directory specified by Directory. |
open | Opens the item specified by the File parameter. The item can be a file or folder. |
Prints the file specified by File. If File is not a document file, the function fails. | |
"" | In systems prior to Windows 2000, the default verb is used if it is valid and available in the registry. If not, the "open" verb is used. In Windows 2000 and later, the default verb is used if available. If not, the "open" verb is used. If neither verb is available, the system uses the first verb listed in the registry. |
SW_HIDE | 0 | Hides the window and activates another window. |
SW_MAXIMIZE | 3 | Maximizes the specified window. |
SW_MINIMIZE | 6 | Minimizes the specified window and activates the next top-level window in the z-order. |
SW_RESTORE | 9 | Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when restoring a minimized window. |
SW_SHOW | 5 | Activates the window and displays it in its current size and position. |
SW_SHOWDEFAULT | 10 | Sets the show state based on the SW_ flag specified in the STARTUPINFO structure passed to the CreateProcess function by the program that started the application. An application should call ShowWindow with this flag to set the initial show state of its main window. |
SW_SHOWMAXIMIZED | 3 | Activates the window and displays it as a maximized window. |
SW_SHOWMINIMIZED | 2 | Activates the window and displays it as a minimized window. |
SW_SHOWMINNOACTIVE | 7 | Displays the window as a minimized window. The active window remains active. |
SW_SHOWNA | 8 | Displays the window in its current state. The active window remains active. |
SW_SHOWNOACTIVATE | 4 | Displays a window in its most recent size and position. The active window remains active. |
SW_SHOWNORMAL | 1 | Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when displaying the window for the first time. |
Return code | Description |
0 | The operating system is out of memory or resources. |
ERROR_FILE_NOT_FOUND = 2 | The specified file was not found. |
ERROR_PATH_NOT_FOUND = 3 | The specified path was not found. |
ERROR_BAD_FORMAT = 11 | The .exe file is invalid (non-Win32 .exe or error in .exe image). |
SE_ERR_ACCESSDENIED = 5 | The operating system denied access to the specified file. |
SE_ERR_ASSOCINCOMPLETE = 27 | The file name association is incomplete or invalid. |
SE_ERR_DDEBUSY = 30 | The DDE transaction could not be completed because other DDE transactions were being processed. |
SE_ERR_DDEFAIL = 29 | The DDE transaction failed. |
SE_ERR_DDETIMEOUT = 28 | The DDE transaction could not be completed because the request timed out. |
SE_ERR_DLLNOTFOUND = 32 | The specified DLL was not found. |
SE_ERR_FNF = 2 | The specified file was not found. |
SE_ERR_NOASSOC = 31 | There is no application associated with the given file name extension. This error will also be returned if you attempt to print a file that is not printable. |
SE_ERR_OOM = 8 | There was not enough memory to complete the operation. |
SE_ERR_PNF = 3 | The specified path was not found. |
SE_ERR_SHARE = 26 | A sharing violation occurred. |
The items on this page are in the following plugins: MBS Win Plugin.