对于每个这样的IRP,这个函数必须获得取消自旋锁(the cancel spin lock)并设置IRP的取消例程(cancel routine)为NULL。IRP状态必须设置为STATUS_CANCELLED,并且Information字段设置为0。
基于1个网页-相关网页
本节概述在服务器应用程序中向 RPC 运行时注册接口规范和取消注册的例程。
This section gives an overview of registering an interface specification with the RPC runtime in the server application and unregistering it.
要了解如何在这种情况下维持任务执行、以及如何在activity被销毁时正确地取消任务,请参见Shelves例程的源代码。
To see how you can persist your task during one of these restarts and how to properly cancel the task when the activity is destroyed, see the source code for the Shelves sample application.
在结束该程序时,要使用 EMDeregister() 函数取消对回调例程的注册。
When wrapping up the program, the EMDeregister() function is used to de-register the callback routine.
应用推荐