本文整理汇总了C#中InfoKind类的典型用法代码示例。如果您正苦于以下问题:C# InfoKind类的具体用法?C# InfoKind怎么用?C# InfoKind使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InfoKind类属于命名空间,在下文中一共展示了InfoKind类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Get
public string Get(StreamKind streamKind, int streamNumber, int parameter, InfoKind infoKind)
{
if (MustUseAnsi)
{
return MakeStringResult(MediaInfoA_GetI(_handle, (IntPtr)streamKind, (IntPtr)streamNumber, (IntPtr)parameter, (IntPtr)infoKind));
}
else
{
return MakeStringResult(MediaInfo_GetI(_handle, (IntPtr)streamKind, (IntPtr)streamNumber, (IntPtr)parameter, (IntPtr)infoKind));
}
}
示例2: Get
public String Get(int filePos, StreamKind streamKind, int streamNumber, String parameter, InfoKind kindOfInfo)
{
return Get(filePos, streamKind, streamNumber, parameter, kindOfInfo, InfoKind.Name);
}
示例3: Get
public String Get(StreamKind StreamKind, uint StreamNumber, uint Parameter, InfoKind KindOfInfo)
{
return Marshal.PtrToStringUni(MediaInfo_GetI(Handle, StreamKind, StreamNumber, Parameter, KindOfInfo));
}
示例4: Get
public String Get(int FilePos, StreamKind StreamKind, int StreamNumber, int Parameter, InfoKind KindOfInfo)
{
return Marshal.PtrToStringUni(MediaInfoList_GetI(Handle, (IntPtr)FilePos, (IntPtr)StreamKind, (IntPtr)StreamNumber, (IntPtr)Parameter, (IntPtr)KindOfInfo));
}
示例5: Get
public String Get(StreamKind StreamKind, int StreamNumber, int Parameter, InfoKind KindOfInfo)
{
if (MustUseAnsi)
return Marshal.PtrToStringAnsi((Is32Bit ? MediaInfoA_GetI32(Handle, (IntPtr)StreamKind, (IntPtr)StreamNumber, (IntPtr)Parameter, (IntPtr)KindOfInfo) : MediaInfoA_GetI64(Handle, (IntPtr)StreamKind, (IntPtr)StreamNumber, (IntPtr)Parameter, (IntPtr)KindOfInfo)));
else
return Marshal.PtrToStringUni((Is32Bit ? MediaInfo_GetI32(Handle, (IntPtr)StreamKind, (IntPtr)StreamNumber, (IntPtr)Parameter, (IntPtr)KindOfInfo) : MediaInfo_GetI64(Handle, (IntPtr)StreamKind, (IntPtr)StreamNumber, (IntPtr)Parameter, (IntPtr)KindOfInfo)));
}
示例6: Get
public String Get(StreamKind StreamKind, int streamNumber, String Parameter, InfoKind kindOfInfo = InfoKind.Text, InfoKind kindOfSearch = InfoKind.Name)
{
if (MustUseAnsi)
{
IntPtr Parameter_Ptr = Marshal.StringToHGlobalAnsi(Parameter);
String ToReturn = Marshal.PtrToStringAnsi(UnsafeNativeMethods.MediaInfoA_Get(Handle, (IntPtr)StreamKind, (IntPtr)streamNumber, Parameter_Ptr, (IntPtr)kindOfInfo, (IntPtr)kindOfSearch));
Marshal.FreeHGlobal(Parameter_Ptr);
return ToReturn;
}
else
return Marshal.PtrToStringUni(UnsafeNativeMethods.MediaInfo_Get(Handle, (IntPtr)StreamKind, (IntPtr)streamNumber, Parameter, (IntPtr)kindOfInfo, (IntPtr)kindOfSearch));
}
示例7: Get
private String Get(StreamKind StreamKind, int StreamNumber, int Parameter, InfoKind KindOfInfo)
{
return Marshal.PtrToStringUni(MediaInfo_GetI(this.Handle, (IntPtr)StreamKind, (IntPtr)StreamNumber, (IntPtr)Parameter, (IntPtr)KindOfInfo));
}
示例8: Get
private String Get(IntPtr Handle, StreamKind StreamKind, int StreamNumber, string Parameter, InfoKind KindOfInfo, InfoKind KindOfSearch)
{
return "MediaInfo";
//return Marshal.PtrToStringUni(MediaInfo_Get(Handle, (IntPtr)StreamKind, (IntPtr)StreamNumber, Parameter, (IntPtr)KindOfInfo, (IntPtr)KindOfSearch));
}
示例9: Get
String Get(StreamKind StreamKind, uint StreamNumber, String Parameter, InfoKind KindOfInfo, InfoKind KindOfSearch)
{
return Marshal.PtrToStringUni(MediaInfo_Get(Handle, StreamKind, StreamNumber, Parameter, KindOfInfo, KindOfSearch));
}
示例10: Get
public String Get(StreamKind StreamKind, int StreamNumber, String Parameter, InfoKind KindOfInfo,
InfoKind KindOfSearch)
{
return
Marshal.PtrToStringUni(MediaInfo_Get(Handle, (IntPtr)StreamKind, (IntPtr)StreamNumber, Parameter,
(IntPtr)KindOfInfo, (IntPtr)KindOfSearch));
}