NtCreateFile Setup Switch to X64 (should also work for x86) Switch to Release Settings -> C/C++ -> Optimization -> Disabled