47 if ((prochandle = OpenProcess(PROCESS_TERMINATE, FALSE, (DWORD) pid)) == NULL)
52 if (!TerminateProcess(prochandle, 255))
55 CloseHandle(prochandle);
58 CloseHandle(prochandle);
61 snprintf(pipename,
sizeof(pipename),
"\\\\.\\pipe\\pgsignal_%u", pid);
63 if (CallNamedPipe(pipename, &sigData, 1, &sigRet, 1, &bytes, 1000))
65 if (bytes != 1 || sigRet !=
sig)
73 switch (GetLastError())
75 case ERROR_BROKEN_PIPE:
84 case ERROR_FILE_NOT_FOUND:
88 case ERROR_ACCESS_DENIED:
void _dosmaperr(unsigned long)
int pgkill(int pid, int sig)