private static unsafe int DoSetTarget(IntPtr aPtr, uint aVersion, int anewTargetValue) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceUpnpOrgSwitchPower1 self = (DvServiceUpnpOrgSwitchPower1)gch.Target; bool newTargetValue = (anewTargetValue != 0); self.SetTarget(aVersion, newTargetValue); return(0); }
private static unsafe int DoGetStatus(IntPtr aPtr, uint aVersion, int *aResultStatus) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceUpnpOrgSwitchPower1 self = (DvServiceUpnpOrgSwitchPower1)gch.Target; bool resultStatus; self.GetStatus(aVersion, out resultStatus); *aResultStatus = (resultStatus ? 1 : 0); return(0); }
private static unsafe int DoGetTarget(IntPtr aPtr, uint aVersion, int *aRetTargetValue) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceUpnpOrgSwitchPower1 self = (DvServiceUpnpOrgSwitchPower1)gch.Target; bool retTargetValue; self.GetTarget(aVersion, out retTargetValue); *aRetTargetValue = (retTargetValue ? 1 : 0); return(0); }