Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kProcess_Construct | ( | kProcess * | process,
|  | const kChar * | path,
|  | kAlloc | allocator
| ) |  |

Constructs a kProcess object.

Allows the creation and start of a child process. The search path will not be used when looking for the executable. This class is not thread safe. The child process gets terminated when the calling process ends.

Windows specific: The path string can specify the full path and file name of the module to execute or it can specify a partial name. In the case of a partial name, the function uses the current drive and current directory to complete the specification.

Parameters

  process | Destination for the constructed object handle.
  path | Path of the new process.
  allocator | Memory allocator (or kNULL for default).

Returns
  Operation status.