C++中使用SEH
Alt+F7 => C++ => Code Generation => Enable C++ Exception,选择”Yes with SHE Exceptions”
另外,用VS2005编译驱动的时候,如果使用SEH,可能会把kernel32.dll link到驱动里。这样讲导致驱动不能正常加载。
简单的办法是:
Alt+F7 => Linker => Input => Additional Dependencies ,将”Inherit from parent or project default”的复选项去掉。