private static unsafe int DoSetColor(IntPtr aPtr, uint aVersion, uint aIndex, uint aColor) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceZappOrgTestLights1 self = (DvServiceZappOrgTestLights1)gch.Target; self.SetColor(aVersion, aIndex, aColor); return(0); }