this is the C++ code
bool wait=false;
int temp1=0;
int temp=0;
VARIANT temper= { 0 };
temper.boolVal = wait? VARIANT_TRUE : VARIANT_FALSE;
server.ExecuteCommand(temp1, temp, nullptr, &temper);
How to do the same thing with VariantWrapper in C#
bool wait=false;
int temp1=0;
int temp=0;
object varWrapper = new VariantWrapper(??????);
var result = server.ExecuteCommand(temp1, temp, null, ref
varWrapper);