阅读:987回复:1
请教:关于vxd中断处理
向各位高手请教,我想写一个vxd处理实时中断,看到很多参考资料都提到了一点:与运用程序通信时利用 SHELL_PostMessage,可是我实在不明白在运用程序中如何来接收与处理这个消息,还有对自定义消息有没有什么特殊的要求,还是任何一个16进制数都可以吗???(因为没有资料提到,实在不懂),请留下宝贵意见,谢谢。
|
|
|
沙发#
发布于:2002-04-15 12:29
在PostMessage的时候,就会调用你的callback function,如果你给了callback function的话。
This service cannot be called from a hardware interrupt handler. You must schedule a global event and call it from the event handler. The system calls the callback procedure when the PostMessage function successfully posts the message into the queue of the given window. The prototype of the callback is: VOID __cdecl PostMsgCallback(DWORD PostMessageRetValue, PVOID RefData) The RefData parameter is the same value as passed to SHELL_PostMessage. The PostMessageRetValue parameter is the value returned by the PostMessage function. If this parameter is nonzero, the message was posted; otherwise, it was not posted. When the callback procedure receives control, the system VM has been boosted by High_Pri_Device_Boost. |
|