Platforms to show: All Mac Windows Linux Cross-Platform
Back to StdoutMBS class.
StdoutMBS.AttachConsole(ProcessID as Integer = -1) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
ProcessId: The identifier of the process whose console is to be used. This parameter can be one of the following values.
Value | Meaning |
pid | Use the console of the specified process. |
-1 | Use the console of the parent of the current process. |
Returns Windows error code or zero for success.
A process can be attached to at most one console. If the calling process is already attached to a console, the error code returned is ERROR_ACCESS_DENIED (5). If the specified process does not have a console, the error code returned is ERROR_INVALID_HANDLE (6). If the specified process does not exist, the error code returned is ERROR_GEN_FAILURE (31).
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 8.7 | ✅ Yes | ❌ No | ✅ Yes | ❌ No | Desktop, Console & Web |
StdoutMBS.FreeConsole as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 12.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Returns Windows error code or zero for success.
A process can be attached to at most one console. If the calling process is not already attached to a console, the error code returned is ERROR_INVALID_PARAMETER (87).
A process can use the FreeConsole function to detach itself from its console. If other processes share the console, the console is not destroyed, but the process that called FreeConsole cannot refer to it. A console is closed when the last process attached to it terminates or calls FreeConsole. After a process calls FreeConsole, it can call the AllocConsole function to create a new console or AttachConsole to attach to another console.
StdoutMBS.Write(data as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Files | MBS Util Plugin | 6.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
You have to make sure your data is in good text encoding.
The items on this page are in the following plugins: MBS Util Plugin.