From 7ad16c559e6bf006688801f83f60bf2c611413fe Mon Sep 17 00:00:00 2001 From: David Hall Date: Sat, 20 Jan 2018 17:59:50 -0700 Subject: [PATCH] Added IOleWindow --- PInvoke/Ole/Ole32/OleIdl.cs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 PInvoke/Ole/Ole32/OleIdl.cs diff --git a/PInvoke/Ole/Ole32/OleIdl.cs b/PInvoke/Ole/Ole32/OleIdl.cs new file mode 100644 index 00000000..5f973af8 --- /dev/null +++ b/PInvoke/Ole/Ole32/OleIdl.cs @@ -0,0 +1,26 @@ +using System; +using System.Runtime.InteropServices; +using System.Runtime.InteropServices.ComTypes; + +namespace Vanara.PInvoke +{ + public static partial class Ole32 + { + /// + /// The IOleWindow interface provides methods that allow an application to obtain the handle to the various windows that participate in in-place + /// activation, and also to enter and exit context-sensitive help mode. + /// + [ComImport, Guid("00000114-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] + public interface IOleWindow + { + /// Retrieves a handle to one of the windows participating in in-place activation (frame, document, parent, or in-place object window). + /// A pointer to a variable that receives the window handle. + IntPtr GetWindow(); + /// + /// Determines whether context-sensitive help mode should be entered during an in-place activation session. + /// + /// true if help mode should be entered; false if it should be exited. + void ContextSensitiveHelp([MarshalAs(UnmanagedType.Bool)] bool fEnterMode); + } + } +} \ No newline at end of file