Пример #1
0
        private static unsafe int DoLedsOn(IntPtr aPtr, uint aVersion)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkPtest1 self = (DvServiceLinnCoUkPtest1)gch.Target;

            self.LedsOn(aVersion);
            return(0);
        }
Пример #2
0
        private static unsafe int DoTestComPort(IntPtr aPtr, uint aVersion, uint aaPort, int *aaResult)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkPtest1 self = (DvServiceLinnCoUkPtest1)gch.Target;
            bool aResult;

            self.TestComPort(aVersion, aaPort, out aResult);
            *aaResult = (aResult ? 1 : 0);
            return(0);
        }