CheckIfConnectionActive
Determines whether the specified connection number is processing a file-service request
#include <nwcntask.h>
BYTE CheckIfConnectionActive (
LONG connectionNumber);
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.
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.