CheckIfConnectionActive

Determines whether the specified connection number is processing a file-service request

Local Servers:nonblocking
Remote Servers:N/A
Classification:3.x, 4.x, 5.x, 6.x
Service:Connection Number and Task Management

Syntax

  #include <nwcntask.h>  
   
  BYTE CheckIfConnectionActive  (  
     LONG   connectionNumber); 
  

Parameters

connectionNumber
(IN) Specifies the connection number being checked.

Return Values

If the connection is active and processing a file service request, the function returns a value of 1. Otherwise, it returns a value of 0.

Remarks

The CheckIfConnectionActive function determines whether the connection number is being used to process a file-service request. If the connection is being used for a service other than a file service request, this function returns 0.