Syntax for C++ VCSAgStartup

void VCSAgStartup();

Note that the name of the C++ function must be VCSAgStartup().

For example:

// This example shows the VCSAgStartup() entry point

// implementation,assuming that the monitor, online, offline

// and clean entry points are implemented in C++ and the

// respective function names are res_monitor, res_online,

// and res_offline.

#include "VCSAgApi.h"

void VCSAgStartup()

{

VCSAG_LOG_INIT("VCSAgStartup");

VCSAgSetLogCategory(10051);

VCSAgInitEntryPointStruct(V50);

VCSAgValidateAndSetEntryPoint(VCSAgEPMonitor, res_monitor);

VCSAgValidateAndSetEntryPoint(VCSAgEPOnline, res_online);

VCSAgValidateAndSetEntryPoint(VCSAgEPOffline, res_offline);

VCSAgValidateAndSetEntryPoint(VCSAgEPClean, res_clean);

}

VCSAgResState res_monitor(const char *res_name, void

**attr_val, int *conf_level) {

...

}

unsigned int res_online(const char *res_name,

void **attr_val) {

...

}

unsigned int res_offline(const char *res_name,

void **attr_val) {

...

}