设想挺好的,而且一开始是定义了一个空的函数,什么事情不做,也不传递任何参数,调试发现没有问题。但我调用printf函数显示这个参数或则用MessageBox显示传入的数字时,就系统崩溃了出现了下面的错误了.
UNEXPECTED_KERNEL_MODE_TRAP (7f)
This means a trap occurred in kernel mode, and it's a trap of a kind
that the kernel isn't allowed to have/catch (bound trap) or that
is always instant death (double fault). The first number in the
bugcheck params is the number of the trap (8 = double fault, etc)
Consult an Intel x86 family manual to learn more about what these
traps are. Here is a *portion* of those codes:
If kv shows a taskGate
use .tss on the part before the colon, then kv.
Else if kv shows a trapframe
use .trap on that value
Else
.trap on the appropriate frame will show where the trap was taken
(on x86, this will be the ebp that goes with the procedure KiTrap)
Endif
kb will then show the corrected stack.
不知道要如何解决这个问题?或则说我使用的方法是错误的?我看微软的范例里面多时用什么event来处理ring0和ring3的通讯。但没有找到合适的例子...
谢谢各位了。