public static int ATHostConnectionSendFileError(IntPtr hATHost, string strPid, string strMediaType, int intType)
        {
            IntPtr hPid       = CoreFoundation.CFStringMakeConstantString(strPid);
            IntPtr hMediaType = CoreFoundation.CFStringMakeConstantString(strMediaType);
            IntPtr ptr3       = (IntPtr)ATHostConnectionSendFileError_IntPtr(hATHost, hPid, hMediaType, intType);

            CoreFoundation.CFRelease(hPid);
            CoreFoundation.CFRelease(hMediaType);
            return(ptr3.ToInt32());
        }
        public static int ATHostConnectionSendAssetCompleted(IntPtr hATHost, string strPid, string strMediaType, string strFilePath)
        {
            IntPtr hPid       = CoreFoundation.CFStringMakeConstantString(strPid);
            IntPtr hMediaType = CoreFoundation.CFStringMakeConstantString(strMediaType);
            IntPtr hFilePath  = CoreFoundation.CFStringMakeConstantString(strFilePath);
            IntPtr ptr4       = ATHostConnectionSendAssetCompleted_IntPtr(hATHost, hPid, hMediaType, hFilePath);

            CoreFoundation.CFRelease(hPid);
            CoreFoundation.CFRelease(hMediaType);
            CoreFoundation.CFRelease(hFilePath);
            return(ptr4.ToInt32());
        }
        public static int ATHostConnectionSendFileProgress(IntPtr hATHost, string strPid, string strMediaType, double fileProgress, double totalProgress)
        {
            IntPtr hPid       = CoreFoundation.CFStringMakeConstantString(strPid);
            IntPtr hMediaType = CoreFoundation.CFStringMakeConstantString(strMediaType);

            byte[] bytes   = BitConverter.GetBytes(fileProgress);
            byte[] buffer2 = BitConverter.GetBytes(totalProgress);
            int    num     = BitConverter.ToInt32(bytes, 0);
            int    num2    = BitConverter.ToInt32(bytes, 4);
            int    num3    = BitConverter.ToInt32(buffer2, 0);
            int    num4    = BitConverter.ToInt32(buffer2, 4);
            IntPtr ptr3    = (IntPtr)ATHostConnectionSendFileProgress_IntPtr(hATHost, hPid, hMediaType, num, num2, num3, num4);

            CoreFoundation.CFRelease(hPid);
            CoreFoundation.CFRelease(hMediaType);
            return(ptr3.ToInt32());
        }