IShellItem.cs 611 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Runtime.InteropServices;
  3. using System.Runtime.InteropServices.ComTypes;
  4. namespace Standard;
  5. [Guid("43826d1e-e718-42ee-bc55-a1e261c37bfe")]
  6. [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
  7. [ComImport]
  8. internal interface IShellItem
  9. {
  10. [return: MarshalAs(UnmanagedType.Interface)]
  11. object BindToHandler(IBindCtx pbc, [In] ref Guid bhid, [In] ref Guid riid);
  12. IShellItem GetParent();
  13. [return: MarshalAs(UnmanagedType.LPWStr)]
  14. string GetDisplayName(SIGDN sigdnName);
  15. SFGAO GetAttributes(SFGAO sfgaoMask);
  16. int Compare(IShellItem psi, SICHINT hint);
  17. }