IOleCommandTarget.cs
资源名称:Exa3-Web.rar [点击查看]
上传用户:unitenet
上传日期:2022-02-13
资源大小:200k
文件大小:1k
源码类别:
浏览器
开发平台:
Visual C++
- using System;
- namespace WebBrowser
- {
- using System;
- using System.Runtime.InteropServices;
- [StructLayout(LayoutKind.Sequential,CharSet=CharSet.Unicode)]
- public struct OLECMDTEXT
- {
- public uint cmdtextf;
- public uint cwActual;
- public uint cwBuf;
- [MarshalAs(UnmanagedType.ByValTStr,SizeConst=100)]public char rgwz;
- }
- [StructLayout(LayoutKind.Sequential)]
- public struct OLECMD
- {
- public uint cmdID;
- public uint cmdf;
- }
- public class HE_WebBrowserTag
- {
- public int _TabIndex = 0;
- public bool _CanBack = false;
- public bool _CanForward = false;
- }
- [ComImport,
- Guid("b722bccb-4e68-101b-a2bc-00aa00404770"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IOleCommandTarget
- {
- void QueryStatus(ref Guid pguidCmdGroup, UInt32 cCmds,
- [MarshalAs(UnmanagedType.LPArray, SizeParamIndex=1)]
- OLECMD[] prgCmds, ref OLECMDTEXT CmdText);
- void Exec(ref Guid pguidCmdGroup, uint nCmdId, uint nCmdExecOpt,
- ref object pvaIn, ref object pvaOut);
- }
- }