#include <corecrt_internal.h>
#include <errno.h>
#include <process.h>
#include <stdlib.h>
Go to the source code of this file.
◆ _cwait()
Definition at line 42 of file wait.cpp.
47{
49
50 if (exit_code_result)
51 *exit_code_result =
static_cast<DWORD>(-1);
52
53
54
55
57
58 __crt_unique_handle process_handle(
reinterpret_cast<HANDLE>(process_id));
59
60
64 {
65 if (exit_code_result)
67
68 return process_id;
69 }
70
71
74 {
77 }
78 else
79 {
81 }
82
83 if (exit_code_result)
84 *exit_code_result =
static_cast<DWORD>(-1);
85
86 return -1;
87}
void __cdecl __acrt_errno_map_os_error(unsigned long)
#define ERROR_INVALID_HANDLE
BOOL WINAPI GetExitCodeProcess(IN HANDLE hProcess, IN LPDWORD lpExitCode)
#define _VALIDATE_RETURN_NOEXC(expr, errorcode, retexpr)
#define DBG_UNREFERENCED_PARAMETER(P)
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
DWORD WINAPI GetLastError(void)