This example shows what a call to VSAIsActive looks like. Refer to VsaRpcl Example to see the constant declarations and to see this code in a form you can run with minor modifications.
// Verify that the component is ready to generate events
static bool RpcSampleIsActive(long VSAId)
{
BOOL active = FALSE;
RpcTryExcept
{
BOOL active = VSAIsActive(VSAId);
}
RpcExcept(1)
{
LastErrorCode = RpcExceptionCode();
}
RpcEndExcept;
return( (active == TRUE) ? true:false );
}