katlogic / WindowsD

Disable DSE and WinTcb (without breaking DRM)
400 stars 85 forks source link

how get ntifs.h #10

Open czrfr opened 1 year ago

czrfr commented 1 year ago

windres loader64.rc loader64.o gcc service.c -o wind64.dll -fno-ident -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-asynchronous-unwind-tables -fno-exceptions -O2 -DNDEBUG -municode -Wall -Wno-unused-function -Wl,--enable-stdcall-fixup -nostartfiles -Wl,-e_win_main -shared -Wl,-e_dll_main -nostartfiles -lntdll -nostdlib -lkernel32 -lmsvcrt objcopy --strip-all wind64.dll echo -e '#include "defs.h"\nDLL_ID RCDATA "wind64.dll"' | windres -o wind64-dll.o gcc -I/c/msys64/mingw64/x86_64-w64-mingw32/include/ddk driver.c -o wind64.sys -fno-ident -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-asynchronous-unwind-tables -fno-exceptions -O2 -DNDEBUG -municode -Wall -Wno-unused-function -Wl,--enable-stdcall-fixup -nostartfiles -Wl,-e_win_main -shared -Wl,-e_driver_entry -Wl,--subsystem=native -nostartfiles -nostdlib -lntoskrnl driver.c:1:10: fatal error: ntifs.h: No such file or directory 1 | #include | ^~~~~ compilation terminated. make: *** [Makefile:47: wind64-sys.o] Error 1