iwmpmediacollection.cs
来自「自己做的一个浏览器~~大家请看看~如果合意给个彩头」· CS 代码 · 共 46 行
CS
46 行
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
namespace APLib.Native.WMP
{
[ComImport, Guid("8363BC22-B4B4-4B19-989D-1CD765749DD1"), TypeLibType((short)0x1040)]
public interface IWMPMediaCollection
{
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1c4)]
IWMPMedia add([In, MarshalAs(UnmanagedType.BStr)] string bstrURL);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1c5)]
IWMPPlaylist getAll();
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1c6)]
IWMPPlaylist getByName([In, MarshalAs(UnmanagedType.BStr)] string bstrName);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1c7)]
IWMPPlaylist getByGenre([In, MarshalAs(UnmanagedType.BStr)] string bstrGenre);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1c8)]
IWMPPlaylist getByAuthor([In, MarshalAs(UnmanagedType.BStr)] string bstrAuthor);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1c9)]
IWMPPlaylist getByAlbum([In, MarshalAs(UnmanagedType.BStr)] string bstrAlbum);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1ca)]
IWMPPlaylist getByAttribute([In, MarshalAs(UnmanagedType.BStr)] string bstrAttribute, [In, MarshalAs(UnmanagedType.BStr)] string bstrValue);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1cb)]
void remove([In, MarshalAs(UnmanagedType.Interface)] IWMPMedia pItem, [In] bool varfDeleteFile);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1cd)]
IWMPStringCollection getAttributeStringCollection([In, MarshalAs(UnmanagedType.BStr)] string bstrAttribute, [In, MarshalAs(UnmanagedType.BStr)] string bstrMediaType);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(470)]
int getMediaAtom([In, MarshalAs(UnmanagedType.BStr)] string bstrItemName);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1d7)]
void setDeleted([In, MarshalAs(UnmanagedType.Interface)] IWMPMedia pItem, [In] bool varfIsDeleted);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1d8)]
bool isDeleted([In, MarshalAs(UnmanagedType.Interface)] IWMPMedia pItem);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?