Ejemplo n.º 1
0
        private static unsafe int DoParameterXml(IntPtr aPtr, uint aVersion, char **aaParameterXml)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkConfiguration1 self = (DvServiceLinnCoUkConfiguration1)gch.Target;
            string aParameterXml;

            self.ParameterXml(aVersion, out aParameterXml);
            *aaParameterXml = (char *)Marshal.StringToHGlobalAnsi(aParameterXml).ToPointer();
            return(0);
        }
Ejemplo n.º 2
0
        private static unsafe int DoSetParameter(IntPtr aPtr, uint aVersion, char *aaTarget, char *aaName, char *aaValue)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkConfiguration1 self = (DvServiceLinnCoUkConfiguration1)gch.Target;
            string aTarget = Marshal.PtrToStringAnsi((IntPtr)aaTarget);
            string aName   = Marshal.PtrToStringAnsi((IntPtr)aaName);
            string aValue  = Marshal.PtrToStringAnsi((IntPtr)aaValue);

            self.SetParameter(aVersion, aTarget, aName, aValue);
            return(0);
        }