31#define WIN32_LEAN_AND_MEAN
44 fprintf(
stderr,
"Killing the process with PID %lu...\n", dwProcessId);
49 fprintf(
stderr,
"Could not open the process with PID %lu\n", dwProcessId);
55 fprintf(
stderr,
"Could not terminate the process with PID %lu\n", dwProcessId);
UINT32 strtoul(const char *String, char **Terminator, UINT32 Base)
BOOL WINAPI TerminateProcess(IN HANDLE hProcess, IN UINT uExitCode)
HANDLE WINAPI OpenProcess(IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwProcessId)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
#define PROCESS_TERMINATE
_In_ BOOL _In_ HANDLE hProcess
int ExecuteKill(const char *lpPid)