#include <stdio.h>
#include <windows.h>
int main() {
printf("%d\n", NtTerminateProcess(0,100));
return 0;
}
Jakich flag używać by linkowanie tego kodu się powiodło w ld ?? Mam błąd, że nie znajduje funkcji NtTerminate... :
*****o:main.c:(.text+0x1e): undefined reference to `NtTerminateProcess'
collect2.exe: error: ld returned 1 exit status
System: windows10