Article ID: 192127 - Last Review: June 28, 2004 - Revision: 4.0 FIX: RpcTestCancel() Always Returns Error Code 5This article was previously published under Q192127 SYMPTOMS
Your RPC server manager routine makes a RpcTestCancel() call to test if the
current RPC call has been cancelled by the remote RPC client. However, this
call always returns error code 5.
RESOLUTIONTo resolve this problem, obtain the latest service pack for Windows NT 4.0 or Windows NT Server 4.0, Terminal Server Edition. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
152734
(http://support.microsoft.com/kb/152734/EN-US/
)
How to Obtain the Latest Windows NT 4.0 Service Pack
STATUSMicrosoft has confirmed that this is a problem in Windows NT 4.0 and Windows NT Server 4.0, Terminal Server Edition. This problem was first corrected in Windows NT 4.0 Service Pack 4.0 and Windows NT Server 4.0, Terminal Server Edition Service Pack 4. MORE INFORMATION
Under Windows NT version 4.0 Service Pack 3 and previous Service Packs,
when an RPC client issues a cancel then the client is unblocked. However,
the server never notices the cancel. If the client is using an infinite
timeout, the client does not unblock unless the server finishes or fails
the call.
On Windows NT version 4.0, you need to do the following to cancel an RPC remote call:
| Article Translations
|

Back to the top
