GetServerState Method

This method returns the current state of the LDAP server instance specified.

IDL Definition

HRESULT GetServerState([in] VARIANT Instance, [out] VARIANT *lState);

Parameters

Instance

The instance number of the server of interest.

lState

 on return, a VT_I4 value indicating the state of the server.

Possible values for lState are:

1 - "Server is Starting"

2 - "Server has been Started"

3 - "Server is Stopping"

4 - "Server has been Stopped"

5 - "Server is Pausing"

6 - "Server has been Paused"

7 - "Server is trying to Continue after a Pause"

Return Values

a standard HRESULT value


© 1997-1998 Microsoft Corporation. All rights reserved.