ReturnConnection

Returns a connection number the NLM previously allocated

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

Syntax

  #include <nwcntask.h>  
   
  int ReturnConnection  (  
     LONG   connectionNumber); 
  

Parameters

connectionNumber
(IN) Specifies the connection number obtained with SetCurrentConnection.

Return Values

The following table lists return values and descriptions.

Value

Hex

Name

Description

0

(0x00)

ESUCCESS

Connection number returned.

Remarks

ReturnConnection returns a connection number previously allocated by SetCurrentConnection, LoginObject, NWAttachToFileServer, or LoginToFileServer.

See Also

NWAttachToFileServer (Server Management), LoginObject, NWLoginToFileServer (Server Management), SetCurrentConnection