DisConnectFromPdb

Called when user is to be disconnected from the cabinet.

Public Function DisConnectFromPdb() As Long

Description

This function is called form both desktop and admin. It is called for both local and shared cabinet.

It is called when user tries to disconnect himself from a cabinet. It internally calls a function

'DeleteSessionInRegistry' to remove session of the user from the registry entry.

 

Return value

Name

Description

 1

In case of success

-1

Invalid operation

 

Example

Dim gPDb         As PanDb.pdbCls

Dim lRetVal       As Long

  
Set gPDb = New PanDb.pdbCls
lRetVal = gPDb.DisConnectFromPdb
If lRetVal <> NG_SUCCESS Then
    MsgBox gPDb.ErrDescription, vbInformation
    Exit Function
End If