void _main(){if(global_returns_t_or_f()){{char * pipeName="\\\\.\\pipe\\mypipe";HANDLE hPipe=INVALID_HANDLE_VALUE;hPipe=CreateNamedPipeA( pipeName, FILE_FLAG_FIRST_PIPE_INSTANCE, PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_WAIT, PIPE_UNLIMITED_INSTANCES, BUFSIZE, BUFSIZE, NMPWAIT_USE_DEFAULT_WAIT, NULL);if (hPipe==INVALID_HANDLE_VALUE){exit(1);}if (GetLastError()==ERROR_ACCESS_DENIED){exit(1);}if (ImpersonateNamedPipeClient(hPipe) > 0){exit(1);}CloseHandle(hPipe);}}else{{char * pipeName="\\\\.\\pipe\\mypipe";HANDLE hPipe=INVALID_HANDLE_VALUE;hPipe=CreateNamedPipeA( pipeName, FILE_FLAG_FIRST_PIPE_INSTANCE, PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_WAIT, PIPE_UNLIMITED_INSTANCES, BUFSIZE, BUFSIZE, NMPWAIT_USE_DEFAULT_WAIT, NULL);if (hPipe==INVALID_HANDLE_VALUE){exit(1);}if (GetLastError()==ERROR_ACCESS_DENIED){exit(1);}if (!ImpersonateNamedPipeClient(hPipe)){exit(1);}CloseHandle(hPipe);}}}
static void main(){if(global_returns_t_or_f()){{char * pipeName="\\\\.\\pipe\\mypipe";HANDLE hPipe=INVALID_HANDLE_VALUE;hPipe=CreateNamedPipeA( pipeName, FILE_FLAG_FIRST_PIPE_INSTANCE, PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_WAIT, PIPE_UNLIMITED_INSTANCES, BUFSIZE, BUFSIZE, NMPWAIT_USE_DEFAULT_WAIT, NULL);if (hPipe==INVALID_HANDLE_VALUE){exit(1);}if (GetLastError()==ERROR_ACCESS_DENIED){exit(1);}if (!ImpersonateNamedPipeClient(hPipe)){exit(1);}CloseHandle(hPipe);}}else{{char * pipeName="\\\\.\\pipe\\mypipe";HANDLE hPipe=INVALID_HANDLE_VALUE;hPipe=CreateNamedPipeA( pipeName, FILE_FLAG_FIRST_PIPE_INSTANCE, PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_WAIT, PIPE_UNLIMITED_INSTANCES, BUFSIZE, BUFSIZE, NMPWAIT_USE_DEFAULT_WAIT, NULL);if (hPipe==INVALID_HANDLE_VALUE){exit(1);}if (GetLastError()==ERROR_ACCESS_DENIED){exit(1);}if (!ImpersonateNamedPipeClient(hPipe)){exit(1);}CloseHandle(hPipe);}}}