2021-02-03 06:17:53 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_NTSPAWN_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_NTSPAWN_H_
|
2021-01-25 21:08:05 +00: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_
|
|
|
|
|
2022-11-08 19:39:50 +00:00
|
|
|
int mkntcmdline(char16_t[ARG_MAX / 2], const char *, char *const[]) _Hide;
|
2022-05-25 18:31:08 +00:00
|
|
|
int mkntenvblock(char16_t[ARG_MAX / 2], char *const[], const char *,
|
2022-11-08 19:39:50 +00:00
|
|
|
char[ARG_MAX]) _Hide;
|
2021-02-03 06:17:53 +00:00
|
|
|
int ntspawn(const char *, char *const[], char *const[], const char *,
|
2021-01-30 06:00:10 +00:00
|
|
|
struct NtSecurityAttributes *, struct NtSecurityAttributes *,
|
|
|
|
bool32, uint32_t, const char16_t *, const struct NtStartupInfo *,
|
2022-11-08 19:39:50 +00:00
|
|
|
struct NtProcessInformation *) _Hide;
|
2021-01-25 21:08:05 +00:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
2021-02-03 06:17:53 +00:00
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_NTSPAWN_H_ */
|