SRV_IODEAD

Determines whether an SRV_PROC input and output connection to a client is open.


Important This Open Data Services function or macro is only supported in Microsoft® SQL Server™ version 7.0 for backward compatibility.


For more information about Open Data Services functions or macros supported for backward compatibility, see Open Data Services (Level 3).

Syntax

BOOL SRV_IODEAD ( SRV_PROC * srvproc );

Arguments
srvproc
Is a pointer to the SRV_PROC structure that is the handle for a particular client connection (in this case, the handle that has the input and output connection to be tested).
Returns

TRUE if the SRV_PROC structure of the client input and output connection is still open; otherwise, FALSE.

Remarks

This function is useful in error handling situations when you need to determine whether you can send an error message to a client.

In a SRV_DISCONNECT handler, SRV_IODEAD always returns TRUE.

See Also
srv_sendmsg  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.