Files
HandyControl/Net35/HandyControl_Net35/Shell/Standard/IShellItem2.cs
T
2019-01-21 00:43:10 +08:00

39 lines
1.8 KiB
C#

namespace Standard
{
using System;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
[ComImport, InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("7e9fb0d3-919f-4307-ab2e-9b1860310c93")]
internal interface IShellItem2 : Standard.IShellItem
{
[return: MarshalAs(UnmanagedType.Interface)]
object BindToHandler([In] IBindCtx pbc, [In] ref Guid bhid, [In] ref Guid riid);
Standard.IShellItem GetParent();
[return: MarshalAs(UnmanagedType.LPWStr)]
string GetDisplayName(Standard.SIGDN sigdnName);
Standard.SFGAO GetAttributes(Standard.SFGAO sfgaoMask);
int Compare(Standard.IShellItem psi, Standard.SICHINT hint);
[return: MarshalAs(UnmanagedType.Interface)]
object GetPropertyStore(Standard.GPS flags, [In] ref Guid riid);
[return: MarshalAs(UnmanagedType.Interface)]
object GetPropertyStoreWithCreateObject(Standard.GPS flags, [MarshalAs(UnmanagedType.IUnknown)] object punkCreateObject, [In] ref Guid riid);
[return: MarshalAs(UnmanagedType.Interface)]
object GetPropertyStoreForKeys(IntPtr rgKeys, uint cKeys, Standard.GPS flags, [In] ref Guid riid);
[return: MarshalAs(UnmanagedType.Interface)]
object GetPropertyDescriptionList(IntPtr keyType, [In] ref Guid riid);
void Update(IBindCtx pbc);
PROPVARIANT GetProperty(IntPtr key);
Guid GetCLSID(IntPtr key);
System.Runtime.InteropServices.ComTypes.FILETIME GetFileTime(IntPtr key);
int GetInt32(IntPtr key);
[return: MarshalAs(UnmanagedType.LPWStr)]
string GetString(IntPtr key);
uint GetUInt32(IntPtr key);
ulong GetUInt64(IntPtr key);
[return: MarshalAs(UnmanagedType.Bool)]
void GetBool(IntPtr key);
}
}