19 lines
424 B
C
19 lines
424 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);
|
|
void uniproc_await_processes(uniproc_process* p, int* return_codes, size_t num_processes);
|
|
void uniproc_close_process(uniproc_process* p);
|