VSAIsActive Example

   Applies To

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)
{
   RpcTryExcept
   {
      HRESULT hr = VSAIsActive(VSAId);
   }
   RpcExcept(1)
   {
      LastErrorCode = RpcExceptionCode();
   }
   RpcEndExcept;
      
   return( (hr == S_OK ? true:false );
}