WinAPPCCancelBlockingCall()
This function cancels any outstanding blocking operation for its thread. If Personal Communications cancels an outstanding blocked call, it generates an error code of AP_CANCELLED. Use this call only from within a blocking hook function. Personal Communications and Communications Server provides this function for backward compatibility with existing applications.
Syntax
Int WINAPI WINAPPCCancelBlockingCall(void);
Returned Values
- WAPPCINVALID
- There is no outstanding blocking call.
Usage Notes
If the outstanding verb relates to a conversation (for example, SEND_DATA or RECEIVE_AND_WAIT), Personal Communications purges the verb and deactivates the session. If the verb relates to a transaction program (for example, RECEIVE_ALLOCATE or TP_STARTED), Personal Communications ends the transaction program. In both cases, although Personal Communications deactivates conversations and sessions as cleanly as possible, it does not flush send buffers or waiting-for-confirmations or other pending actions. This call is synchronous. After the previously described processing is complete, the function is finished.

- This is not supported for Win32® SNA API clients.