Conris.Utility/MediaInfoDLL.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace Conris.Utility
{
    public class MediaInfoDLL
    {
        public enum StreamKind
        {
            General,
            Video,
            Audio,
            Text,
            Chapters,
            Image
        }

        public enum InfoKind
        {
            Name,
            Text,
            Measure,
            Options,
            NameText,
            MeasureText,
            Info,
            HowTo
        }

        public enum InfoOptions
        {
            ShowInInform,
            Support,
            ShowInSupported,
            TypeOfValue
        }
        public enum StreamInfo
        {
            Audio,
            Video,
            General
        }

        public class MediaInfo
        {
            //Import of DLL functions. DO NOT USE until you know what you do (MediaInfo DLL do NOT use CoTaskMemAlloc to allocate memory)  
            [DllImport("MediaInfo.dll")]
            public static extern IntPtr MediaInfo_New();
            [DllImport("MediaInfo.dll")]
            public static extern void MediaInfo_Delete(IntPtr Handle);
            [DllImport("MediaInfo.dll")]
            public static extern int MediaInfo_Open(IntPtr Handle, [MarshalAs(UnmanagedType.LPWStr)] string FileName);
            [DllImport("MediaInfo.dll")]
            public static extern void MediaInfo_Close(IntPtr Handle);
            [DllImport("MediaInfo.dll")]
            public static extern IntPtr MediaInfo_Inform(IntPtr Handle, [MarshalAs(UnmanagedType.U4)] uint Reserved);
            [DllImport("MediaInfo.dll")]
后面还有 108 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。