Пример #1
0
        private static unsafe int DoGetRoom(IntPtr aPtr, uint aVersion, uint aIndex, char **aRoomName)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceZappOrgTestLights1 self = (DvServiceZappOrgTestLights1)gch.Target;
            string roomName;

            self.GetRoom(aVersion, aIndex, out roomName);
            *aRoomName = (char *)Marshal.StringToHGlobalAnsi(roomName).ToPointer();
            return(0);
        }