Purpose
Initialize the Event Server API. A client application must call this function before calling any other SPD function.
Syntax
#using Spo.SPDlib SPD_errorType SPDInitClient ( string applicationName, string applicationQualifier );
Description
This function initializes a client. The client must call this function before calling any other SPD function.
applicationName
is the name that identifies the client application to the Event Server. This is the name that will be associated with events generated by the client.
applicationQualifier
further qualifies the client application in the case where more than one instance of the client may be present. This is an optional parameter. Specify NULL if the client is not further qualified.
Return Value
The return value indicates whether an error occurred, as follows.
Return | Indication |
SPD_normal | No error. |
SPD_alreadyInitialized | SPDInitClient has already been called. |
SPD_badApplication | Bad value for applicationName parameter. |
SPD_versionMismatch | The client application is linked with a version of the Event Server API library that is incompatible with the Event Server of the currently installed level of Operations Sentinel. |
SPD_commFailure | Communications problem. |
SPD_errException | A .NET runtime exception occurs |
See Also
See also the following client functions:
SPDTerminate (see Section [xref text to replace])