Fixed default struct initialization because I write C++ normally Fixed bug where uniproc_win64.c would not correctly append arguments to the command-line string
19 lines
466 B
C
19 lines
466 B
C
#pragma once
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
#include <Windows.h>
|
|
typedef struct {
|
|
FILE* in;
|
|
FILE* out;
|
|
FILE* err;
|
|
|
|
// OS-dependent handle to the process
|
|
uint32_t _proc_hdl;
|
|
|
|
} uniproc_process;
|
|
|
|
uniproc_process uniproc_create_process(const char* cmd, const size_t num_args, const char** argv);
|
|
void uniproc_await_processes(uniproc_process* p, int* return_codes, size_t num_processes);
|
|
void uniproc_close_process(uniproc_process* p);
|