LogoutObject

Logs out the logged-in object on the specified connection on the current server

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 LogoutObject  (  
     LONG   connection); 
  

Parameters

connection
(IN) Specifies the connection number from which the object is to be logged out.

Return Values

The following table lists return values and descriptions.

Value

Hex

Name

Description

0

(0x00)

ESUCCESS

Logout of object was successful.

-1

 

EFAILURE

Invalid connection number or NLM has not logged in to the specified connection.

150

(0x96)

ERR_SERVER_OUT_OF_MEMORY

 

Remarks

LogoutObject only logs out connections on the current server (currently selected file server ID).

LogoutObject destroys your connection to a remote server. Therefore, if your current connection is to that server, your current connection is changed. On a local server, this function does not destroy your connection.

See Also

LoginObject