using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; namespace Vanara.PInvoke { public static partial class Shell32 { /// /// Exposes a method that initializes a handler, such as a property handler, thumbnail handler, or preview handler, with a bind context. /// // https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nn-shobjidl_core-iinitializewithbindctx [PInvokeData("shobjidl_core.h", MSDNShortId = "NN:shobjidl_core.IInitializeWithBindCtx")] [ComImport, Guid("71c0d2bc-726d-45cc-a6c0-2e31c1db2159"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IInitializeWithBindCtx { /// Initializes a handler with a bind context. /// /// Type: IBindCtx* /// Pointer to the IBindCtx object. /// /// /// Type: HRESULT /// If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// // https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-iinitializewithbindctx-initialize HRESULT // Initialize( IBindCtx *pbc ); [PreserveSig] HRESULT Initialize([In] IBindCtx pbc); } } }