WinHtmlEditor/Common/IOleCommandTarget.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

#region Using directives

using System;
using System.Runtime.InteropServices;

#endregion

namespace Pavonis.COM
{
    #region Enumeratons Constants and Struct Defintions
    
    // Information for the values of these constants is derived from the follwoing header files
    // MsHtmdid.h
    // MsHtmcid.h

    /// <summary>
    /// Class defined for constant defintions realting to COM interop
    /// </summary>
    internal class CommandGroup
    {
        public static Guid CGID_MSHTML = new Guid("de4ba900-59ca-11cf-9592-444553540000");

    } //CommandGroup


    /// <summary>
    /// HRESULT codes for COM Interop
    /// Basic values and those used are defined
    /// </summary>
    internal struct HRESULT
    {
        public const int S_OK = 0;
        public const int S_FALSE = 1;

        public const int E_PENDING = unchecked((int) 0x8000000A);

        public const int E_NOTIMPL = unchecked((int) 0x80004001);
        public const int E_NOINTERFACE = unchecked((int) 0x80004002);
        public const int E_POINTER = unchecked((int) 0x80004003);
        public const int E_ABORT = unchecked((int) 0x80004004);
        public const int E_FAIL = unchecked((int) 0x80004005);
        
        public const int E_ACCESSDENIED = unchecked((int) 0x80070006);
        public const int E_HANDLE = unchecked((int) 0x80070006);
        public const int E_INVALIDARG = unchecked((int) 0x80070057);

        public const int E_UNEXPECTED  = unchecked((int)0x8000FFFF);

    } //HRESULT


    /// <summary>
    /// Command options for the web browser ExecWB and Exec commands
    /// </summary>
    internal enum CommandOption
    {
        OLECMDEXECOPT_DODEFAULT         = 0,
        OLECMDEXECOPT_PROMPTUSER        = 1,
        OLECMDEXECOPT_DONTPROMPTUSER    = 2,
        OLECMDEXECOPT_SHOWHELP          = 3
后面还有 67 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。