EsbShutdownServer

Stops the Agent.

Syntax

EsbShutdownServer (hInst, Server, User, Password)
ByVal hInst    As Long
ByVal Server   As String
ByVal User     As String
ByVal Password As String
ParameterDescription

hInst

VB API instance handle.

Server

Network server name string. Specifies the name of the server to shut down.

User

User name string. Specifies the user who is requesting the shutdown.

Password

Password string. Specifies the password of the user requesting the shutdown.

Notes

Return Value

None.

Possible error conditions resulting from this function include:

Access

This function requires administrator privilege.

Example

Declare Function EsbShutdownServer Lib "ESBAPIN" (ByVal hInst As Long, ByVal Server As String, ByVal User As String, ByVal Password As String) As Long 

Sub ESB_ShutdownServer()
   Dim sts As Long
   Dim Server As String
   Dim UserName As String
   Dim Password As String   Server = "Rainbow"
   UserName = "Admin"
   Password = "password"   '******************
   ' Shut down Server
   '******************
   sts = EsbShutdownServer(hInst, Server, UserName, Password) 
End Sub

See Also