GetCurrentConnection

Returns the current connection on the current server

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

Syntax

  #include <nwcntask.h>  
   
  LONG GetCurrentConnection  (void); 
  

Return Values

This function returns the current connection number.

Remarks

The current connection number is returned for the calling thread group. For information about connection numbers, see Section 6.2, Remote and Local Connections.

See Also

SetCurrentConnection