VS2017编译驱动遇到LNK2019 unresolved external symbol __CheckForDebuggerJustMyCode

用vs2017编译驱动遇到 Error    LNK2019    unresolved external symbol __CheckForDebuggerJustMyCode referenced in function DriverEntry    Hellodrv  如下图:

VS2017编译驱动遇到LNK2019 unresolved external symbol __CheckForDebuggerJustMyCode

解决方案:

Configuration Properties" -> "C/C++" -> "General": "Support Just My Code Debugging". Change to NO.如下图:

VS2017编译驱动遇到LNK2019 unresolved external symbol __CheckForDebuggerJustMyCode

修改之后重新bulid就没错了。