namespace Vanara.PInvoke; public static partial class Shell32 { /// /// Exposes a method used to initialize a handler, such as a property handler, thumbnail handler, or preview handler, with an IShellItem. /// // https://msdn.microsoft.com/en-us/library/windows/desktop/bb761814(v=vs.85).aspx [PInvokeData("Shobjidl.h", MSDNShortId = "bb761814")] [ComImport, InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("7f73be3f-fb79-493c-a6c7-7ee14e245841")] public interface IInitializeWithItem { /// Initializes a handler with an IShellItem. /// /// Type: IShellItem* /// A pointer to an IShellItem. /// /// /// Type: DWORD /// One of the following STGM values that indicate the access mode for psi. /// /// /// Type: HRESULT /// If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// [PreserveSig] HRESULT Initialize(IShellItem psi, STGM grfMode); } }