#include <string.h>#include <process.h>#include <stdlib.h>#include "RexxCore.h"#include "StringClass.hpp"#include "RexxActivity.hpp"#include "ActivityManager.hpp"#include "ProtectedObject.hpp"#include "RexxInternalApis.h"#include "SystemInterpreter.hpp"#include "InterpreterInstance.hpp"#include "SysInterpreterInstance.hpp"#include "direct.h"Go to the source code of this file.
Macros | |
| #define | CMDBUFSIZE32S 260 /* Max size of executable cmd */ |
| #define | CMDBUFSIZENT 8092 /* Max size of executable cmd */ |
| #define | CMDDEFNAME32S "COMMAND.COM" /* Default Win 95 cmd handler */ |
| #define | CMDDEFNAMENT "CMD.EXE" /* Default Win NT cmd handler */ |
| #define | UNKNOWN_COMMAND 1 /* unknown command return code */ |
| #define | SYSENV "CMD" /* Default windows cmd environment*/ |
| #define | COMSPEC "COMSPEC" /* cmd handler env name */ |
| #define | SHOWWINDOWFLAGS SW_HIDE |
Functions | |
| bool | sys_process_set (RexxExitContext *context, const char *command, const char *cmd, RexxObjectPtr &rc) |
| char * | unquote (const char *s) |
| bool | sys_process_cd (RexxExitContext *context, const char *command, const char *cmd, RexxObjectPtr &res) |
| bool | sysCommandNT (RexxExitContext *context, const char *command, const char *cmdstring_ptr, bool direct, RexxObjectPtr &result) |
| RexxObjectPtr RexxEntry | systemCommandHandler (RexxExitContext *context, RexxStringObject address, RexxStringObject command) |
| #define CMDBUFSIZE32S 260 /* Max size of executable cmd */ |
Definition at line 63 of file windows/SystemCommands.cpp.
| #define CMDBUFSIZENT 8092 /* Max size of executable cmd */ |
Definition at line 64 of file windows/SystemCommands.cpp.
| #define CMDDEFNAME32S "COMMAND.COM" /* Default Win 95 cmd handler */ |
Definition at line 65 of file windows/SystemCommands.cpp.
| #define CMDDEFNAMENT "CMD.EXE" /* Default Win NT cmd handler */ |
Definition at line 66 of file windows/SystemCommands.cpp.
| #define COMSPEC "COMSPEC" /* cmd handler env name */ |
Definition at line 71 of file windows/SystemCommands.cpp.
| #define SHOWWINDOWFLAGS SW_HIDE |
Definition at line 73 of file windows/SystemCommands.cpp.
| #define SYSENV "CMD" /* Default windows cmd environment*/ |
Definition at line 70 of file windows/SystemCommands.cpp.
| #define UNKNOWN_COMMAND 1 /* unknown command return code */ |
Definition at line 67 of file windows/SystemCommands.cpp.
| bool sys_process_cd | ( | RexxExitContext * | context, |
| const char * | command, | ||
| const char * | cmd, | ||
| RexxObjectPtr & | res | ||
| ) |
Definition at line 147 of file windows/SystemCommands.cpp.
References NULLOBJECT, and unquote().
Referenced by systemCommandHandler().
| bool sys_process_set | ( | RexxExitContext * | context, |
| const char * | command, | ||
| const char * | cmd, | ||
| RexxObjectPtr & | rc | ||
| ) |
Definition at line 88 of file windows/SystemCommands.cpp.
References NULLOBJECT.
Referenced by systemCommandHandler().
| bool sysCommandNT | ( | RexxExitContext * | context, |
| const char * | command, | ||
| const char * | cmdstring_ptr, | ||
| bool | direct, | ||
| RexxObjectPtr & | result | ||
| ) |
Definition at line 202 of file windows/SystemCommands.cpp.
References SystemInterpreter::exceptionHostProcess, SystemInterpreter::exceptionHostProcessId, SystemInterpreter::explicitConsole, NULLOBJECT, and SHOWWINDOWFLAGS.
Referenced by systemCommandHandler().
| RexxObjectPtr RexxEntry systemCommandHandler | ( | RexxExitContext * | context, |
| RexxStringObject | address, | ||
| RexxStringObject | command | ||
| ) |
Definition at line 330 of file windows/SystemCommands.cpp.
References CMDBUFSIZENT, CMDDEFNAMENT, COMSPEC, SystemInterpreter::exceptionConsole, SystemInterpreter::explicitConsole, NULLOBJECT, Rexx_Error_System_resources_user_defined, SearchPath(), sys_process_cd(), sys_process_set(), and sysCommandNT().
| char* unquote | ( | const char * | s | ) |
Definition at line 126 of file windows/SystemCommands.cpp.
Referenced by sys_process_cd().