RpcTestCancel
The RpcTestCancel
function checks for a cancel indication.
This function
is supported only by Windows NT.
#include <rpc.h>
RPC_STATUS
RPC_ENTRY RpcTestCancel(VOID);
Remarks
An
application server stub calls the RpcTestCancel routine to determine
whether the call has been cancelled. If the call has been cancelled, RPC_S_OK
is returned; otherwise, another value is returned.
This routine
should be called periodically by the server stub so that it can respond to
cancels in a timely fashion. If the routine returns RPC_S_OK, the stub should
clean up its data structures and return to the client.
Return Values
Value |
Meaning |
RPC_S_OK |
Call has
been cancelled |
Other
values |
Call has
not been cancelled |