This example shows what a call to VSAUnRegisterSource 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.
//Unregister the component
static void RpcSampleUnRegisterSource()
{
RpcTryExcept
{
VSAUnregisterSource(str_SAMPLE_SOURCE_GUID);
}
RpcExcept(1)
{
LastErrorCode = RpcExceptionCode();
}
RpcEndExcept;
}