cwbUN_GetLdapPublishServer

Purpose

Returns the name of the server to which this information is published.

Syntax

int cwbUN_GetLdapPublishServerW
    ( cwbUN_ldapPubHandle  handle,
      int                  index,
      LPWSTR               server,
      int                  *length
    );
 
int cwbUN_GetLdapPublishServerA
    ( cwbUN_ldapPubHandle  handle,
      int                  index,
      LPSTR                server,
      int                  *length
    );

Parameters

cwbUN_ldapPubHandle handle - input
A handle previously obtained by a call to cwbUN_OpenLdapPublishing().
int index - input
Zero-based index of the publish record. This value must be less than the count returned by cwbUN_GetLdapPublishCount().
LPSTR server - output
Pointer to the buffer that will contain the name of the server.
int * length - input/output
Pointer to the length of the server buffer. If the buffer is too small to hold the string, including space for the terminating NULL, the size of the buffer needed will be filled into this parameter.

Return Codes

The following list shows common return values:

CWB_OK
Successful completion.
CWB_INVALID_API_HANDLE
Invalid handle.
CWB_INVALID_API_PARAMETER
Invalid index.
CWB_INVALID_POINTER
A NULL pointer was specified.
CWB_BUFFER_OVERFLOW
The suffix buffer is not large enough to hold the entire result.

Usage

None