2021-02-02 22:17:53 -08:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_NTSPAWN_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_NTSPAWN_H_
|
2021-01-25 13:08:05 -08:00
|
|
|
#include "libc/nt/struct/processinformation.h"
|
|
|
|
#include "libc/nt/struct/securityattributes.h"
|
|
|
|
#include "libc/nt/struct/startupinfo.h"
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2023-01-03 03:22:09 -08:00
|
|
|
int mkntcmdline(char16_t[ARG_MAX / 2], char *const[]) _Hide;
|
2022-05-25 11:31:08 -07:00
|
|
|
int mkntenvblock(char16_t[ARG_MAX / 2], char *const[], const char *,
|
2022-11-08 11:39:50 -08:00
|
|
|
char[ARG_MAX]) _Hide;
|
2021-02-02 22:17:53 -08:00
|
|
|
int ntspawn(const char *, char *const[], char *const[], const char *,
|
2021-01-29 22:00:10 -08:00
|
|
|
struct NtSecurityAttributes *, struct NtSecurityAttributes *,
|
|
|
|
bool32, uint32_t, const char16_t *, const struct NtStartupInfo *,
|
2022-11-08 11:39:50 -08:00
|
|
|
struct NtProcessInformation *) _Hide;
|
2021-01-25 13:08:05 -08:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
2021-02-02 22:17:53 -08:00
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_NTSPAWN_H_ */
|