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

            self.GetName(aVersion, aIndex, out friendlyName);
            *aFriendlyName = (char *)Marshal.StringToHGlobalAnsi(friendlyName).ToPointer();
            return(0);
        }