GetCurrentConnection
Returns the current connection on the current server
#include <nwcntask.h> LONG GetCurrentConnection (void);
This function returns the current connection number.
The current connection number is returned for the calling thread group. For information about connection numbers, see Section 6.2, Remote and Local Connections.