Monday, 26 March 2018

VBA - C# - Leverage LINQ and Lambdas in your VBA code

On this blog I have given a VBA implementation of Lambda functions built on the ScriptControl using JScript but I have read reports of the ScriptControl not working with 64-bit Excel VBA which is problematic. To avoid the operating system ground shifting beneath one's feet one should program against a platform, so Java or .NET. I would choose .NET.

I am pleased that a StackOverflow question arose which gave the excuse to go build a second implementation of lambdas in VBA this time using .NET as the engine. The questioner is already using a .NET collection and uses this for sorting but the filtering method Where requires delegates which have generics in the signature thus rendering them un-callable from VBA. Pondering on this obstacle, I wondered if it was possible to pass a lambda string and have it compiled in some C# code in some way. Indeed, it is possible with ExpressionTrees.

ExpressionTrees

Here is a nice diagram taken from a Code Project article which gives a deep dive into Expression Trees

Diagram from CodeProject article

So knowing it is possible, I pieced together some fragments of code from various sources. The full code is given further below but for now the magic line of code is

var e = myAlias.DynamicExpression.ParseLambda(pList.ToArray(), null, expression);

where the first parameter are the details of the argument(s) used and the third is the expression to the right of the arrow operator.

The Source Code

All the source code is available in a zip here. I also give some excerpts below

Source Talkthrough

I have talked through the source code in a Youtube video. (I recommend the subtitles as my diction is not the best)

VBA - Test Module - tstListOfCartesianPoints

This is the test routine. I have highlighted the lambda expressions in red.

Public Sub TestObjects2()

    Dim oList As LinqInVBA.ListOfPoints
    Set oList = New LinqInVBA.ListOfPoints
    
    Dim o(1 To 3) As CartesianPoint
    Set o(1) = New CartesianPoint
    o(1).x = 3: o(1).y = 4
    
    Set o(2) = New CartesianPoint
    o(2).x = 0.25: o(2).y = 0.5
    Debug.Assert o(2).Magnitude <= 1
    
    Set o(3) = New CartesianPoint
    o(3).x = -0.25: o(3).y = 0.5
    Debug.Assert o(3).Magnitude <= 1
    
    
    oList.Add o(1)
    oList.Add o(2)
    oList.Add o(3)
    
    
    Debug.Print oList.ToString2 'prints (3,4),(0.25,0.5),(-0.25,0.5)
    oList.Sort
    Debug.Print oList.ToString2 'prints (-0.25,0.5),(0.25,0.5),(3,4)
    
    Dim oFiltered As LinqInVBA.ListOfPoints
    Set oFiltered = oList.Where("(o)=>o.Magnitude() <= 1")
    
    Debug.Print oFiltered.ToString2 'prints (-0.25,0.5),(0.25,0.5)

    Dim oFiltered2 As LinqInVBA.ListOfPoints
    Set oFiltered2 = oFiltered.Where("(o)=>o.AngleInDegrees()>=0 && o.AngleInDegrees()<=90")
    
    Debug.Print oFiltered2.ToString2 'prints (0.25,0.5)


'    Dim i
'    For i = 0 To oFiltered.Count - 1
'        Debug.Print oFiltered.Item(i).ToString
'    Next i

End Sub

VBA - CartesianPoint Class Module

Option Explicit

'written by S Meaden

Implements mscorlib.IComparable '* Tools->References->mscorlib
Implements LinqInVBA.ICartesianPoint


Dim PI

Public x As Double
Public y As Double

Public Function Magnitude() As Double
    Magnitude = Sqr(x * x + y * y)
End Function

Public Function Angle() As Double
    Angle = WorksheetFunction.Atan2(x, y)
End Function

Public Function AngleInDegrees() As Double
    AngleInDegrees = Me.Angle * (360 / (2 * PI))
End Function

Private Sub Class_Initialize()
    PI = 4 * Atn(1)
End Sub

Private Function ICartesianPoint_AngleInDegrees() As Double
    ICartesianPoint_AngleInDegrees = Me.AngleInDegrees
End Function

Private Function ICartesianPoint_Magnitude() As Double
    ICartesianPoint_Magnitude = Me.Magnitude
End Function

Private Property Get ICartesianPoint_ToString() As String
    ICartesianPoint_ToString = ToString
End Property

Private Function IComparable_CompareTo(ByVal obj As Variant) As Long
    Dim oPoint2 As CartesianPoint
    Set oPoint2 = obj
    IComparable_CompareTo = Sgn(Me.Magnitude - oPoint2.Magnitude)
    
End Function

Public Function ToString() As String
    ToString = "(" & x & "," & y & ")"
End Function

Public Function Equals(ByVal oPoint2 As CartesianPoint) As Boolean
    Equals = oPoint2.Magnitude = Me.Magnitude
End Function

Private Property Get IToStringable_ToString() As String
    IToStringable_ToString = ToString
End Property

C# - ListsAndLambdas.cs File

This code needs to reside in a Class Library Dll project. You need to run with admin in order to register changes to the registry. You need to check the Register for interop checkbox and you need to make the assembly ComVisible(true). You will also need to install, using NuGet, the package System.Linq.Dynamic.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.InteropServices;
using myAlias = System.Linq.Dynamic;   //install package 'System.Linq.Dynamic' v.1.0.7 with NuGet

//https://stackoverflow.com/questions/49453260/datastructure-for-both-sorting-and-filtering/49453892#comment85912406_49453892
//https://www.codeproject.com/Articles/17575/Lambda-Expressions-and-Expression-Trees-An-Introdu
//https://stackoverflow.com/questions/821365/how-to-convert-a-string-to-its-equivalent-linq-expression-tree
//https://stackoverflow.com/questions/33176803/linq-dynamic-parselambda-not-resolving
//https://www.codeproject.com/Articles/74018/How-to-Parse-and-Convert-a-Delegate-into-an-Expres
//https://stackoverflow.com/questions/30916432/how-to-call-a-lambda-using-linq-expression-trees-in-c-sharp-net

namespace LinqInVBA
{
    // in project properties, build tab, check the checkbox "Register for Interop", run Visualstudio in admin so it can registers changes 
    // in AssemblyInfo.cs change to [assembly: ComVisible(true)]

    public class LambdaExpressionHelper
    {
        public Delegate ParseAndCompile(string wholeLambda, int expectedParamsCount, Type[] paramtypes)
        {
            string[] split0 = wholeLambda.Split(new string[] { "=>" }, StringSplitOptions.None);
            if (split0.Length == 1) { throw new Exception($"#Could not find arrow operator in expression {wholeLambda}!"); }
            if (split0.Length != 2) { throw new Exception($"#Expecting only single arrow operator not {split0.Length - 1}!"); }

            string[] args = split0[0].Trim().Split(new char[] { '(', ',', ')' }, StringSplitOptions.RemoveEmptyEntries);
            if (args.Length != expectedParamsCount) { throw new Exception($"#Paramtypes array is of different length {expectedParamsCount} to argument list length{args.Length}"); }
            var expression = split0[1];

            List<ParameterExpression> pList = new List<ParameterExpression>();

            for (int lArgLoop = 0; lArgLoop < args.Length; lArgLoop++)
            {
                Type typLoop = paramtypes[lArgLoop];
                var p = Expression.Parameter(typLoop, args[lArgLoop]);
                pList.Add(p);
            }


            var e = myAlias.DynamicExpression.ParseLambda(pList.ToArray(), null, expression);
            return e.Compile();
        }
    }

    public interface IFilterableListOfPoints
    {
        void Add(ICartesianPoint x);
        string ToString2();
        IFilterableListOfPoints Where(string lambda);

        int Count();
        ICartesianPoint Item(int idx);
        void Sort();
    }

    public interface ICartesianPoint
    {
        string ToString();
        double Magnitude();
        double AngleInDegrees();
        // add more here if you intend to use them in a lambda expression
    }

    [ClassInterface(ClassInterfaceType.None)]
    [ComDefaultInterface(typeof(IFilterableListOfPoints))]
    public class ListOfPoints : IFilterableListOfPoints
    {

        private List<ICartesianPoint> myList = new List<ICartesianPoint>();

        public List<ICartesianPoint> MyList { get { return this.myList; } set { this.myList = value; } }

        void IFilterableListOfPoints.Add(ICartesianPoint x)
        {
            myList.Add(x);
        }

        int IFilterableListOfPoints.Count()
        {
            return myList.Count();
        }

        ICartesianPoint IFilterableListOfPoints.Item(int idx)
        {
            return myList[idx];
        }

        void IFilterableListOfPoints.Sort()
        {
            myList.Sort();
        }

        string IFilterableListOfPoints.ToString2()
        {
            List<string> toStrings = new List<string>();
            foreach (ICartesianPoint obj in myList)
            {
                toStrings.Add(obj.ToString());
            }

            return string.Join(",", toStrings.ToArray());
            
        }

        IFilterableListOfPoints IFilterableListOfPoints.Where(string wholeLambda)
        {
            Type[] paramtypes = { typeof(ICartesianPoint) };


            LambdaExpressionHelper lh = new LambdaExpressionHelper();
            Delegate compiled = lh.ParseAndCompile(wholeLambda, 1, paramtypes);

            System.Func<ICartesianPoint, bool> pred = (System.Func<ICartesianPoint, bool>)compiled;

            ListOfPoints newList = new ListOfPoints();
            newList.MyList = (List<ICartesianPoint>)myList.Where(pred).ToList();
            return newList;
        }

    }

}

Monday, 19 March 2018

VBA Error Codes and Descriptions

So C++ programmers have the best resources, all (at least I think so) windows error codes that can happen are defined in a C++ header file called winerror.h but a minority of VBA programmers have access to this file so I have written some code to interpret the contents and generate VBA equivalent constant declarations. There are many and so the lines are commented out but if you uncomment they should all compile, but I did have to rename 9 duplicates. Here they are and underneath is the code used to generate them (in case a bug fix is required)



Option Explicit

'Private Const ERROR_SUCCESS As Long = 0 '  The operation completed successfully.
'Private Const ERROR_INVALID_FUNCTION As Long = 1 '  Incorrect function.
'Private Const ERROR_FILE_NOT_FOUND As Long = 2 '  The system cannot find the file specified.
'Private Const ERROR_PATH_NOT_FOUND As Long = 3 '  The system cannot find the path specified.
'Private Const ERROR_TOO_MANY_OPEN_FILES As Long = 4 '  The system cannot open the file.
'Private Const ERROR_ACCESS_DENIED As Long = 5 '  Access is denied.
'Private Const ERROR_INVALID_HANDLE As Long = 6 '  The handle is invalid.
'Private Const ERROR_ARENA_TRASHED As Long = 7 '  The storage control blocks were destroyed.
'Private Const ERROR_NOT_ENOUGH_MEMORY As Long = 8 '  Not enough storage is available to process this command.
'Private Const ERROR_INVALID_BLOCK As Long = 9 '  The storage control block address is invalid.
'Private Const ERROR_BAD_ENVIRONMENT As Long = 10 '  The environment is incorrect.
'Private Const ERROR_BAD_FORMAT As Long = 11 '  An attempt was made to load a program with an incorrect format.
'Private Const ERROR_INVALID_ACCESS As Long = 12 '  The access code is invalid.
'Private Const ERROR_INVALID_DATA As Long = 13 '  The data is invalid.
'Private Const ERROR_OUTOFMEMORY As Long = 14 '  Not enough storage is available to complete this operation.
'Private Const ERROR_INVALID_DRIVE As Long = 15 '  The system cannot find the drive specified.
'Private Const ERROR_CURRENT_DIRECTORY As Long = 16 '  The directory cannot be removed.
'Private Const ERROR_NOT_SAME_DEVICE As Long = 17 '  The system cannot move the file to a different disk drive.
'Private Const ERROR_NO_MORE_FILES As Long = 18 '  There are no more files.
'Private Const ERROR_WRITE_PROTECT As Long = 19 '  The media is write protected.
'Private Const ERROR_BAD_UNIT As Long = 20 '  The system cannot find the device specified.
'Private Const ERROR_NOT_READY As Long = 21 '  The device is not ready.
'Private Const ERROR_BAD_COMMAND As Long = 22 '  The device does not recognize the command.
'Private Const ERROR_CRC As Long = 23 '  Data error (cyclic redundancy check).
'Private Const ERROR_BAD_LENGTH As Long = 24 '  The program issued a command but the command length is incorrect.
'Private Const ERROR_SEEK As Long = 25 '  The drive cannot locate a specific area or track on the disk.
'Private Const ERROR_NOT_DOS_DISK As Long = 26 '  The specified disk or diskette cannot be accessed.
'Private Const ERROR_SECTOR_NOT_FOUND As Long = 27 '  The drive cannot find the sector requested.
'Private Const ERROR_OUT_OF_PAPER As Long = 28 '  The printer is out of paper.
'Private Const ERROR_WRITE_FAULT As Long = 29 '  The system cannot write to the specified device.
'Private Const ERROR_READ_FAULT As Long = 30 '  The system cannot read from the specified device.
'Private Const ERROR_GEN_FAILURE As Long = 31 '  A device attached to the system is not functioning.
'Private Const ERROR_SHARING_VIOLATION As Long = 32 '  The process cannot access the file because it is being used by another process.
'Private Const ERROR_LOCK_VIOLATION As Long = 33 '  The process cannot access the file because another process has locked a portion of the file.
'Private Const ERROR_WRONG_DISK As Long = 34 '  The wrong diskette is in the drive.Insert %2 (Volume Serial Number: %3) into drive %1.
'Private Const ERROR_SHARING_BUFFER_EXCEEDED As Long = 36 '  Too many files opened for sharing.
'Private Const ERROR_HANDLE_EOF As Long = 38 '  Reached the end of the file.
'Private Const ERROR_HANDLE_DISK_FULL As Long = 39 '  The disk is full.
'Private Const ERROR_NOT_SUPPORTED As Long = 50 '  The request is not supported.
'Private Const ERROR_REM_NOT_LIST As Long = 51 '  Windows cannot find the network path. Verify that the network path is correct and the destination computer is not busy or turned off. If Windows still cannot find the network path, contact your network administrator.
'Private Const ERROR_DUP_NAME As Long = 52 '  You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name.
'Private Const ERROR_BAD_NETPATH As Long = 53 '  The network path was not found.
'Private Const ERROR_NETWORK_BUSY As Long = 54 '  The network is busy.
'Private Const ERROR_DEV_NOT_EXIST As Long = 55 '  The specified network resource or device is no longer available.
'Private Const ERROR_TOO_MANY_CMDS As Long = 56 '  The network BIOS command limit has been reached.
'Private Const ERROR_ADAP_HDW_ERR As Long = 57 '  A network adapter hardware error occurred.
'Private Const ERROR_BAD_NET_RESP As Long = 58 '  The specified server cannot perform the requested operation.
'Private Const ERROR_UNEXP_NET_ERR As Long = 59 '  An unexpected network error occurred.
'Private Const ERROR_BAD_REM_ADAP As Long = 60 '  The remote adapter is not compatible.
'Private Const ERROR_PRINTQ_FULL As Long = 61 '  The printer queue is full.
'Private Const ERROR_NO_SPOOL_SPACE As Long = 62 '  Space to store the file waiting to be printed is not available on the server.
'Private Const ERROR_PRINT_CANCELLED As Long = 63 '  Your file waiting to be printed was deleted.
'Private Const ERROR_NETNAME_DELETED As Long = 64 '  The specified network name is no longer available.
'Private Const ERROR_NETWORK_ACCESS_DENIED As Long = 65 '  Network access is denied.
'Private Const ERROR_BAD_DEV_TYPE As Long = 66 '  The network resource type is not correct.
'Private Const ERROR_BAD_NET_NAME As Long = 67 '  The network name cannot be found.
'Private Const ERROR_TOO_MANY_NAMES As Long = 68 '  The name limit for the local computer network adapter card was exceeded.
'Private Const ERROR_TOO_MANY_SESS As Long = 69 '  The network BIOS session limit was exceeded.
'Private Const ERROR_SHARING_PAUSED As Long = 70 '  The remote server has been paused or is in the process of being started.
'Private Const ERROR_REQ_NOT_ACCEP As Long = 71 '  No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.
'Private Const ERROR_REDIR_PAUSED As Long = 72 '  The specified printer or disk device has been paused.
'Private Const ERROR_FILE_EXISTS As Long = 80 '  The file exists.
'Private Const ERROR_CANNOT_MAKE As Long = 82 '  The directory or file cannot be created.
'Private Const ERROR_FAIL_I24 As Long = 83 '  Fail on INT 24.
'Private Const ERROR_OUT_OF_STRUCTURES As Long = 84 '  Storage to process this request is not available.
'Private Const ERROR_ALREADY_ASSIGNED As Long = 85 '  The local device name is already in use.
'Private Const ERROR_INVALID_PASSWORD As Long = 86 '  The specified network password is not correct.
'Private Const ERROR_INVALID_PARAMETER As Long = 87 '  The parameter is incorrect.
'Private Const ERROR_NET_WRITE_FAULT As Long = 88 '  A write fault occurred on the network.
'Private Const ERROR_NO_PROC_SLOTS As Long = 89 '  The system cannot start another process at this time.
'Private Const ERROR_TOO_MANY_SEMAPHORES As Long = 100 '  Cannot create another system semaphore.
'Private Const ERROR_EXCL_SEM_ALREADY_OWNED As Long = 101 '  The exclusive semaphore is owned by another process.
'Private Const ERROR_SEM_IS_SET As Long = 102 '  The semaphore is set and cannot be closed.
'Private Const ERROR_TOO_MANY_SEM_REQUESTS As Long = 103 '  The semaphore cannot be set again.
'Private Const ERROR_INVALID_AT_INTERRUPT_TIME As Long = 104 '  Cannot request exclusive semaphores at interrupt time.
'Private Const ERROR_SEM_OWNER_DIED As Long = 105 '  The previous ownership of this semaphore has ended.
'Private Const ERROR_SEM_USER_LIMIT As Long = 106 '  Insert the diskette for drive %1.
'Private Const ERROR_DISK_CHANGE As Long = 107 '  The program stopped because an alternate diskette was not inserted.
'Private Const ERROR_DRIVE_LOCKED As Long = 108 '  The disk is in use or locked by another process.
'Private Const ERROR_BROKEN_PIPE As Long = 109 '  The pipe has been ended.
'Private Const ERROR_OPEN_FAILED As Long = 110 '  The system cannot open the device or file specified.
'Private Const ERROR_BUFFER_OVERFLOW As Long = 111 '  The file name is too long.
'Private Const ERROR_DISK_FULL As Long = 112 '  There is not enough space on the disk.
'Private Const ERROR_NO_MORE_SEARCH_HANDLES As Long = 113 '  No more internal file identifiers available.
'Private Const ERROR_INVALID_TARGET_HANDLE As Long = 114 '  The target internal file identifier is incorrect.
'Private Const ERROR_INVALID_CATEGORY As Long = 117 '  The IOCTL call made by the application program is not correct.
'Private Const ERROR_INVALID_VERIFY_SWITCH As Long = 118 '  The verify-on-write switch parameter value is not correct.
'Private Const ERROR_BAD_DRIVER_LEVEL As Long = 119 '  The system does not support the command requested.
'Private Const ERROR_CALL_NOT_IMPLEMENTED As Long = 120 '  This function is not supported on this system.
'Private Const ERROR_SEM_TIMEOUT As Long = 121 '  The semaphore timeout period has expired.
'Private Const ERROR_INSUFFICIENT_BUFFER As Long = 122 '  The data area passed to a system call is too small.
'Private Const ERROR_INVALID_NAME As Long = 123 '  The filename, directory name, or volume label syntax is incorrect.
'Private Const ERROR_INVALID_LEVEL As Long = 124 '  The system call level is not correct.
'Private Const ERROR_NO_VOLUME_LABEL As Long = 125 '  The disk has no volume label.
'Private Const ERROR_MOD_NOT_FOUND As Long = 126 '  The specified module could not be found.
'Private Const ERROR_PROC_NOT_FOUND As Long = 127 '  The specified procedure could not be found.
'Private Const ERROR_WAIT_NO_CHILDREN As Long = 128 '  There are no child processes to wait for.
'Private Const ERROR_CHILD_NOT_COMPLETE As Long = 129 '  The %1 application cannot be run in Win32 mode.
'Private Const ERROR_DIRECT_ACCESS_HANDLE As Long = 130 '  Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.
'Private Const ERROR_NEGATIVE_SEEK As Long = 131 '  An attempt was made to move the file pointer before the beginning of the file.
'Private Const ERROR_SEEK_ON_DEVICE As Long = 132 '  The file pointer cannot be set on the specified device or file.
'Private Const ERROR_IS_JOIN_TARGET As Long = 133 '  A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.
'Private Const ERROR_IS_JOINED As Long = 134 '  An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.
'Private Const ERROR_IS_SUBSTED As Long = 135 '  An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.
'Private Const ERROR_NOT_JOINED As Long = 136 '  The system tried to delete the JOIN of a drive that is not joined.
'Private Const ERROR_NOT_SUBSTED As Long = 137 '  The system tried to delete the substitution of a drive that is not substituted.
'Private Const ERROR_JOIN_TO_JOIN As Long = 138 '  The system tried to join a drive to a directory on a joined drive.
'Private Const ERROR_SUBST_TO_SUBST As Long = 139 '  The system tried to substitute a drive to a directory on a substituted drive.
'Private Const ERROR_JOIN_TO_SUBST As Long = 140 '  The system tried to join a drive to a directory on a substituted drive.
'Private Const ERROR_SUBST_TO_JOIN As Long = 141 '  The system tried to SUBST a drive to a directory on a joined drive.
'Private Const ERROR_BUSY_DRIVE As Long = 142 '  The system cannot perform a JOIN or SUBST at this time.
'Private Const ERROR_SAME_DRIVE As Long = 143 '  The system cannot join or substitute a drive to or for a directory on the same drive.
'Private Const ERROR_DIR_NOT_ROOT As Long = 144 '  The directory is not a subdirectory of the root directory.
'Private Const ERROR_DIR_NOT_EMPTY As Long = 145 '  The directory is not empty.
'Private Const ERROR_IS_SUBST_PATH As Long = 146 '  The path specified is being used in a substitute.
'Private Const ERROR_IS_JOIN_PATH As Long = 147 '  Not enough resources are available to process this command.
'Private Const ERROR_PATH_BUSY As Long = 148 '  The path specified cannot be used at this time.
'Private Const ERROR_IS_SUBST_TARGET As Long = 149 '  An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute.
'Private Const ERROR_SYSTEM_TRACE As Long = 150 '  System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed.
'Private Const ERROR_INVALID_EVENT_COUNT As Long = 151 '  The number of specified semaphore events for DosMuxSemWait is not correct.
'Private Const ERROR_TOO_MANY_MUXWAITERS As Long = 152 '  DosMuxSemWait did not execute; too many semaphores are already set.
'Private Const ERROR_INVALID_LIST_FORMAT As Long = 153 '  The DosMuxSemWait list is not correct.
'Private Const ERROR_LABEL_TOO_LONG As Long = 154 '  The volume label you entered exceeds the label character limit of the target file system.
'Private Const ERROR_TOO_MANY_TCBS As Long = 155 '  Cannot create another thread.
'Private Const ERROR_SIGNAL_REFUSED As Long = 156 '  The recipient process has refused the signal.
'Private Const ERROR_DISCARDED As Long = 157 '  The segment is already discarded and cannot be locked.
'Private Const ERROR_NOT_LOCKED As Long = 158 '  The segment is already unlocked.
'Private Const ERROR_BAD_THREADID_ADDR As Long = 159 '  The address for the thread ID is not correct.
'Private Const ERROR_BAD_ARGUMENTS As Long = 160 '  One or more arguments are not correct.
'Private Const ERROR_BAD_PATHNAME As Long = 161 '  The specified path is invalid.
'Private Const ERROR_SIGNAL_PENDING As Long = 162 '  A signal is already pending.
'Private Const ERROR_MAX_THRDS_REACHED As Long = 164 '  No more threads can be created in the system.
'Private Const ERROR_LOCK_FAILED As Long = 167 '  Unable to lock a region of a file.
'Private Const ERROR_BUSY As Long = 170 '  The requested resource is in use.
'Private Const ERROR_DEVICE_SUPPORT_IN_PROGRESS As Long = 171 '  Device's command support detection is in progress.
'Private Const ERROR_CANCEL_VIOLATION As Long = 173 '  A lock request was not outstanding for the supplied cancel region.
'Private Const ERROR_ATOMIC_LOCKS_NOT_SUPPORTED As Long = 174 '  The file system does not support atomic changes to the lock type.
'Private Const ERROR_INVALID_SEGMENT_NUMBER As Long = 180 '  The system detected a segment number that was not correct.
'Private Const ERROR_INVALID_ORDINAL As Long = 182 '  The operating system cannot run %1.
'Private Const ERROR_ALREADY_EXISTS As Long = 183 '  Cannot create a file when that file already exists.
'Private Const ERROR_INVALID_FLAG_NUMBER As Long = 186 '  The flag passed is not correct.
'Private Const ERROR_SEM_NOT_FOUND As Long = 187 '  The specified system semaphore name was not found.
'Private Const ERROR_INVALID_STARTING_CODESEG As Long = 188 '  The operating system cannot run %1.
'Private Const ERROR_INVALID_STACKSEG As Long = 189 '  The operating system cannot run %1.
'Private Const ERROR_INVALID_MODULETYPE As Long = 190 '  The operating system cannot run %1.
'Private Const ERROR_INVALID_EXE_SIGNATURE As Long = 191 '  Cannot run %1 in Win32 mode.
'Private Const ERROR_EXE_MARKED_INVALID As Long = 192 '  The operating system cannot run %1.
'Private Const ERROR_BAD_EXE_FORMAT As Long = 193 '  %1 is not a valid Win32 application.
'Private Const ERROR_ITERATED_DATA_EXCEEDS_64K As Long = 194 '  The operating system cannot run %1.
'Private Const ERROR_INVALID_MINALLOCSIZE As Long = 195 '  The operating system cannot run %1.
'Private Const ERROR_DYNLINK_FROM_INVALID_RING As Long = 196 '  The operating system cannot run this application program.
'Private Const ERROR_IOPL_NOT_ENABLED As Long = 197 '  The operating system is not presently configured to run this application.
'Private Const ERROR_INVALID_SEGDPL As Long = 198 '  The operating system cannot run %1.
'Private Const ERROR_AUTODATASEG_EXCEEDS_64K As Long = 199 '  The operating system cannot run this application program.
'Private Const ERROR_RING2SEG_MUST_BE_MOVABLE As Long = 200 '  The code segment cannot be greater than or equal to 64K.
'Private Const ERROR_RELOC_CHAIN_XEEDS_SEGLIM As Long = 201 '  The operating system cannot run %1.
'Private Const ERROR_INFLOOP_IN_RELOC_CHAIN As Long = 202 '  The operating system cannot run %1.
'Private Const ERROR_ENVVAR_NOT_FOUND As Long = 203 '  The system could not find the environment option that was entered.
'Private Const ERROR_NO_SIGNAL_SENT As Long = 205 '  No process in the command subtree has a signal handler.
'Private Const ERROR_FILENAME_EXCED_RANGE As Long = 206 '  The filename or extension is too long.
'Private Const ERROR_RING2_STACK_IN_USE As Long = 207 '  The ring 2 stack is in use.
'Private Const ERROR_META_EXPANSION_TOO_LONG As Long = 208 '  The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified.
'Private Const ERROR_INVALID_SIGNAL_NUMBER As Long = 209 '  The signal being posted is not correct.
'Private Const ERROR_THREAD_1_INACTIVE As Long = 210 '  The signal handler cannot be set.
'Private Const ERROR_LOCKED As Long = 212 '  The segment is locked and cannot be reallocated.
'Private Const ERROR_TOO_MANY_MODULES As Long = 214 '  Too many dynamic-link modules are attached to this program or dynamic-link module.
'Private Const ERROR_NESTING_NOT_ALLOWED As Long = 215 '  Cannot nest calls to LoadModule.
'Private Const ERROR_EXE_MACHINE_TYPE_MISMATCH As Long = 216 '  This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
'Private Const ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY As Long = 217 '  The image file %1 is signed, unable to modify.
'Private Const ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY As Long = 218 '  The image file %1 is strong signed, unable to modify.
'Private Const ERROR_FILE_CHECKED_OUT As Long = 220 '  This file is checked out or locked for editing by another user.
'Private Const ERROR_CHECKOUT_REQUIRED As Long = 221 '  The file must be checked out before saving changes.
'Private Const ERROR_BAD_FILE_TYPE As Long = 222 '  The file type being saved or retrieved has been blocked.
'Private Const ERROR_FILE_TOO_LARGE As Long = 223 '  The file size exceeds the limit allowed and cannot be saved.
'Private Const ERROR_FORMS_AUTH_REQUIRED As Long = 224 '  Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically.
'Private Const ERROR_VIRUS_INFECTED As Long = 225 '  Operation did not complete successfully because the file contains a virus or potentially unwanted software.
'Private Const ERROR_VIRUS_DELETED As Long = 226 '  This file contains a virus or potentially unwanted software and cannot be opened. Due to the nature of this virus or potentially unwanted software, the file has been removed from this location.
'Private Const ERROR_PIPE_LOCAL As Long = 229 '  The pipe is local.
'Private Const ERROR_BAD_PIPE As Long = 230 '  The pipe state is invalid.
'Private Const ERROR_PIPE_BUSY As Long = 231 '  All pipe instances are busy.
'Private Const ERROR_NO_DATA As Long = 232 '  The pipe is being closed.
'Private Const ERROR_PIPE_NOT_CONNECTED As Long = 233 '  No process is on the other end of the pipe.
'Private Const ERROR_MORE_DATA As Long = 234 '  More data is available.
'Private Const ERROR_VC_DISCONNECTED As Long = 240 '  The session was canceled.
'Private Const ERROR_INVALID_EA_NAME As Long = 254 '  The specified extended attribute name was invalid.
'Private Const ERROR_EA_LIST_INCONSISTENT As Long = 255 '  The extended attributes are inconsistent.
'Private Const WAIT_TIMEOUT As Long = 258 '  The wait operation timed out.
'Private Const ERROR_NO_MORE_ITEMS As Long = 259 '  No more data is available.
'Private Const ERROR_CANNOT_COPY As Long = 266 '  The copy functions cannot be used.
'Private Const ERROR_DIRECTORY As Long = 267 '  The directory name is invalid.
'Private Const ERROR_EAS_DIDNT_FIT As Long = 275 '  The extended attributes did not fit in the buffer.
'Private Const ERROR_EA_FILE_CORRUPT As Long = 276 '  The extended attribute file on the mounted file system is corrupt.
'Private Const ERROR_EA_TABLE_FULL As Long = 277 '  The extended attribute table file is full.
'Private Const ERROR_INVALID_EA_HANDLE As Long = 278 '  The specified extended attribute handle is invalid.
'Private Const ERROR_EAS_NOT_SUPPORTED As Long = 282 '  The mounted file system does not support extended attributes.
'Private Const ERROR_NOT_OWNER As Long = 288 '  Attempt to release mutex not owned by caller.
'Private Const ERROR_TOO_MANY_POSTS As Long = 298 '  Too many posts were made to a semaphore.
'Private Const ERROR_PARTIAL_COPY As Long = 299 '  Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
'Private Const ERROR_OPLOCK_NOT_GRANTED As Long = 300 '  The oplock request is denied.
'Private Const ERROR_INVALID_OPLOCK_PROTOCOL As Long = 301 '  An invalid oplock acknowledgment was received by the system.
'Private Const ERROR_DISK_TOO_FRAGMENTED As Long = 302 '  The volume is too fragmented to complete this operation.
'Private Const ERROR_DELETE_PENDING As Long = 303 '  The file cannot be opened because it is in the process of being deleted.
'Private Const ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING As Long = 304 '  Short name settings may not be changed on this volume due to the global registry setting.
'Private Const ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME As Long = 305 '  Short names are not enabled on this volume.
'Private Const ERROR_SECURITY_STREAM_IS_INCONSISTENT As Long = 306 '  The security stream for the given volume is in an inconsistent state.Please run CHKDSK on the volume.
'Private Const ERROR_INVALID_LOCK_RANGE As Long = 307 '  A requested file lock operation cannot be processed due to an invalid byte range.
'Private Const ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT As Long = 308 '  The subsystem needed to support the image type is not present.
'Private Const ERROR_NOTIFICATION_GUID_ALREADY_DEFINED As Long = 309 '  The specified file already has a notification GUID associated with it.
'Private Const ERROR_INVALID_EXCEPTION_HANDLER As Long = 310 '  An invalid exception handler routine has been detected.
'Private Const ERROR_DUPLICATE_PRIVILEGES As Long = 311 '  Duplicate privileges were specified for the token.
'Private Const ERROR_NO_RANGES_PROCESSED As Long = 312 '  No ranges for the specified operation were able to be processed.
'Private Const ERROR_NOT_ALLOWED_ON_SYSTEM_FILE As Long = 313 '  Operation is not allowed on a file system internal file.
'Private Const ERROR_DISK_RESOURCES_EXHAUSTED As Long = 314 '  The physical resources of this disk have been exhausted.
'Private Const ERROR_INVALID_TOKEN As Long = 315 '  The token representing the data is invalid.
'Private Const ERROR_DEVICE_FEATURE_NOT_SUPPORTED As Long = 316 '  The device does not support the command feature.
'Private Const ERROR_MR_MID_NOT_FOUND As Long = 317 '  The system cannot find message text for message number 0x%1 in the message file for %2.
'Private Const ERROR_SCOPE_NOT_FOUND As Long = 318 '  The scope specified was not found.
'Private Const ERROR_UNDEFINED_SCOPE As Long = 319 '  The Central Access Policy specified is not defined on the target machine.
'Private Const ERROR_INVALID_CAP As Long = 320 '  The Central Access Policy obtained from Active Directory is invalid.
'Private Const ERROR_DEVICE_UNREACHABLE As Long = 321 '  The device is unreachable.
'Private Const ERROR_DEVICE_NO_RESOURCES As Long = 322 '  The target device has insufficient resources to complete the operation.
'Private Const ERROR_DATA_CHECKSUM_ERROR As Long = 323 '  A data integrity checksum error occurred. Data in the file stream is corrupt.
'Private Const ERROR_INTERMIXED_KERNEL_EA_OPERATION As Long = 324 '  An attempt was made to modify both a KERNEL and normal Extended Attribute (EA) in the same operation.
'Private Const ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED As Long = 326 '  Device does not support file-level TRIM.
'Private Const ERROR_OFFSET_ALIGNMENT_VIOLATION As Long = 327 '  The command specified a data offset that does not align to the device's granularity/alignment.
'Private Const ERROR_INVALID_FIELD_IN_PARAMETER_LIST As Long = 328 '  The command specified an invalid field in its parameter list.
'Private Const ERROR_OPERATION_IN_PROGRESS As Long = 329 '  An operation is currently in progress with the device.
'Private Const ERROR_BAD_DEVICE_PATH As Long = 330 '  An attempt was made to send down the command via an invalid path to the target device.
'Private Const ERROR_TOO_MANY_DESCRIPTORS As Long = 331 '  The command specified a number of descriptors that exceeded the maximum supported by the device.
'Private Const ERROR_SCRUB_DATA_DISABLED As Long = 332 '  Scrub is disabled on the specified file.
'Private Const ERROR_NOT_REDUNDANT_STORAGE As Long = 333 '  The storage device does not provide redundancy.
'Private Const ERROR_RESIDENT_FILE_NOT_SUPPORTED As Long = 334 '  An operation is not supported on a resident file.
'Private Const ERROR_COMPRESSED_FILE_NOT_SUPPORTED As Long = 335 '  An operation is not supported on a compressed file.
'Private Const ERROR_DIRECTORY_NOT_SUPPORTED As Long = 336 '  An operation is not supported on a directory.
'Private Const ERROR_NOT_READ_FROM_COPY As Long = 337 '  The specified copy of the requested data could not be read.
'Private Const ERROR_FT_WRITE_FAILURE As Long = 338 '  The specified data could not be written to any of the copies.
'Private Const ERROR_FT_DI_SCAN_REQUIRED As Long = 339 '  One or more copies of data on this device may be out of sync. No writes may be performed until a data integrity scan is completed.
'Private Const ERROR_INVALID_KERNEL_INFO_VERSION As Long = 340 '  The supplied kernel information version is invalid.
'Private Const ERROR_INVALID_PEP_INFO_VERSION As Long = 341 '  The supplied PEP information version is invalid.
'Private Const ERROR_OBJECT_NOT_EXTERNALLY_BACKED As Long = 342 '  This object is not externally backed by any provider.
'Private Const ERROR_EXTERNAL_BACKING_PROVIDER_UNKNOWN As Long = 343 '  The external backing provider is not recognized.
'Private Const ERROR_FAIL_NOACTION_REBOOT As Long = 350 '  No action was taken as a system reboot is required.
'Private Const ERROR_FAIL_SHUTDOWN As Long = 351 '  The shutdown operation failed.
'Private Const ERROR_FAIL_RESTART As Long = 352 '  The restart operation failed.
'Private Const ERROR_MAX_SESSIONS_REACHED As Long = 353 '  The maximum number of sessions has been reached.
'Private Const ERROR_THREAD_MODE_ALREADY_BACKGROUND As Long = 400 '  The thread is already in background processing mode.
'Private Const ERROR_THREAD_MODE_NOT_BACKGROUND As Long = 401 '  The thread is not in background processing mode.
'Private Const ERROR_PROCESS_MODE_ALREADY_BACKGROUND As Long = 402 '  The process is already in background processing mode.
'Private Const ERROR_PROCESS_MODE_NOT_BACKGROUND As Long = 403 '  The process is not in background processing mode.
'Private Const ERROR_DEVICE_HARDWARE_ERROR As Long = 483 '  The request failed due to a fatal device hardware error.
'Private Const ERROR_INVALID_ADDRESS As Long = 487 '  Attempt to access invalid address.
'Private Const ERROR_USER_PROFILE_LOAD As Long = 500 '  User profile cannot be loaded.
'Private Const ERROR_ARITHMETIC_OVERFLOW As Long = 534 '  Arithmetic result exceeded 32 bits.
'Private Const ERROR_PIPE_CONNECTED As Long = 535 '  There is a process on other end of the pipe.
'Private Const ERROR_PIPE_LISTENING As Long = 536 '  Waiting for a process to open the other end of the pipe.
'Private Const ERROR_VERIFIER_STOP As Long = 537 '  Application verifier has found an error in the current process.
'Private Const ERROR_ABIOS_ERROR As Long = 538 '  An error occurred in the ABIOS subsystem.
'Private Const ERROR_WX86_WARNING As Long = 539 '  A warning occurred in the WX86 subsystem.
'Private Const ERROR_WX86_ERROR As Long = 540 '  An error occurred in the WX86 subsystem.
'Private Const ERROR_TIMER_NOT_CANCELED As Long = 541 '  An attempt was made to cancel or set a timer that has an associated APC and the subject thread is not the thread that originally set the timer with an associated APC routine.
'Private Const ERROR_UNWIND As Long = 542 '  Unwind exception code.
'Private Const ERROR_BAD_STACK As Long = 543 '  An invalid or unaligned stack was encountered during an unwind operation.
'Private Const ERROR_INVALID_UNWIND_TARGET As Long = 544 '  An invalid unwind target was encountered during an unwind operation.
'Private Const ERROR_INVALID_PORT_ATTRIBUTES As Long = 545 '  Invalid Object Attributes specified to NtCreatePort or invalid Port Attributes specified to NtConnectPort
'Private Const ERROR_PORT_MESSAGE_TOO_LONG As Long = 546 '  Length of message passed to NtRequestPort or NtRequestWaitReplyPort was longer than the maximum message allowed by the port.
'Private Const ERROR_INVALID_QUOTA_LOWER As Long = 547 '  An attempt was made to lower a quota limit below the current usage.
'Private Const ERROR_DEVICE_ALREADY_ATTACHED As Long = 548 '  An attempt was made to attach to a device that was already attached to another device.
'Private Const ERROR_INSTRUCTION_MISALIGNMENT As Long = 549 '  An attempt was made to execute an instruction at an unaligned address and the host system does not support unaligned instruction references.
'Private Const ERROR_PROFILING_NOT_STARTED As Long = 550 '  Profiling not started.
'Private Const ERROR_PROFILING_NOT_STOPPED As Long = 551 '  Profiling not stopped.
'Private Const ERROR_COULD_NOT_INTERPRET As Long = 552 '  The passed ACL did not contain the minimum required information.
'Private Const ERROR_PROFILING_AT_LIMIT As Long = 553 '  The number of active profiling objects is at the maximum and no more may be started.
'Private Const ERROR_CANT_WAIT As Long = 554 '  Used to indicate that an operation cannot continue without blocking for I/O.
'Private Const ERROR_CANT_TERMINATE_SELF As Long = 555 '  Indicates that a thread attempted to terminate itself by default (called NtTerminateThread with NULL) and it was the last thread in the current process.
'Private Const ERROR_UNEXPECTED_MM_CREATE_ERR As Long = 556 '  If an MM error is returned which is not defined in the standard FsRtl filter, it is converted to one of the following errors which is guaranteed to be in the filter.In this case information is lost, however, the filter correctly handles the exception.
'Private Const ERROR_UNEXPECTED_MM_MAP_ERROR As Long = 557 '  If an MM error is returned which is not defined in the standard FsRtl filter, it is converted to one of the following errors which is guaranteed to be in the filter.In this case information is lost, however, the filter correctly handles the exception.
'Private Const ERROR_UNEXPECTED_MM_EXTEND_ERR As Long = 558 '  If an MM error is returned which is not defined in the standard FsRtl filter, it is converted to one of the following errors which is guaranteed to be in the filter.In this case information is lost, however, the filter correctly handles the exception.
'Private Const ERROR_BAD_FUNCTION_TABLE As Long = 559 '  A malformed function table was encountered during an unwind operation.
'Private Const ERROR_NO_GUID_TRANSLATION As Long = 560 '  Indicates that an attempt was made to assign protection to a file system file or directory and one of the SIDs in the security descriptor could not be translated into a GUID that could be stored by the file system.This causes the protection attempt to fail, which may cause a file creation attempt to fail.
'Private Const ERROR_INVALID_LDT_SIZE As Long = 561 '  Indicates that an attempt was made to grow an LDT by setting its size, or that the size was not an even number of selectors.
'Private Const ERROR_INVALID_LDT_OFFSET As Long = 563 '  Indicates that the starting value for the LDT information was not an integral multiple of the selector size.
'Private Const ERROR_INVALID_LDT_DESCRIPTOR As Long = 564 '  Indicates that the user supplied an invalid descriptor when trying to set up Ldt descriptors.
'Private Const ERROR_TOO_MANY_THREADS As Long = 565 '  Indicates a process has too many threads to perform the requested action. For example, assignment of a primary token may only be performed when a process has zero or one threads.
'Private Const ERROR_THREAD_NOT_IN_PROCESS As Long = 566 '  An attempt was made to operate on a thread within a specific process, but the thread specified is not in the process specified.
'Private Const ERROR_PAGEFILE_QUOTA_EXCEEDED As Long = 567 '  Page file quota was exceeded.
'Private Const ERROR_LOGON_SERVER_CONFLICT As Long = 568 '  The Netlogon service cannot start because another Netlogon service running in the domain conflicts with the specified role.
'Private Const ERROR_SYNCHRONIZATION_REQUIRED As Long = 569 '  The SAM database on a Windows Server is significantly out of synchronization with the copy on the Domain Controller. A complete synchronization is required.
'Private Const ERROR_NET_OPEN_FAILED As Long = 570 '  The NtCreateFile API failed. This error should never be returned to an application, it is a place holder for the Windows Lan Manager Redirector to use in its internal error mapping routines.
'Private Const ERROR_IO_PRIVILEGE_FAILED As Long = 571 '  {Privilege Failed}The I/O permissions for the process could not be changed.
'Private Const ERROR_CONTROL_C_EXIT As Long = 572 '  {Application Exit by CTRL+C}The application terminated as a result of a CTRL+C.
'Private Const ERROR_MISSING_SYSTEMFILE As Long = 573 '  {Missing System File}The required system file %hs is bad or missing.
'Private Const ERROR_UNHANDLED_EXCEPTION As Long = 574 '  {Application Error}The exception %s (0x%08lx) occurred in the application at location 0x%08lx.
'Private Const ERROR_APP_INIT_FAILURE As Long = 575 '  {Application Error}The application was unable to start correctly (0x%lx). Click OK to close the application.
'Private Const ERROR_PAGEFILE_CREATE_FAILED As Long = 576 '  {Unable to Create Paging File}The creation of the paging file %hs failed (%lx). The requested size was %ld.
'Private Const ERROR_INVALID_IMAGE_HASH As Long = 577 '  Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source.
'Private Const ERROR_NO_PAGEFILE As Long = 578 '  {No Paging File Specified}No paging file was specified in the system configuration.
'Private Const ERROR_ILLEGAL_FLOAT_CONTEXT As Long = 579 '  {EXCEPTION}A real-mode application issued a floating-point instruction and floating-point hardware is not present.
'Private Const ERROR_NO_EVENT_PAIR As Long = 580 '  An event pair synchronization operation was performed using the thread specific client/server event pair object, but no event pair object was associated with the thread.
'Private Const ERROR_DOMAIN_CTRLR_CONFIG_ERROR As Long = 581 '  A Windows Server has an incorrect configuration.
'Private Const ERROR_ILLEGAL_CHARACTER As Long = 582 '  An illegal character was encountered. For a multi-byte character set this includes a lead byte without a succeeding trail byte. For the Unicode character set this includes the characters 0xFFFF and 0xFFFE.
'Private Const ERROR_UNDEFINED_CHARACTER As Long = 583 '  The Unicode character is not defined in the Unicode character set installed on the system.
'Private Const ERROR_FLOPPY_VOLUME As Long = 584 '  The paging file cannot be created on a floppy diskette.
'Private Const ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT As Long = 585 '  The system BIOS failed to connect a system interrupt to the device or bus for which the device is connected.
'Private Const ERROR_BACKUP_CONTROLLER As Long = 586 '  This operation is only allowed for the Primary Domain Controller of the domain.
'Private Const ERROR_MUTANT_LIMIT_EXCEEDED As Long = 587 '  An attempt was made to acquire a mutant such that its maximum count would have been exceeded.
'Private Const ERROR_FS_DRIVER_REQUIRED As Long = 588 '  A volume has been accessed for which a file system driver is required that has not yet been loaded.
'Private Const ERROR_CANNOT_LOAD_REGISTRY_FILE As Long = 589 '  {Registry File Failure}The registry cannot load the hive (file):%hsor its log or alternate.It is corrupt, absent, or not writable.
'Private Const ERROR_DEBUG_ATTACH_FAILED As Long = 590 '  {Unexpected Failure in DebugActiveProcess}An unexpected failure occurred while processing a DebugActiveProcess API request. You may choose OK to terminate the process, or Cancel to ignore the error.
'Private Const ERROR_SYSTEM_PROCESS_TERMINATED As Long = 591 '  {Fatal System Error}The %hs system process terminated unexpectedly with a status of 0x%08x (0x%08x 0x%08x).The system has been shut down.
'Private Const ERROR_DATA_NOT_ACCEPTED As Long = 592 '  {Data Not Accepted}The TDI client could not handle the data received during an indication.
'Private Const ERROR_VDM_HARD_ERROR As Long = 593 '  NTVDM encountered a hard error.
'Private Const ERROR_DRIVER_CANCEL_TIMEOUT As Long = 594 '  {Cancel Timeout}The driver %hs failed to complete a cancelled I/O request in the allotted time.
'Private Const ERROR_REPLY_MESSAGE_MISMATCH As Long = 595 '  {Reply Message Mismatch}An attempt was made to reply to an LPC message, but the thread specified by the client ID in the message was not waiting on that message.
'Private Const ERROR_LOST_WRITEBEHIND_DATA As Long = 596 '  {Delayed Write Failed}Windows was unable to save all the data for the file %hs. The data has been lost.This error may be caused by a failure of your computer hardware or network connection. Please try to save this file elsewhere.
'Private Const ERROR_CLIENT_SERVER_PARAMETERS_INVALID As Long = 597 '  The parameter(s) passed to the server in the client/server shared memory window were invalid. Too much data may have been put in the shared memory window.
'Private Const ERROR_NOT_TINY_STREAM As Long = 598 '  The stream is not a tiny stream.
'Private Const ERROR_STACK_OVERFLOW_READ As Long = 599 '  The request must be handled by the stack overflow code.
'Private Const ERROR_CONVERT_TO_LARGE As Long = 600 '  Internal OFS status codes indicating how an allocation operation is handled. Either it is retried after the containing onode is moved or the extent stream is converted to a large stream.
'Private Const ERROR_FOUND_OUT_OF_SCOPE As Long = 601 '  The attempt to find the object found an object matching by ID on the volume but it is out of the scope of the handle used for the operation.
'Private Const ERROR_ALLOCATE_BUCKET As Long = 602 '  The bucket array must be grown. Retry transaction after doing so.
'Private Const ERROR_MARSHALL_OVERFLOW As Long = 603 '  The user/kernel marshalling buffer has overflowed.
'Private Const ERROR_INVALID_VARIANT As Long = 604 '  The supplied variant structure contains invalid data.
'Private Const ERROR_BAD_COMPRESSION_BUFFER As Long = 605 '  The specified buffer contains ill-formed data.
'Private Const ERROR_AUDIT_FAILED As Long = 606 '  {Audit Failed}An attempt to generate a security audit failed.
'Private Const ERROR_TIMER_RESOLUTION_NOT_SET As Long = 607 '  The timer resolution was not previously set by the current process.
'Private Const ERROR_INSUFFICIENT_LOGON_INFO As Long = 608 '  There is insufficient account information to log you on.
'Private Const ERROR_BAD_DLL_ENTRYPOINT As Long = 609 '  {Invalid DLL Entrypoint}The dynamic link library %hs is not written correctly. The stack pointer has been left in an inconsistent state.The entrypoint should be declared as WINAPI or STDCALL. Select YES to fail the DLL load. Select NO to continue execution. Selecting NO may cause the application to operate incorrectly.
'Private Const ERROR_BAD_SERVICE_ENTRYPOINT As Long = 610 '  {Invalid Service Callback Entrypoint}The %hs service is not written correctly. The stack pointer has been left in an inconsistent state.The callback entrypoint should be declared as WINAPI or STDCALL. Selecting OK will cause the service to continue operation. However, the service process may operate incorrectly.
'Private Const ERROR_IP_ADDRESS_CONFLICT1 As Long = 611 '  There is an IP address conflict with another system on the network
'Private Const ERROR_IP_ADDRESS_CONFLICT2 As Long = 612 '  There is an IP address conflict with another system on the network
'Private Const ERROR_REGISTRY_QUOTA_LIMIT As Long = 613 '  {Low On Registry Space}The system has reached the maximum size allowed for the system part of the registry. Additional storage requests will be ignored.
'Private Const ERROR_NO_CALLBACK_ACTIVE As Long = 614 '  A callback return system service cannot be executed when no callback is active.
'Private Const ERROR_PWD_TOO_SHORT As Long = 615 '  The password provided is too short to meet the policy of your user account.Please choose a longer password.
'Private Const ERROR_PWD_TOO_RECENT As Long = 616 '  The policy of your user account does not allow you to change passwords too frequently.This is done to prevent users from changing back to a familiar, but potentially discovered, password.If you feel your password has been compromised then please contact your administrator immediately to have a new one assigned.
'Private Const ERROR_PWD_HISTORY_CONFLICT As Long = 617 '  You have attempted to change your password to one that you have used in the past.The policy of your user account does not allow this. Please select a password that you have not previously used.
'Private Const ERROR_UNSUPPORTED_COMPRESSION As Long = 618 '  The specified compression format is unsupported.
'Private Const ERROR_INVALID_HW_PROFILE As Long = 619 '  The specified hardware profile configuration is invalid.
'Private Const ERROR_INVALID_PLUGPLAY_DEVICE_PATH As Long = 620 '  The specified Plug and Play registry device path is invalid.
'Private Const ERROR_QUOTA_LIST_INCONSISTENT As Long = 621 '  The specified quota list is internally inconsistent with its descriptor.
'Private Const ERROR_EVALUATION_EXPIRATION As Long = 622 '  {Windows Evaluation Notification}The evaluation period for this installation of Windows has expired. This system will shutdown in 1 hour. To restore access to this installation of Windows, please upgrade this installation using a licensed distribution of this product.
'Private Const ERROR_ILLEGAL_DLL_RELOCATION As Long = 623 '  {Illegal System DLL Relocation}The system DLL %hs was relocated in memory. The application will not run properly.The relocation occurred because the DLL %hs occupied an address range reserved for Windows system DLLs. The vendor supplying the DLL should be contacted for a new DLL.
'Private Const ERROR_DLL_INIT_FAILED_LOGOFF As Long = 624 '  {DLL Initialization Failed}The application failed to initialize because the window station is shutting down.
'Private Const ERROR_VALIDATE_CONTINUE As Long = 625 '  The validation process needs to continue on to the next step.
'Private Const ERROR_NO_MORE_MATCHES As Long = 626 '  There are no more matches for the current index enumeration.
'Private Const ERROR_RANGE_LIST_CONFLICT As Long = 627 '  The range could not be added to the range list because of a conflict.
'Private Const ERROR_SERVER_SID_MISMATCH As Long = 628 '  The server process is running under a SID different than that required by client.
'Private Const ERROR_CANT_ENABLE_DENY_ONLY As Long = 629 '  A group marked use for deny only cannot be enabled.
'Private Const ERROR_FLOAT_MULTIPLE_FAULTS As Long = 630 '  {EXCEPTION}Multiple floating point faults.
'Private Const ERROR_FLOAT_MULTIPLE_TRAPS As Long = 631 '  {EXCEPTION}Multiple floating point traps.
'Private Const ERROR_NOINTERFACE As Long = 632 '  The requested interface is not supported.
'Private Const ERROR_DRIVER_FAILED_SLEEP As Long = 633 '  {System Standby Failed}The driver %hs does not support standby mode. Updating this driver may allow the system to go to standby mode.
'Private Const ERROR_CORRUPT_SYSTEM_FILE As Long = 634 '  The system file %1 has become corrupt and has been replaced.
'Private Const ERROR_COMMITMENT_MINIMUM As Long = 635 '  {Virtual Memory Minimum Too Low}Your system is low on virtual memory. Windows is increasing the size of your virtual memory paging file.During this process, memory requests for some applications may be denied. For more information, see Help.
'Private Const ERROR_PNP_RESTART_ENUMERATION As Long = 636 '  A device was removed so enumeration must be restarted.
'Private Const ERROR_SYSTEM_IMAGE_BAD_SIGNATURE As Long = 637 '  {Fatal System Error}The system image %s is not properly signed.The file has been replaced with the signed file.The system has been shut down.
'Private Const ERROR_PNP_REBOOT_REQUIRED As Long = 638 '  Device will not start without a reboot.
'Private Const ERROR_INSUFFICIENT_POWER As Long = 639 '  There is not enough power to complete the requested operation.
'Private Const ERROR_MULTIPLE_FAULT_VIOLATION As Long = 640 '   ERROR_MULTIPLE_FAULT_VIOLATION
'Private Const ERROR_SYSTEM_SHUTDOWN As Long = 641 '  The system is in the process of shutting down.
'Private Const ERROR_PORT_NOT_SET As Long = 642 '  An attempt to remove a processes DebugPort was made, but a port was not already associated with the process.
'Private Const ERROR_DS_VERSION_CHECK_FAILURE As Long = 643 '  This version of Windows is not compatible with the behavior version of directory forest, domain or domain controller.
'Private Const ERROR_RANGE_NOT_FOUND As Long = 644 '  The specified range could not be found in the range list.
'Private Const ERROR_NOT_SAFE_MODE_DRIVER As Long = 646 '  The driver was not loaded because the system is booting into safe mode.
'Private Const ERROR_FAILED_DRIVER_ENTRY As Long = 647 '  The driver was not loaded because it failed its initialization call.
'Private Const ERROR_DEVICE_ENUMERATION_ERROR As Long = 648 '  The "%hs" encountered an error while applying power or reading the device configuration.This may be caused by a failure of your hardware or by a poor connection.
'Private Const ERROR_MOUNT_POINT_NOT_RESOLVED As Long = 649 '  The create operation failed because the name contained at least one mount point which resolves to a volume to which the specified device object is not attached.
'Private Const ERROR_INVALID_DEVICE_OBJECT_PARAMETER As Long = 650 '  The device object parameter is either not a valid device object or is not attached to the volume specified by the file name.
'Private Const ERROR_MCA_OCCURED As Long = 651 '  A Machine Check Error has occurred. Please check the system eventlog for additional information.
'Private Const ERROR_DRIVER_DATABASE_ERROR As Long = 652 '  There was error [%2] processing the driver database.
'Private Const ERROR_SYSTEM_HIVE_TOO_LARGE As Long = 653 '  System hive size has exceeded its limit.
'Private Const ERROR_DRIVER_FAILED_PRIOR_UNLOAD As Long = 654 '  The driver could not be loaded because a previous version of the driver is still in memory.
'Private Const ERROR_VOLSNAP_PREPARE_HIBERNATE As Long = 655 '  {Volume Shadow Copy Service}Please wait while the Volume Shadow Copy Service prepares volume %hs for hibernation.
'Private Const ERROR_HIBERNATION_FAILURE As Long = 656 '  The system has failed to hibernate (The error code is %hs). Hibernation will be disabled until the system is restarted.
'Private Const ERROR_PWD_TOO_LONG As Long = 657 '  The password provided is too long to meet the policy of your user account.Please choose a shorter password.
'Private Const ERROR_FILE_SYSTEM_LIMITATION As Long = 665 '  The requested operation could not be completed due to a file system limitation
'Private Const ERROR_ASSERTION_FAILURE As Long = 668 '  An assertion failure has occurred.
'Private Const ERROR_ACPI_ERROR As Long = 669 '  An error occurred in the ACPI subsystem.
'Private Const ERROR_WOW_ASSERTION As Long = 670 '  WOW Assertion Error.
'Private Const ERROR_PNP_BAD_MPS_TABLE As Long = 671 '  A device is missing in the system BIOS MPS table. This device will not be used.Please contact your system vendor for system BIOS update.
'Private Const ERROR_PNP_TRANSLATION_FAILED As Long = 672 '  A translator failed to translate resources.
'Private Const ERROR_PNP_IRQ_TRANSLATION_FAILED As Long = 673 '  A IRQ translator failed to translate resources.
'Private Const ERROR_PNP_INVALID_ID As Long = 674 '  Driver %2 returned invalid ID for a child device (%3).
'Private Const ERROR_WAKE_SYSTEM_DEBUGGER As Long = 675 '  {Kernel Debugger Awakened}the system debugger was awakened by an interrupt.
'Private Const ERROR_HANDLES_CLOSED As Long = 676 '  {Handles Closed}Handles to objects have been automatically closed as a result of the requested operation.
'Private Const ERROR_EXTRANEOUS_INFORMATION As Long = 677 '  {Too Much Information}The specified access control list (ACL) contained more information than was expected.
'Private Const ERROR_RXACT_COMMIT_NECESSARY As Long = 678 '  This warning level status indicates that the transaction state already exists for the registry sub-tree, but that a transaction commit was previously aborted.The commit has NOT been completed, but has not been rolled back either (so it may still be committed if desired).
'Private Const ERROR_MEDIA_CHECK As Long = 679 '  {Media Changed}The media may have changed.
'Private Const ERROR_GUID_SUBSTITUTION_MADE As Long = 680 '  {GUID Substitution}During the translation of a global identifier (GUID) to a Windows security ID (SID), no administratively-defined GUID prefix was found.A substitute prefix was used, which will not compromise system security. However, this may provide a more restrictive access than intended.
'Private Const ERROR_STOPPED_ON_SYMLINK As Long = 681 '  The create operation stopped after reaching a symbolic link
'Private Const ERROR_LONGJUMP As Long = 682 '  A long jump has been executed.
'Private Const ERROR_PLUGPLAY_QUERY_VETOED As Long = 683 '  The Plug and Play query operation was not successful.
'Private Const ERROR_UNWIND_CONSOLIDATE As Long = 684 '  A frame consolidation has been executed.
'Private Const ERROR_REGISTRY_HIVE_RECOVERED As Long = 685 '  {Registry Hive Recovered}Registry hive (file):%hswas corrupted and it has been recovered. Some data might have been lost.
'Private Const ERROR_DLL_MIGHT_BE_INSECURE As Long = 686 '  The application is attempting to run executable code from the module %hs. This may be insecure. An alternative, %hs, is available. Should the application use the secure module %hs?
'Private Const ERROR_DLL_MIGHT_BE_INCOMPATIBLE As Long = 687 '  The application is loading executable code from the module %hs. This is secure, but may be incompatible with previous releases of the operating system. An alternative, %hs, is available. Should the application use the secure module %hs?
'Private Const ERROR_DBG_EXCEPTION_NOT_HANDLED As Long = 688 '  Debugger did not handle the exception.
'Private Const ERROR_DBG_REPLY_LATER As Long = 689 '  Debugger will reply later.
'Private Const ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE As Long = 690 '  Debugger cannot provide handle.
'Private Const ERROR_DBG_TERMINATE_THREAD As Long = 691 '  Debugger terminated thread.
'Private Const ERROR_DBG_TERMINATE_PROCESS As Long = 692 '  Debugger terminated process.
'Private Const ERROR_DBG_CONTROL_C As Long = 693 '  Debugger got control C.
'Private Const ERROR_DBG_PRINTEXCEPTION_C As Long = 694 '  Debugger printed exception on control C.
'Private Const ERROR_DBG_RIPEXCEPTION As Long = 695 '  Debugger received RIP exception.
'Private Const ERROR_DBG_CONTROL_BREAK As Long = 696 '  Debugger received control break.
'Private Const ERROR_DBG_COMMAND_EXCEPTION As Long = 697 '  Debugger command communication exception.
'Private Const ERROR_OBJECT_NAME_EXISTS As Long = 698 '  {Object Exists}An attempt was made to create an object and the object name already existed.
'Private Const ERROR_THREAD_WAS_SUSPENDED As Long = 699 '  {Thread Suspended}A thread termination occurred while the thread was suspended. The thread was resumed, and termination proceeded.
'Private Const ERROR_IMAGE_NOT_AT_BASE As Long = 700 '  {Image Relocated}An image file could not be mapped at the address specified in the image file. Local fixups must be performed on this image.
'Private Const ERROR_RXACT_STATE_CREATED As Long = 701 '  This informational level status indicates that a specified registry sub-tree transaction state did not yet exist and had to be created.
'Private Const ERROR_SEGMENT_NOTIFICATION As Long = 702 '  {Segment Load}A virtual DOS machine (VDM) is loading, unloading, or moving an MS-DOS or Win16 program segment image.An exception is raised so a debugger can load, unload or track symbols and breakpoints within these 16-bit segments.
'Private Const ERROR_BAD_CURRENT_DIRECTORY As Long = 703 '  {Invalid Current Directory}The process cannot switch to the startup current directory %hs.Select OK to set current directory to %hs, or select CANCEL to exit.
'Private Const ERROR_FT_READ_RECOVERY_FROM_BACKUP As Long = 704 '  {Redundant Read}To satisfy a read request, the NT fault-tolerant file system successfully read the requested data from a redundant copy.This was done because the file system encountered a failure on a member of the fault-tolerant volume, but was unable to reassign the failing area of the device.
'Private Const ERROR_FT_WRITE_RECOVERY As Long = 705 '  {Redundant Write}To satisfy a write request, the NT fault-tolerant file system successfully wrote a redundant copy of the information.This was done because the file system encountered a failure on a member of the fault-tolerant volume, but was not able to reassign the failing area of the device.
'Private Const ERROR_IMAGE_MACHINE_TYPE_MISMATCH As Long = 706 '  {Machine Type Mismatch}The image file %hs is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load.
'Private Const ERROR_RECEIVE_PARTIAL As Long = 707 '  {Partial Data Received}The network transport returned partial data to its client. The remaining data will be sent later.
'Private Const ERROR_RECEIVE_EXPEDITED As Long = 708 '  {Expedited Data Received}The network transport returned data to its client that was marked as expedited by the remote system.
'Private Const ERROR_RECEIVE_PARTIAL_EXPEDITED As Long = 709 '  {Partial Expedited Data Received}The network transport returned partial data to its client and this data was marked as expedited by the remote system. The remaining data will be sent later.
'Private Const ERROR_EVENT_DONE As Long = 710 '  {TDI Event Done}The TDI indication has completed successfully.
'Private Const ERROR_EVENT_PENDING As Long = 711 '  {TDI Event Pending}The TDI indication has entered the pending state.
'Private Const ERROR_CHECKING_FILE_SYSTEM As Long = 712 '  Checking file system on %wZ
'Private Const ERROR_FATAL_APP_EXIT As Long = 713 '  {Fatal Application Exit}%hs
'Private Const ERROR_PREDEFINED_HANDLE As Long = 714 '  The specified registry key is referenced by a predefined handle.
'Private Const ERROR_WAS_UNLOCKED As Long = 715 '  {Page Unlocked}The page protection of a locked page was changed to 'No Access' and the page was unlocked from memory and from the process.
'Private Const ERROR_SERVICE_NOTIFICATION As Long = 716 '  %hs
'Private Const ERROR_WAS_LOCKED As Long = 717 '  {Page Locked}One of the pages to lock was already locked.
'Private Const ERROR_LOG_HARD_ERROR As Long = 718 '  Application popup: %1 : %2
'Private Const ERROR_ALREADY_WIN32 As Long = 719 '   ERROR_ALREADY_WIN32
'Private Const ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE As Long = 720 '  {Machine Type Mismatch}The image file %hs is valid, but is for a machine type other than the current machine.
'Private Const ERROR_NO_YIELD_PERFORMED As Long = 721 '  A yield execution was performed and no thread was available to run.
'Private Const ERROR_TIMER_RESUME_IGNORED As Long = 722 '  The resumable flag to a timer API was ignored.
'Private Const ERROR_ARBITRATION_UNHANDLED As Long = 723 '  The arbiter has deferred arbitration of these resources to its parent
'Private Const ERROR_CARDBUS_NOT_SUPPORTED As Long = 724 '  The inserted CardBus device cannot be started because of a configuration error on "%hs".
'Private Const ERROR_MP_PROCESSOR_MISMATCH As Long = 725 '  The CPUs in this multiprocessor system are not all the same revision level. To use all processors the operating system restricts itself to the features of the least capable processor in the system. Should problems occur with this system, contact the CPU manufacturer to see if this mix of processors is supported.
'Private Const ERROR_HIBERNATED As Long = 726 '  The system was put into hibernation.
'Private Const ERROR_RESUME_HIBERNATION As Long = 727 '  The system was resumed from hibernation.
'Private Const ERROR_FIRMWARE_UPDATED As Long = 728 '  Windows has detected that the system firmware (BIOS) was updated [previous firmware date = %2, current firmware date %3].
'Private Const ERROR_DRIVERS_LEAKING_LOCKED_PAGES As Long = 729 '  A device driver is leaking locked I/O pages causing system degradation. The system has automatically enabled tracking code in order to try and catch the culprit.
'Private Const ERROR_WAKE_SYSTEM As Long = 730 '  The system has awoken
'Private Const ERROR_WAIT_1 As Long = 731 '   ERROR_WAIT_1
'Private Const ERROR_WAIT_2 As Long = 732 '   ERROR_WAIT_2
'Private Const ERROR_WAIT_3 As Long = 733 '   ERROR_WAIT_3
'Private Const ERROR_WAIT_63 As Long = 734 '   ERROR_WAIT_63
'Private Const ERROR_ABANDONED_WAIT_0 As Long = 735 '   ERROR_ABANDONED_WAIT_0
'Private Const ERROR_ABANDONED_WAIT_63 As Long = 736 '   ERROR_ABANDONED_WAIT_63
'Private Const ERROR_USER_APC As Long = 737 '   ERROR_USER_APC
'Private Const ERROR_KERNEL_APC As Long = 738 '   ERROR_KERNEL_APC
'Private Const ERROR_ALERTED As Long = 739 '   ERROR_ALERTED
'Private Const ERROR_ELEVATION_REQUIRED As Long = 740 '  The requested operation requires elevation.
'Private Const ERROR_REPARSE As Long = 741 '  A reparse should be performed by the Object Manager since the name of the file resulted in a symbolic link.
'Private Const ERROR_OPLOCK_BREAK_IN_PROGRESS As Long = 742 '  An open/create operation completed while an oplock break is underway.
'Private Const ERROR_VOLUME_MOUNTED As Long = 743 '  A new volume has been mounted by a file system.
'Private Const ERROR_RXACT_COMMITTED As Long = 744 '  This success level status indicates that the transaction state already exists for the registry sub-tree, but that a transaction commit was previously aborted.The commit has now been completed.
'Private Const ERROR_NOTIFY_CLEANUP As Long = 745 '  This indicates that a notify change request has been completed due to closing the handle which made the notify change request.
'Private Const ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED As Long = 746 '  {Connect Failure on Primary Transport}An attempt was made to connect to the remote server %hs on the primary transport, but the connection failed.The computer WAS able to connect on a secondary transport.
'Private Const ERROR_PAGE_FAULT_TRANSITION As Long = 747 '  Page fault was a transition fault.
'Private Const ERROR_PAGE_FAULT_DEMAND_ZERO As Long = 748 '  Page fault was a demand zero fault.
'Private Const ERROR_PAGE_FAULT_COPY_ON_WRITE As Long = 749 '  Page fault was a demand zero fault.
'Private Const ERROR_PAGE_FAULT_GUARD_PAGE As Long = 750 '  Page fault was a demand zero fault.
'Private Const ERROR_PAGE_FAULT_PAGING_FILE As Long = 751 '  Page fault was satisfied by reading from a secondary storage device.
'Private Const ERROR_CACHE_PAGE_LOCKED As Long = 752 '  Cached page was locked during operation.
'Private Const ERROR_CRASH_DUMP As Long = 753 '  Crash dump exists in paging file.
'Private Const ERROR_BUFFER_ALL_ZEROS As Long = 754 '  Specified buffer contains all zeros.
'Private Const ERROR_REPARSE_OBJECT As Long = 755 '  A reparse should be performed by the Object Manager since the name of the file resulted in a symbolic link.
'Private Const ERROR_RESOURCE_REQUIREMENTS_CHANGED As Long = 756 '  The device has succeeded a query-stop and its resource requirements have changed.
'Private Const ERROR_TRANSLATION_COMPLETE As Long = 757 '  The translator has translated these resources into the global space and no further translations should be performed.
'Private Const ERROR_NOTHING_TO_TERMINATE As Long = 758 '  A process being terminated has no threads to terminate.
'Private Const ERROR_PROCESS_NOT_IN_JOB As Long = 759 '  The specified process is not part of a job.
'Private Const ERROR_PROCESS_IN_JOB As Long = 760 '  The specified process is part of a job.
'Private Const ERROR_VOLSNAP_HIBERNATE_READY As Long = 761 '  {Volume Shadow Copy Service}The system is now ready for hibernation.
'Private Const ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY As Long = 762 '  A file system or file system filter driver has successfully completed an FsFilter operation.
'Private Const ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED As Long = 763 '  The specified interrupt vector was already connected.
'Private Const ERROR_INTERRUPT_STILL_CONNECTED As Long = 764 '  The specified interrupt vector is still connected.
'Private Const ERROR_WAIT_FOR_OPLOCK As Long = 765 '  An operation is blocked waiting for an oplock.
'Private Const ERROR_DBG_EXCEPTION_HANDLED As Long = 766 '  Debugger handled exception
'Private Const ERROR_DBG_CONTINUE As Long = 767 '  Debugger continued
'Private Const ERROR_CALLBACK_POP_STACK As Long = 768 '  An exception occurred in a user mode callback and the kernel callback frame should be removed.
'Private Const ERROR_COMPRESSION_DISABLED As Long = 769 '  Compression is disabled for this volume.
'Private Const ERROR_CANTFETCHBACKWARDS As Long = 770 '  The data provider cannot fetch backwards through a result set.
'Private Const ERROR_CANTSCROLLBACKWARDS As Long = 771 '  The data provider cannot scroll backwards through a result set.
'Private Const ERROR_ROWSNOTRELEASED As Long = 772 '  The data provider requires that previously fetched data is released before asking for more data.
'Private Const ERROR_BAD_ACCESSOR_FLAGS As Long = 773 '  The data provider was not able to interpret the flags set for a column binding in an accessor.
'Private Const ERROR_ERRORS_ENCOUNTERED As Long = 774 '  One or more errors occurred while processing the request.
'Private Const ERROR_NOT_CAPABLE As Long = 775 '  The implementation is not capable of performing the request.
'Private Const ERROR_REQUEST_OUT_OF_SEQUENCE As Long = 776 '  The client of a component requested an operation which is not valid given the state of the component instance.
'Private Const ERROR_VERSION_PARSE_ERROR As Long = 777 '  A version number could not be parsed.
'Private Const ERROR_BADSTARTPOSITION As Long = 778 '  The iterator's start position is invalid.
'Private Const ERROR_MEMORY_HARDWARE As Long = 779 '  The hardware has reported an uncorrectable memory error.
'Private Const ERROR_DISK_REPAIR_DISABLED As Long = 780 '  The attempted operation required self healing to be enabled.
'Private Const ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE As Long = 781 '  The Desktop heap encountered an error while allocating session memory. There is more information in the system event log.
'Private Const ERROR_SYSTEM_POWERSTATE_TRANSITION As Long = 782 '  The system power state is transitioning from %2 to %3.
'Private Const ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION As Long = 783 '  The system power state is transitioning from %2 to %3 but could enter %4.
'Private Const ERROR_MCA_EXCEPTION As Long = 784 '  A thread is getting dispatched with MCA EXCEPTION because of MCA.
'Private Const ERROR_ACCESS_AUDIT_BY_POLICY As Long = 785 '  Access to %1 is monitored by policy rule %2.
'Private Const ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY As Long = 786 '  Access to %1 has been restricted by your Administrator by policy rule %2.
'Private Const ERROR_ABANDON_HIBERFILE As Long = 787 '  A valid hibernation file has been invalidated and should be abandoned.
'Private Const ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED As Long = 788 '  {Delayed Write Failed}Windows was unable to save all the data for the file %hs; the data has been lost.This error may be caused by network connectivity issues. Please try to save this file elsewhere.
'Private Const ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR As Long = 789 '  {Delayed Write Failed}Windows was unable to save all the data for the file %hs; the data has been lost.This error was returned by the server on which the file exists. Please try to save this file elsewhere.
'Private Const ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR As Long = 790 '  {Delayed Write Failed}Windows was unable to save all the data for the file %hs; the data has been lost.This error may be caused if the device has been removed or the media is write-protected.
'Private Const ERROR_BAD_MCFG_TABLE As Long = 791 '  The resources required for this device conflict with the MCFG table.
'Private Const ERROR_DISK_REPAIR_REDIRECTED As Long = 792 '  The volume repair could not be performed while it is online.Please schedule to take the volume offline so that it can be repaired.
'Private Const ERROR_DISK_REPAIR_UNSUCCESSFUL As Long = 793 '  The volume repair was not successful.
'Private Const ERROR_CORRUPT_LOG_OVERFULL As Long = 794 '  One of the volume corruption logs is full. Further corruptions that may be detected won't be logged.
'Private Const ERROR_CORRUPT_LOG_CORRUPTED As Long = 795 '  One of the volume corruption logs is internally corrupted and needs to be recreated. The volume may contain undetected corruptions and must be scanned.
'Private Const ERROR_CORRUPT_LOG_UNAVAILABLE As Long = 796 '  One of the volume corruption logs is unavailable for being operated on.
'Private Const ERROR_CORRUPT_LOG_DELETED_FULL As Long = 797 '  One of the volume corruption logs was deleted while still having corruption records in them. The volume contains detected corruptions and must be scanned.
'Private Const ERROR_CORRUPT_LOG_CLEARED As Long = 798 '  One of the volume corruption logs was cleared by chkdsk and no longer contains real corruptions.
'Private Const ERROR_ORPHAN_NAME_EXHAUSTED As Long = 799 '  Orphaned files exist on the volume but could not be recovered because no more new names could be created in the recovery directory. Files must be moved from the recovery directory.
'Private Const ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE As Long = 800 '  The oplock that was associated with this handle is now associated with a different handle.
'Private Const ERROR_CANNOT_GRANT_REQUESTED_OPLOCK As Long = 801 '  An oplock of the requested level cannot be granted.  An oplock of a lower level may be available.
'Private Const ERROR_CANNOT_BREAK_OPLOCK As Long = 802 '  The operation did not complete successfully because it would cause an oplock to be broken. The caller has requested that existing oplocks not be broken.
'Private Const ERROR_OPLOCK_HANDLE_CLOSED As Long = 803 '  The handle with which this oplock was associated has been closed.  The oplock is now broken.
'Private Const ERROR_NO_ACE_CONDITION As Long = 804 '  The specified access control entry (ACE) does not contain a condition.
'Private Const ERROR_INVALID_ACE_CONDITION As Long = 805 '  The specified access control entry (ACE) contains an invalid condition.
'Private Const ERROR_FILE_HANDLE_REVOKED As Long = 806 '  Access to the specified file handle has been revoked.
'Private Const ERROR_IMAGE_AT_DIFFERENT_BASE As Long = 807 '  {Image Relocated}An image file was mapped at a different address from the one specified in the image file but fixups will still be automatically performed on the image.
'Private Const ERROR_ENCRYPTED_IO_NOT_POSSIBLE As Long = 808 '  The read or write operation to an encrypted file could not be completed because the file has not been opened for data access.
'Private Const ERROR_EA_ACCESS_DENIED As Long = 994 '  Access to the extended attribute was denied.
'Private Const ERROR_OPERATION_ABORTED As Long = 995 '  The I/O operation has been aborted because of either a thread exit or an application request.
'Private Const ERROR_IO_INCOMPLETE As Long = 996 '  Overlapped I/O event is not in a signaled state.
'Private Const ERROR_IO_PENDING As Long = 997 '  Overlapped I/O operation is in progress.
'Private Const ERROR_NOACCESS As Long = 998 '  Invalid access to memory location.
'Private Const ERROR_SWAPERROR As Long = 999 '  Error performing inpage operation.
'Private Const ERROR_STACK_OVERFLOW As Long = 1001 '  Recursion too deep; the stack overflowed.
'Private Const ERROR_INVALID_MESSAGE As Long = 1002 '  The window cannot act on the sent message.
'Private Const ERROR_CAN_NOT_COMPLETE As Long = 1003 '  Cannot complete this function.
'Private Const ERROR_INVALID_FLAGS As Long = 1004 '  Invalid flags.
'Private Const ERROR_UNRECOGNIZED_VOLUME As Long = 1005 '  The volume does not contain a recognized file system.Please make sure that all required file system drivers are loaded and that the volume is not corrupted.
'Private Const ERROR_FILE_INVALID As Long = 1006 '  The volume for a file has been externally altered so that the opened file is no longer valid.
'Private Const ERROR_FULLSCREEN_MODE As Long = 1007 '  The requested operation cannot be performed in full-screen mode.
'Private Const ERROR_NO_TOKEN As Long = 1008 '  An attempt was made to reference a token that does not exist.
'Private Const ERROR_BADDB As Long = 1009 '  The configuration registry database is corrupt.
'Private Const ERROR_BADKEY As Long = 1010 '  The configuration registry key is invalid.
'Private Const ERROR_CANTOPEN As Long = 1011 '  The configuration registry key could not be opened.
'Private Const ERROR_CANTREAD As Long = 1012 '  The configuration registry key could not be read.
'Private Const ERROR_CANTWRITE As Long = 1013 '  The configuration registry key could not be written.
'Private Const ERROR_REGISTRY_RECOVERED As Long = 1014 '  One of the files in the registry database had to be recovered by use of a log or alternate copy. The recovery was successful.
'Private Const ERROR_REGISTRY_CORRUPT As Long = 1015 '  The registry is corrupted. The structure of one of the files containing registry data is corrupted, or the system's memory image of the file is corrupted, or the file could not be recovered because the alternate copy or log was absent or corrupted.
'Private Const ERROR_REGISTRY_IO_FAILED As Long = 1016 '  An I/O operation initiated by the registry failed unrecoverably. The registry could not read in, or write out, or flush, one of the files that contain the system's image of the registry.
'Private Const ERROR_NOT_REGISTRY_FILE As Long = 1017 '  The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format.
'Private Const ERROR_KEY_DELETED As Long = 1018 '  Illegal operation attempted on a registry key that has been marked for deletion.
'Private Const ERROR_NO_LOG_SPACE As Long = 1019 '  System could not allocate the required space in a registry log.
'Private Const ERROR_KEY_HAS_CHILDREN As Long = 1020 '  Cannot create a symbolic link in a registry key that already has subkeys or values.
'Private Const ERROR_CHILD_MUST_BE_VOLATILE As Long = 1021 '  Cannot create a stable subkey under a volatile parent key.
'Private Const ERROR_NOTIFY_ENUM_DIR As Long = 1022 '  A notify change request is being completed and the information is not being returned in the caller's buffer. The caller now needs to enumerate the files to find the changes.
'Private Const ERROR_DEPENDENT_SERVICES_RUNNING As Long = 1051 '  A stop control has been sent to a service that other running services are dependent on.
'Private Const ERROR_INVALID_SERVICE_CONTROL As Long = 1052 '  The requested control is not valid for this service.
'Private Const ERROR_SERVICE_REQUEST_TIMEOUT As Long = 1053 '  The service did not respond to the start or control request in a timely fashion.
'Private Const ERROR_SERVICE_NO_THREAD As Long = 1054 '  A thread could not be created for the service.
'Private Const ERROR_SERVICE_DATABASE_LOCKED As Long = 1055 '  The service database is locked.
'Private Const ERROR_SERVICE_ALREADY_RUNNING As Long = 1056 '  An instance of the service is already running.
'Private Const ERROR_INVALID_SERVICE_ACCOUNT As Long = 1057 '  The account name is invalid or does not exist, or the password is invalid for the account name specified.
'Private Const ERROR_SERVICE_DISABLED As Long = 1058 '  The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
'Private Const ERROR_CIRCULAR_DEPENDENCY As Long = 1059 '  Circular service dependency was specified.
'Private Const ERROR_SERVICE_DOES_NOT_EXIST As Long = 1060 '  The specified service does not exist as an installed service.
'Private Const ERROR_SERVICE_CANNOT_ACCEPT_CTRL As Long = 1061 '  The service cannot accept control messages at this time.
'Private Const ERROR_SERVICE_NOT_ACTIVE As Long = 1062 '  The service has not been started.
'Private Const ERROR_FAILED_SERVICE_CONTROLLER_CONNECT As Long = 1063 '  The service process could not connect to the service controller.
'Private Const ERROR_EXCEPTION_IN_SERVICE As Long = 1064 '  An exception occurred in the service when handling the control request.
'Private Const ERROR_DATABASE_DOES_NOT_EXIST As Long = 1065 '  The database specified does not exist.
'Private Const ERROR_SERVICE_SPECIFIC_ERROR As Long = 1066 '  The service has returned a service-specific error code.
'Private Const ERROR_PROCESS_ABORTED As Long = 1067 '  The process terminated unexpectedly.
'Private Const ERROR_SERVICE_DEPENDENCY_FAIL As Long = 1068 '  The dependency service or group failed to start.
'Private Const ERROR_SERVICE_LOGON_FAILED As Long = 1069 '  The service did not start due to a logon failure.
'Private Const ERROR_SERVICE_START_HANG As Long = 1070 '  After starting, the service hung in a start-pending state.
'Private Const ERROR_INVALID_SERVICE_LOCK As Long = 1071 '  The specified service database lock is invalid.
'Private Const ERROR_SERVICE_MARKED_FOR_DELETE As Long = 1072 '  The specified service has been marked for deletion.
'Private Const ERROR_SERVICE_EXISTS As Long = 1073 '  The specified service already exists.
'Private Const ERROR_ALREADY_RUNNING_LKG As Long = 1074 '  The system is currently running with the last-known-good configuration.
'Private Const ERROR_SERVICE_DEPENDENCY_DELETED As Long = 1075 '  The dependency service does not exist or has been marked for deletion.
'Private Const ERROR_BOOT_ALREADY_ACCEPTED As Long = 1076 '  The current boot has already been accepted for use as the last-known-good control set.
'Private Const ERROR_SERVICE_NEVER_STARTED As Long = 1077 '  No attempts to start the service have been made since the last boot.
'Private Const ERROR_DUPLICATE_SERVICE_NAME As Long = 1078 '  The name is already in use as either a service name or a service display name.
'Private Const ERROR_DIFFERENT_SERVICE_ACCOUNT As Long = 1079 '  The account specified for this service is different from the account specified for other services running in the same process.
'Private Const ERROR_CANNOT_DETECT_DRIVER_FAILURE As Long = 1080 '  Failure actions can only be set for Win32 services, not for drivers.
'Private Const ERROR_CANNOT_DETECT_PROCESS_ABORT As Long = 1081 '  This service runs in the same process as the service control manager.Therefore, the service control manager cannot take action if this service's process terminates unexpectedly.
'Private Const ERROR_NO_RECOVERY_PROGRAM As Long = 1082 '  No recovery program has been configured for this service.
'Private Const ERROR_SERVICE_NOT_IN_EXE As Long = 1083 '  The executable program that this service is configured to run in does not implement the service.
'Private Const ERROR_NOT_SAFEBOOT_SERVICE As Long = 1084 '  This service cannot be started in Safe Mode
'Private Const ERROR_END_OF_MEDIA As Long = 1100 '  The physical end of the tape has been reached.
'Private Const ERROR_FILEMARK_DETECTED As Long = 1101 '  A tape access reached a filemark.
'Private Const ERROR_BEGINNING_OF_MEDIA As Long = 1102 '  The beginning of the tape or a partition was encountered.
'Private Const ERROR_SETMARK_DETECTED As Long = 1103 '  A tape access reached the end of a set of files.
'Private Const ERROR_NO_DATA_DETECTED As Long = 1104 '  No more data is on the tape.
'Private Const ERROR_PARTITION_FAILURE As Long = 1105 '  Tape could not be partitioned.
'Private Const ERROR_INVALID_BLOCK_LENGTH As Long = 1106 '  When accessing a new tape of a multivolume partition, the current block size is incorrect.
'Private Const ERROR_DEVICE_NOT_PARTITIONED As Long = 1107 '  Tape partition information could not be found when loading a tape.
'Private Const ERROR_UNABLE_TO_LOCK_MEDIA As Long = 1108 '  Unable to lock the media eject mechanism.
'Private Const ERROR_UNABLE_TO_UNLOAD_MEDIA As Long = 1109 '  Unable to unload the media.
'Private Const ERROR_MEDIA_CHANGED As Long = 1110 '  The media in the drive may have changed.
'Private Const ERROR_BUS_RESET As Long = 1111 '  The I/O bus was reset.
'Private Const ERROR_NO_MEDIA_IN_DRIVE As Long = 1112 '  No media in drive.
'Private Const ERROR_NO_UNICODE_TRANSLATION As Long = 1113 '  No mapping for the Unicode character exists in the target multi-byte code page.
'Private Const ERROR_DLL_INIT_FAILED As Long = 1114 '  A dynamic link library (DLL) initialization routine failed.
'Private Const ERROR_SHUTDOWN_IN_PROGRESS As Long = 1115 '  A system shutdown is in progress.
'Private Const ERROR_NO_SHUTDOWN_IN_PROGRESS As Long = 1116 '  Unable to abort the system shutdown because no shutdown was in progress.
'Private Const ERROR_IO_DEVICE As Long = 1117 '  The request could not be performed because of an I/O device error.
'Private Const ERROR_SERIAL_NO_DEVICE As Long = 1118 '  No serial device was successfully initialized. The serial driver will unload.
'Private Const ERROR_IRQ_BUSY As Long = 1119 '  Unable to open a device that was sharing an interrupt request (IRQ) with other devices. At least one other device that uses that IRQ was already opened.
'Private Const ERROR_MORE_WRITES As Long = 1120 '  A serial I/O operation was completed by another write to the serial port.(The IOCTL_SERIAL_XOFF_COUNTER reached zero.)
'Private Const ERROR_COUNTER_TIMEOUT As Long = 1121 '  A serial I/O operation completed because the timeout period expired.(The IOCTL_SERIAL_XOFF_COUNTER did not reach zero.)
'Private Const ERROR_FLOPPY_ID_MARK_NOT_FOUND As Long = 1122 '  No ID address mark was found on the floppy disk.
'Private Const ERROR_FLOPPY_WRONG_CYLINDER As Long = 1123 '  Mismatch between the floppy disk sector ID field and the floppy disk controller track address.
'Private Const ERROR_FLOPPY_UNKNOWN_ERROR As Long = 1124 '  The floppy disk controller reported an error that is not recognized by the floppy disk driver.
'Private Const ERROR_FLOPPY_BAD_REGISTERS As Long = 1125 '  The floppy disk controller returned inconsistent results in its registers.
'Private Const ERROR_DISK_RECALIBRATE_FAILED As Long = 1126 '  While accessing the hard disk, a recalibrate operation failed, even after retries.
'Private Const ERROR_DISK_OPERATION_FAILED As Long = 1127 '  While accessing the hard disk, a disk operation failed even after retries.
'Private Const ERROR_DISK_RESET_FAILED As Long = 1128 '  While accessing the hard disk, a disk controller reset was needed, but even that failed.
'Private Const ERROR_EOM_OVERFLOW As Long = 1129 '  Physical end of tape encountered.
'Private Const ERROR_NOT_ENOUGH_SERVER_MEMORY As Long = 1130 '  Not enough server storage is available to process this command.
'Private Const ERROR_POSSIBLE_DEADLOCK As Long = 1131 '  A potential deadlock condition has been detected.
'Private Const ERROR_MAPPED_ALIGNMENT As Long = 1132 '  The base address or the file offset specified does not have the proper alignment.
'Private Const ERROR_SET_POWER_STATE_VETOED As Long = 1140 '  An attempt to change the system power state was vetoed by another application or driver.
'Private Const ERROR_SET_POWER_STATE_FAILED As Long = 1141 '  The system BIOS failed an attempt to change the system power state.
'Private Const ERROR_TOO_MANY_LINKS As Long = 1142 '  An attempt was made to create more links on a file than the file system supports.
'Private Const ERROR_OLD_WIN_VERSION As Long = 1150 '  The specified program requires a newer version of Windows.
'Private Const ERROR_APP_WRONG_OS As Long = 1151 '  The specified program is not a Windows or MS-DOS program.
'Private Const ERROR_SINGLE_INSTANCE_APP As Long = 1152 '  Cannot start more than one instance of the specified program.
'Private Const ERROR_RMODE_APP As Long = 1153 '  The specified program was written for an earlier version of Windows.
'Private Const ERROR_INVALID_DLL As Long = 1154 '  One of the library files needed to run this application is damaged.
'Private Const ERROR_NO_ASSOCIATION As Long = 1155 '  No application is associated with the specified file for this operation.
'Private Const ERROR_DDE_FAIL As Long = 1156 '  An error occurred in sending the command to the application.
'Private Const ERROR_DLL_NOT_FOUND As Long = 1157 '  One of the library files needed to run this application cannot be found.
'Private Const ERROR_NO_MORE_USER_HANDLES As Long = 1158 '  The current process has used all of its system allowance of handles for Window Manager objects.
'Private Const ERROR_MESSAGE_SYNC_ONLY As Long = 1159 '  The message can be used only with synchronous operations.
'Private Const ERROR_SOURCE_ELEMENT_EMPTY As Long = 1160 '  The indicated source element has no media.
'Private Const ERROR_DESTINATION_ELEMENT_FULL As Long = 1161 '  The indicated destination element already contains media.
'Private Const ERROR_ILLEGAL_ELEMENT_ADDRESS As Long = 1162 '  The indicated element does not exist.
'Private Const ERROR_MAGAZINE_NOT_PRESENT As Long = 1163 '  The indicated element is part of a magazine that is not present.
'Private Const ERROR_DEVICE_REINITIALIZATION_NEEDED As Long = 1164 '  The indicated device requires reinitialization due to hardware errors.
'Private Const ERROR_DEVICE_REQUIRES_CLEANING As Long = 1165 '  The device has indicated that cleaning is required before further operations are attempted.
'Private Const ERROR_DEVICE_DOOR_OPEN As Long = 1166 '  The device has indicated that its door is open.
'Private Const ERROR_DEVICE_NOT_CONNECTED As Long = 1167 '  The device is not connected.
'Private Const ERROR_NOT_FOUND As Long = 1168 '  Element not found.
'Private Const ERROR_NO_MATCH As Long = 1169 '  There was no match for the specified key in the index.
'Private Const ERROR_SET_NOT_FOUND As Long = 1170 '  The property set specified does not exist on the object.
'Private Const ERROR_POINT_NOT_FOUND As Long = 1171 '  The point passed to GetMouseMovePoints is not in the buffer.
'Private Const ERROR_NO_TRACKING_SERVICE As Long = 1172 '  The tracking (workstation) service is not running.
'Private Const ERROR_NO_VOLUME_ID As Long = 1173 '  The Volume ID could not be found.
'Private Const ERROR_UNABLE_TO_REMOVE_REPLACED As Long = 1175 '  Unable to remove the file to be replaced.
'Private Const ERROR_UNABLE_TO_MOVE_REPLACEMENT As Long = 1176 '  Unable to move the replacement file to the file to be replaced. The file to be replaced has retained its original name.
'Private Const ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 As Long = 1177 '  Unable to move the replacement file to the file to be replaced. The file to be replaced has been renamed using the backup name.
'Private Const ERROR_JOURNAL_DELETE_IN_PROGRESS As Long = 1178 '  The volume change journal is being deleted.
'Private Const ERROR_JOURNAL_NOT_ACTIVE As Long = 1179 '  The volume change journal is not active.
'Private Const ERROR_POTENTIAL_FILE_FOUND As Long = 1180 '  A file was found, but it may not be the correct file.
'Private Const ERROR_JOURNAL_ENTRY_DELETED As Long = 1181 '  The journal entry has been deleted from the journal.
'Private Const ERROR_SHUTDOWN_IS_SCHEDULED As Long = 1190 '  A system shutdown has already been scheduled.
'Private Const ERROR_SHUTDOWN_USERS_LOGGED_ON As Long = 1191 '  The system shutdown cannot be initiated because there are other users logged on to the computer.
'Private Const ERROR_BAD_DEVICE As Long = 1200 '  The specified device name is invalid.
'Private Const ERROR_CONNECTION_UNAVAIL As Long = 1201 '  The device is not currently connected but it is a remembered connection.
'Private Const ERROR_DEVICE_ALREADY_REMEMBERED As Long = 1202 '  The local device name has a remembered connection to another network resource.
'Private Const ERROR_NO_NET_OR_BAD_PATH As Long = 1203 '  The network path was either typed incorrectly, does not exist, or the network provider is not currently available. Please try retyping the path or contact your network administrator.
'Private Const ERROR_BAD_PROVIDER As Long = 1204 '  The specified network provider name is invalid.
'Private Const ERROR_CANNOT_OPEN_PROFILE As Long = 1205 '  Unable to open the network connection profile.
'Private Const ERROR_BAD_PROFILE As Long = 1206 '  The network connection profile is corrupted.
'Private Const ERROR_NOT_CONTAINER As Long = 1207 '  Cannot enumerate a noncontainer.
'Private Const ERROR_EXTENDED_ERROR As Long = 1208 '  An extended error has occurred.
'Private Const ERROR_INVALID_GROUPNAME As Long = 1209 '  The format of the specified group name is invalid.
'Private Const ERROR_INVALID_COMPUTERNAME As Long = 1210 '  The format of the specified computer name is invalid.
'Private Const ERROR_INVALID_EVENTNAME As Long = 1211 '  The format of the specified event name is invalid.
'Private Const ERROR_INVALID_DOMAINNAME As Long = 1212 '  The format of the specified domain name is invalid.
'Private Const ERROR_INVALID_SERVICENAME As Long = 1213 '  The format of the specified service name is invalid.
'Private Const ERROR_INVALID_NETNAME As Long = 1214 '  The format of the specified network name is invalid.
'Private Const ERROR_INVALID_SHARENAME As Long = 1215 '  The format of the specified share name is invalid.
'Private Const ERROR_INVALID_PASSWORDNAME As Long = 1216 '  The format of the specified password is invalid.
'Private Const ERROR_INVALID_MESSAGENAME As Long = 1217 '  The format of the specified message name is invalid.
'Private Const ERROR_INVALID_MESSAGEDEST As Long = 1218 '  The format of the specified message destination is invalid.
'Private Const ERROR_SESSION_CREDENTIAL_CONFLICT As Long = 1219 '  Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
'Private Const ERROR_REMOTE_SESSION_LIMIT_EXCEEDED As Long = 1220 '  An attempt was made to establish a session to a network server, but there are already too many sessions established to that server.
'Private Const ERROR_DUP_DOMAINNAME As Long = 1221 '  The workgroup or domain name is already in use by another computer on the network.
'Private Const ERROR_NO_NETWORK As Long = 1222 '  The network is not present or not started.
'Private Const ERROR_CANCELLED As Long = 1223 '  The operation was canceled by the user.
'Private Const ERROR_USER_MAPPED_FILE As Long = 1224 '  The requested operation cannot be performed on a file with a user-mapped section open.
'Private Const ERROR_CONNECTION_REFUSED As Long = 1225 '  The remote computer refused the network connection.
'Private Const ERROR_GRACEFUL_DISCONNECT As Long = 1226 '  The network connection was gracefully closed.
'Private Const ERROR_ADDRESS_ALREADY_ASSOCIATED As Long = 1227 '  The network transport endpoint already has an address associated with it.
'Private Const ERROR_ADDRESS_NOT_ASSOCIATED As Long = 1228 '  An address has not yet been associated with the network endpoint.
'Private Const ERROR_CONNECTION_INVALID As Long = 1229 '  An operation was attempted on a nonexistent network connection.
'Private Const ERROR_CONNECTION_ACTIVE As Long = 1230 '  An invalid operation was attempted on an active network connection.
'Private Const ERROR_NETWORK_UNREACHABLE As Long = 1231 '  The network location cannot be reached. For information about network troubleshooting, see Windows Help.
'Private Const ERROR_HOST_UNREACHABLE As Long = 1232 '  The network location cannot be reached. For information about network troubleshooting, see Windows Help.
'Private Const ERROR_PROTOCOL_UNREACHABLE As Long = 1233 '  The network location cannot be reached. For information about network troubleshooting, see Windows Help.
'Private Const ERROR_PORT_UNREACHABLE As Long = 1234 '  No service is operating at the destination network endpoint on the remote system.
'Private Const ERROR_REQUEST_ABORTED As Long = 1235 '  The request was aborted.
'Private Const ERROR_CONNECTION_ABORTED As Long = 1236 '  The network connection was aborted by the local system.
'Private Const ERROR_RETRY As Long = 1237 '  The operation could not be completed. A retry should be performed.
'Private Const ERROR_CONNECTION_COUNT_LIMIT As Long = 1238 '  A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached.
'Private Const ERROR_LOGIN_TIME_RESTRICTION As Long = 1239 '  Attempting to log in during an unauthorized time of day for this account.
'Private Const ERROR_LOGIN_WKSTA_RESTRICTION As Long = 1240 '  The account is not authorized to log in from this station.
'Private Const ERROR_INCORRECT_ADDRESS As Long = 1241 '  The network address could not be used for the operation requested.
'Private Const ERROR_ALREADY_REGISTERED As Long = 1242 '  The service is already registered.
'Private Const ERROR_SERVICE_NOT_FOUND As Long = 1243 '  The specified service does not exist.
'Private Const ERROR_NOT_AUTHENTICATED As Long = 1244 '  The operation being requested was not performed because the user has not been authenticated.
'Private Const ERROR_NOT_LOGGED_ON As Long = 1245 '  The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist.
'Private Const ERROR_CONTINUE As Long = 1246 '  Continue with work in progress.
'Private Const ERROR_ALREADY_INITIALIZED As Long = 1247 '  An attempt was made to perform an initialization operation when initialization has already been completed.
'Private Const ERROR_NO_MORE_DEVICES As Long = 1248 '  No more local devices.
'Private Const ERROR_NO_SUCH_SITE As Long = 1249 '  The specified site does not exist.
'Private Const ERROR_DOMAIN_CONTROLLER_EXISTS As Long = 1250 '  A domain controller with the specified name already exists.
'Private Const ERROR_ONLY_IF_CONNECTED As Long = 1251 '  This operation is supported only when you are connected to the server.
'Private Const ERROR_OVERRIDE_NOCHANGES As Long = 1252 '  The group policy framework should call the extension even if there are no changes.
'Private Const ERROR_BAD_USER_PROFILE As Long = 1253 '  The specified user does not have a valid profile.
'Private Const ERROR_NOT_SUPPORTED_ON_SBS As Long = 1254 '  This operation is not supported on a computer running Windows Server 2003 for Small Business Server
'Private Const ERROR_SERVER_SHUTDOWN_IN_PROGRESS As Long = 1255 '  The server machine is shutting down.
'Private Const ERROR_HOST_DOWN As Long = 1256 '  The remote system is not available. For information about network troubleshooting, see Windows Help.
'Private Const ERROR_NON_ACCOUNT_SID As Long = 1257 '  The security identifier provided is not from an account domain.
'Private Const ERROR_NON_DOMAIN_SID As Long = 1258 '  The security identifier provided does not have a domain component.
'Private Const ERROR_APPHELP_BLOCK As Long = 1259 '  AppHelp dialog canceled thus preventing the application from starting.
'Private Const ERROR_ACCESS_DISABLED_BY_POLICY As Long = 1260 '  This program is blocked by group policy. For more information, contact your system administrator.
'Private Const ERROR_REG_NAT_CONSUMPTION As Long = 1261 '  A program attempt to use an invalid register value. Normally caused by an uninitialized register. This error is Itanium specific.
'Private Const ERROR_CSCSHARE_OFFLINE As Long = 1262 '  The share is currently offline or does not exist.
'Private Const ERROR_PKINIT_FAILURE As Long = 1263 '  The Kerberos protocol encountered an error while validating the KDC certificate during smartcard logon. There is more information in the system event log.
'Private Const ERROR_SMARTCARD_SUBSYSTEM_FAILURE As Long = 1264 '  The Kerberos protocol encountered an error while attempting to utilize the smartcard subsystem.
'Private Const ERROR_DOWNGRADE_DETECTED As Long = 1265 '  The system cannot contact a domain controller to service the authentication request. Please try again later.
'Private Const ERROR_MACHINE_LOCKED As Long = 1271 '  The machine is locked and cannot be shut down without the force option.
'Private Const ERROR_CALLBACK_SUPPLIED_INVALID_DATA As Long = 1273 '  An application-defined callback gave invalid data when called.
'Private Const ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED As Long = 1274 '  The group policy framework should call the extension in the synchronous foreground policy refresh.
'Private Const ERROR_DRIVER_BLOCKED As Long = 1275 '  This driver has been blocked from loading
'Private Const ERROR_INVALID_IMPORT_OF_NON_DLL As Long = 1276 '  A dynamic link library (DLL) referenced a module that was neither a DLL nor the process's executable image.
'Private Const ERROR_ACCESS_DISABLED_WEBBLADE As Long = 1277 '  Windows cannot open this program since it has been disabled.
'Private Const ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER As Long = 1278 '  Windows cannot open this program because the license enforcement system has been tampered with or become corrupted.
'Private Const ERROR_RECOVERY_FAILURE As Long = 1279 '  A transaction recover failed.
'Private Const ERROR_ALREADY_FIBER As Long = 1280 '  The current thread has already been converted to a fiber.
'Private Const ERROR_ALREADY_THREAD As Long = 1281 '  The current thread has already been converted from a fiber.
'Private Const ERROR_STACK_BUFFER_OVERRUN As Long = 1282 '  The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.
'Private Const ERROR_PARAMETER_QUOTA_EXCEEDED As Long = 1283 '  Data present in one of the parameters is more than the function can operate on.
'Private Const ERROR_DEBUGGER_INACTIVE As Long = 1284 '  An attempt to do an operation on a debug object failed because the object is in the process of being deleted.
'Private Const ERROR_DELAY_LOAD_FAILED As Long = 1285 '  An attempt to delay-load a .dll or get a function address in a delay-loaded .dll failed.
'Private Const ERROR_VDM_DISALLOWED As Long = 1286 '  %1 is a 16-bit application. You do not have permissions to execute 16-bit applications. Check your permissions with your system administrator.
'Private Const ERROR_UNIDENTIFIED_ERROR As Long = 1287 '  Insufficient information exists to identify the cause of failure.
'Private Const ERROR_INVALID_CRUNTIME_PARAMETER As Long = 1288 '  The parameter passed to a C runtime function is incorrect.
'Private Const ERROR_BEYOND_VDL As Long = 1289 '  The operation occurred beyond the valid data length of the file.
'Private Const ERROR_INCOMPATIBLE_SERVICE_SID_TYPE As Long = 1290 '  The service start failed since one or more services in the same process have an incompatible service SID type setting. A service with restricted service SID type can only coexist in the same process with other services with a restricted SID type. If the service SID type for this service was just configured, the hosting process must be restarted in order to start this service.
'Private Const ERROR_DRIVER_PROCESS_TERMINATED As Long = 1291 '  The process hosting the driver for this device has been terminated.
'Private Const ERROR_IMPLEMENTATION_LIMIT As Long = 1292 '  An operation attempted to exceed an implementation-defined limit.
'Private Const ERROR_PROCESS_IS_PROTECTED As Long = 1293 '  Either the target process, or the target thread's containing process, is a protected process.
'Private Const ERROR_SERVICE_NOTIFY_CLIENT_LAGGING As Long = 1294 '  The service notification client is lagging too far behind the current state of services in the machine.
'Private Const ERROR_DISK_QUOTA_EXCEEDED As Long = 1295 '  The requested file operation failed because the storage quota was exceeded.To free up disk space, move files to a different location or delete unnecessary files. For more information, contact your system administrator.
'Private Const ERROR_CONTENT_BLOCKED As Long = 1296 '  The requested file operation failed because the storage policy blocks that type of file. For more information, contact your system administrator.
'Private Const ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE As Long = 1297 '  A privilege that the service requires to function properly does not exist in the service account configuration.You may use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view the service configuration and the account configuration.
'Private Const ERROR_APP_HANG As Long = 1298 '  A thread involved in this operation appears to be unresponsive.
'Private Const ERROR_INVALID_LABEL As Long = 1299 '  Indicates a particular Security ID may not be assigned as the label of an object.
'Private Const ERROR_NOT_ALL_ASSIGNED As Long = 1300 '  Not all privileges or groups referenced are assigned to the caller.
'Private Const ERROR_SOME_NOT_MAPPED As Long = 1301 '  Some mapping between account names and security IDs was not done.
'Private Const ERROR_NO_QUOTAS_FOR_ACCOUNT As Long = 1302 '  No system quota limits are specifically set for this account.
'Private Const ERROR_LOCAL_USER_SESSION_KEY As Long = 1303 '  No encryption key is available. A well-known encryption key was returned.
'Private Const ERROR_NULL_LM_PASSWORD As Long = 1304 '  The password is too complex to be converted to a LAN Manager password. The LAN Manager password returned is a NULL string.
'Private Const ERROR_UNKNOWN_REVISION As Long = 1305 '  The revision level is unknown.
'Private Const ERROR_REVISION_MISMATCH As Long = 1306 '  Indicates two revision levels are incompatible.
'Private Const ERROR_INVALID_OWNER As Long = 1307 '  This security ID may not be assigned as the owner of this object.
'Private Const ERROR_INVALID_PRIMARY_GROUP As Long = 1308 '  This security ID may not be assigned as the primary group of an object.
'Private Const ERROR_NO_IMPERSONATION_TOKEN As Long = 1309 '  An attempt has been made to operate on an impersonation token by a thread that is not currently impersonating a client.
'Private Const ERROR_CANT_DISABLE_MANDATORY As Long = 1310 '  The group may not be disabled.
'Private Const ERROR_NO_LOGON_SERVERS As Long = 1311 '  There are currently no logon servers available to service the logon request.
'Private Const ERROR_NO_SUCH_LOGON_SESSION As Long = 1312 '  A specified logon session does not exist. It may already have been terminated.
'Private Const ERROR_NO_SUCH_PRIVILEGE As Long = 1313 '  A specified privilege does not exist.
'Private Const ERROR_PRIVILEGE_NOT_HELD As Long = 1314 '  A required privilege is not held by the client.
'Private Const ERROR_INVALID_ACCOUNT_NAME As Long = 1315 '  The name provided is not a properly formed account name.
'Private Const ERROR_USER_EXISTS As Long = 1316 '  The specified account already exists.
'Private Const ERROR_NO_SUCH_USER As Long = 1317 '  The specified account does not exist.
'Private Const ERROR_GROUP_EXISTS As Long = 1318 '  The specified group already exists.
'Private Const ERROR_NO_SUCH_GROUP As Long = 1319 '  The specified group does not exist.
'Private Const ERROR_MEMBER_IN_GROUP As Long = 1320 '  Either the specified user account is already a member of the specified group, or the specified group cannot be deleted because it contains a member.
'Private Const ERROR_MEMBER_NOT_IN_GROUP As Long = 1321 '  The specified user account is not a member of the specified group account.
'Private Const ERROR_LAST_ADMIN As Long = 1322 '  This operation is disallowed as it could result in an administration account being disabled, deleted or unable to logon.
'Private Const ERROR_WRONG_PASSWORD As Long = 1323 '  Unable to update the password. The value provided as the current password is incorrect.
'Private Const ERROR_ILL_FORMED_PASSWORD As Long = 1324 '  Unable to update the password. The value provided for the new password contains values that are not allowed in passwords.
'Private Const ERROR_PASSWORD_RESTRICTION As Long = 1325 '  Unable to update the password. The value provided for the new password does not meet the length, complexity, or history requirements of the domain.
'Private Const ERROR_LOGON_FAILURE As Long = 1326 '  The user name or password is incorrect.
'Private Const ERROR_ACCOUNT_RESTRICTION As Long = 1327 '  Account restrictions are preventing this user from signing in. For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced.
'Private Const ERROR_INVALID_LOGON_HOURS As Long = 1328 '  Your account has time restrictions that keep you from signing in right now.
'Private Const ERROR_INVALID_WORKSTATION As Long = 1329 '  This user isn't allowed to sign in to this computer.
'Private Const ERROR_PASSWORD_EXPIRED As Long = 1330 '  The password for this account has expired.
'Private Const ERROR_ACCOUNT_DISABLED As Long = 1331 '  This user can't sign in because this account is currently disabled.
'Private Const ERROR_NONE_MAPPED As Long = 1332 '  No mapping between account names and security IDs was done.
'Private Const ERROR_TOO_MANY_LUIDS_REQUESTED As Long = 1333 '  Too many local user identifiers (LUIDs) were requested at one time.
'Private Const ERROR_LUIDS_EXHAUSTED As Long = 1334 '  No more local user identifiers (LUIDs) are available.
'Private Const ERROR_INVALID_SUB_AUTHORITY As Long = 1335 '  The subauthority part of a security ID is invalid for this particular use.
'Private Const ERROR_INVALID_ACL As Long = 1336 '  The access control list (ACL) structure is invalid.
'Private Const ERROR_INVALID_SID As Long = 1337 '  The security ID structure is invalid.
'Private Const ERROR_INVALID_SECURITY_DESCR As Long = 1338 '  The security descriptor structure is invalid.
'Private Const ERROR_BAD_INHERITANCE_ACL As Long = 1340 '  The inherited access control list (ACL) or access control entry (ACE) could not be built.
'Private Const ERROR_SERVER_DISABLED As Long = 1341 '  The server is currently disabled.
'Private Const ERROR_SERVER_NOT_DISABLED As Long = 1342 '  The server is currently enabled.
'Private Const ERROR_INVALID_ID_AUTHORITY As Long = 1343 '  The value provided was an invalid value for an identifier authority.
'Private Const ERROR_ALLOTTED_SPACE_EXCEEDED As Long = 1344 '  No more memory is available for security information updates.
'Private Const ERROR_INVALID_GROUP_ATTRIBUTES As Long = 1345 '  The specified attributes are invalid, or incompatible with the attributes for the group as a whole.
'Private Const ERROR_BAD_IMPERSONATION_LEVEL As Long = 1346 '  Either a required impersonation level was not provided, or the provided impersonation level is invalid.
'Private Const ERROR_CANT_OPEN_ANONYMOUS As Long = 1347 '  Cannot open an anonymous level security token.
'Private Const ERROR_BAD_VALIDATION_CLASS As Long = 1348 '  The validation information class requested was invalid.
'Private Const ERROR_BAD_TOKEN_TYPE As Long = 1349 '  The type of the token is inappropriate for its attempted use.
'Private Const ERROR_NO_SECURITY_ON_OBJECT As Long = 1350 '  Unable to perform a security operation on an object that has no associated security.
'Private Const ERROR_CANT_ACCESS_DOMAIN_INFO As Long = 1351 '  Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied.
'Private Const ERROR_INVALID_SERVER_STATE As Long = 1352 '  The security account manager (SAM) or local security authority (LSA) server was in the wrong state to perform the security operation.
'Private Const ERROR_INVALID_DOMAIN_STATE As Long = 1353 '  The domain was in the wrong state to perform the security operation.
'Private Const ERROR_INVALID_DOMAIN_ROLE As Long = 1354 '  This operation is only allowed for the Primary Domain Controller of the domain.
'Private Const ERROR_NO_SUCH_DOMAIN As Long = 1355 '  The specified domain either does not exist or could not be contacted.
'Private Const ERROR_DOMAIN_EXISTS As Long = 1356 '  The specified domain already exists.
'Private Const ERROR_DOMAIN_LIMIT_EXCEEDED As Long = 1357 '  An attempt was made to exceed the limit on the number of domains per server.
'Private Const ERROR_INTERNAL_DB_CORRUPTION As Long = 1358 '  Unable to complete the requested operation because of either a catastrophic media failure or a data structure corruption on the disk.
'Private Const ERROR_INTERNAL_ERROR As Long = 1359 '  An internal error occurred.
'Private Const ERROR_GENERIC_NOT_MAPPED As Long = 1360 '  Generic access types were contained in an access mask which should already be mapped to nongeneric types.
'Private Const ERROR_BAD_DESCRIPTOR_FORMAT As Long = 1361 '  A security descriptor is not in the right format (absolute or self-relative).
'Private Const ERROR_NOT_LOGON_PROCESS As Long = 1362 '  The requested action is restricted for use by logon processes only. The calling process has not registered as a logon process.
'Private Const ERROR_LOGON_SESSION_EXISTS As Long = 1363 '  Cannot start a new logon session with an ID that is already in use.
'Private Const ERROR_NO_SUCH_PACKAGE As Long = 1364 '  A specified authentication package is unknown.
'Private Const ERROR_BAD_LOGON_SESSION_STATE As Long = 1365 '  The logon session is not in a state that is consistent with the requested operation.
'Private Const ERROR_LOGON_SESSION_COLLISION As Long = 1366 '  The logon session ID is already in use.
'Private Const ERROR_INVALID_LOGON_TYPE As Long = 1367 '  A logon request contained an invalid logon type value.
'Private Const ERROR_CANNOT_IMPERSONATE As Long = 1368 '  Unable to impersonate using a named pipe until data has been read from that pipe.
'Private Const ERROR_RXACT_INVALID_STATE As Long = 1369 '  The transaction state of a registry subtree is incompatible with the requested operation.
'Private Const ERROR_RXACT_COMMIT_FAILURE As Long = 1370 '  An internal security database corruption has been encountered.
'Private Const ERROR_SPECIAL_ACCOUNT As Long = 1371 '  Cannot perform this operation on built-in accounts.
'Private Const ERROR_SPECIAL_GROUP As Long = 1372 '  Cannot perform this operation on this built-in special group.
'Private Const ERROR_SPECIAL_USER As Long = 1373 '  Cannot perform this operation on this built-in special user.
'Private Const ERROR_MEMBERS_PRIMARY_GROUP As Long = 1374 '  The user cannot be removed from a group because the group is currently the user's primary group.
'Private Const ERROR_TOKEN_ALREADY_IN_USE As Long = 1375 '  The token is already in use as a primary token.
'Private Const ERROR_NO_SUCH_ALIAS As Long = 1376 '  The specified local group does not exist.
'Private Const ERROR_MEMBER_NOT_IN_ALIAS As Long = 1377 '  The specified account name is not a member of the group.
'Private Const ERROR_MEMBER_IN_ALIAS As Long = 1378 '  The specified account name is already a member of the group.
'Private Const ERROR_ALIAS_EXISTS As Long = 1379 '  The specified local group already exists.
'Private Const ERROR_LOGON_NOT_GRANTED As Long = 1380 '  Logon failure: the user has not been granted the requested logon type at this computer.
'Private Const ERROR_TOO_MANY_SECRETS As Long = 1381 '  The maximum number of secrets that may be stored in a single system has been exceeded.
'Private Const ERROR_SECRET_TOO_LONG As Long = 1382 '  The length of a secret exceeds the maximum length allowed.
'Private Const ERROR_INTERNAL_DB_ERROR As Long = 1383 '  The local security authority database contains an internal inconsistency.
'Private Const ERROR_TOO_MANY_CONTEXT_IDS As Long = 1384 '  During a logon attempt, the user's security context accumulated too many security IDs.
'Private Const ERROR_LOGON_TYPE_NOT_GRANTED As Long = 1385 '  Logon failure: the user has not been granted the requested logon type at this computer.
'Private Const ERROR_NT_CROSS_ENCRYPTION_REQUIRED As Long = 1386 '  A cross-encrypted password is necessary to change a user password.
'Private Const ERROR_NO_SUCH_MEMBER As Long = 1387 '  A member could not be added to or removed from the local group because the member does not exist.
'Private Const ERROR_INVALID_MEMBER As Long = 1388 '  A new member could not be added to a local group because the member has the wrong account type.
'Private Const ERROR_TOO_MANY_SIDS As Long = 1389 '  Too many security IDs have been specified.
'Private Const ERROR_LM_CROSS_ENCRYPTION_REQUIRED As Long = 1390 '  A cross-encrypted password is necessary to change this user password.
'Private Const ERROR_NO_INHERITANCE As Long = 1391 '  Indicates an ACL contains no inheritable components.
'Private Const ERROR_FILE_CORRUPT As Long = 1392 '  The file or directory is corrupted and unreadable.
'Private Const ERROR_DISK_CORRUPT As Long = 1393 '  The disk structure is corrupted and unreadable.
'Private Const ERROR_NO_USER_SESSION_KEY As Long = 1394 '  There is no user session key for the specified logon session.
'Private Const ERROR_LICENSE_QUOTA_EXCEEDED As Long = 1395 '  The service being accessed is licensed for a particular number of connections. No more connections can be made to the service at this time because there are already as many connections as the service can accept.
'Private Const ERROR_WRONG_TARGET_NAME As Long = 1396 '  The target account name is incorrect.
'Private Const ERROR_MUTUAL_AUTH_FAILED As Long = 1397 '  Mutual Authentication failed. The server's password is out of date at the domain controller.
'Private Const ERROR_TIME_SKEW As Long = 1398 '  There is a time and/or date difference between the client and server.
'Private Const ERROR_CURRENT_DOMAIN_NOT_ALLOWED As Long = 1399 '  This operation cannot be performed on the current domain.
'Private Const ERROR_INVALID_WINDOW_HANDLE As Long = 1400 '  Invalid window handle.
'Private Const ERROR_INVALID_MENU_HANDLE As Long = 1401 '  Invalid menu handle.
'Private Const ERROR_INVALID_CURSOR_HANDLE As Long = 1402 '  Invalid cursor handle.
'Private Const ERROR_INVALID_ACCEL_HANDLE As Long = 1403 '  Invalid accelerator table handle.
'Private Const ERROR_INVALID_HOOK_HANDLE As Long = 1404 '  Invalid hook handle.
'Private Const ERROR_INVALID_DWP_HANDLE As Long = 1405 '  Invalid handle to a multiple-window position structure.
'Private Const ERROR_TLW_WITH_WSCHILD As Long = 1406 '  Cannot create a top-level child window.
'Private Const ERROR_CANNOT_FIND_WND_CLASS As Long = 1407 '  Cannot find window class.
'Private Const ERROR_WINDOW_OF_OTHER_THREAD As Long = 1408 '  Invalid window; it belongs to other thread.
'Private Const ERROR_HOTKEY_ALREADY_REGISTERED As Long = 1409 '  Hot key is already registered.
'Private Const ERROR_CLASS_ALREADY_EXISTS As Long = 1410 '  Class already exists.
'Private Const ERROR_CLASS_DOES_NOT_EXIST As Long = 1411 '  Class does not exist.
'Private Const ERROR_CLASS_HAS_WINDOWS As Long = 1412 '  Class still has open windows.
'Private Const ERROR_INVALID_INDEX As Long = 1413 '  Invalid index.
'Private Const ERROR_INVALID_ICON_HANDLE As Long = 1414 '  Invalid icon handle.
'Private Const ERROR_PRIVATE_DIALOG_INDEX As Long = 1415 '  Using private DIALOG window words.
'Private Const ERROR_LISTBOX_ID_NOT_FOUND As Long = 1416 '  The list box identifier was not found.
'Private Const ERROR_NO_WILDCARD_CHARACTERS As Long = 1417 '  No wildcards were found.
'Private Const ERROR_CLIPBOARD_NOT_OPEN As Long = 1418 '  Thread does not have a clipboard open.
'Private Const ERROR_HOTKEY_NOT_REGISTERED As Long = 1419 '  Hot key is not registered.
'Private Const ERROR_WINDOW_NOT_DIALOG As Long = 1420 '  The window is not a valid dialog window.
'Private Const ERROR_CONTROL_ID_NOT_FOUND As Long = 1421 '  Control ID not found.
'Private Const ERROR_INVALID_COMBOBOX_MESSAGE As Long = 1422 '  Invalid message for a combo box because it does not have an edit control.
'Private Const ERROR_WINDOW_NOT_COMBOBOX As Long = 1423 '  The window is not a combo box.
'Private Const ERROR_INVALID_EDIT_HEIGHT As Long = 1424 '  Height must be less than 256.
'Private Const ERROR_DC_NOT_FOUND As Long = 1425 '  Invalid device context (DC) handle.
'Private Const ERROR_INVALID_HOOK_FILTER As Long = 1426 '  Invalid hook procedure type.
'Private Const ERROR_INVALID_FILTER_PROC As Long = 1427 '  Invalid hook procedure.
'Private Const ERROR_HOOK_NEEDS_HMOD As Long = 1428 '  Cannot set nonlocal hook without a module handle.
'Private Const ERROR_GLOBAL_ONLY_HOOK As Long = 1429 '  This hook procedure can only be set globally.
'Private Const ERROR_JOURNAL_HOOK_SET As Long = 1430 '  The journal hook procedure is already installed.
'Private Const ERROR_HOOK_NOT_INSTALLED As Long = 1431 '  The hook procedure is not installed.
'Private Const ERROR_INVALID_LB_MESSAGE As Long = 1432 '  Invalid message for single-selection list box.
'Private Const ERROR_SETCOUNT_ON_BAD_LB As Long = 1433 '  LB_SETCOUNT sent to non-lazy list box.
'Private Const ERROR_LB_WITHOUT_TABSTOPS As Long = 1434 '  This list box does not support tab stops.
'Private Const ERROR_DESTROY_OBJECT_OF_OTHER_THREAD As Long = 1435 '  Cannot destroy object created by another thread.
'Private Const ERROR_CHILD_WINDOW_MENU As Long = 1436 '  Child windows cannot have menus.
'Private Const ERROR_NO_SYSTEM_MENU As Long = 1437 '  The window does not have a system menu.
'Private Const ERROR_INVALID_MSGBOX_STYLE As Long = 1438 '  Invalid message box style.
'Private Const ERROR_INVALID_SPI_VALUE As Long = 1439 '  Invalid system-wide (SPI_*) parameter.
'Private Const ERROR_SCREEN_ALREADY_LOCKED As Long = 1440 '  Screen already locked.
'Private Const ERROR_HWNDS_HAVE_DIFF_PARENT As Long = 1441 '  All handles to windows in a multiple-window position structure must have the same parent.
'Private Const ERROR_NOT_CHILD_WINDOW As Long = 1442 '  The window is not a child window.
'Private Const ERROR_INVALID_GW_COMMAND As Long = 1443 '  Invalid GW_* command.
'Private Const ERROR_INVALID_THREAD_ID As Long = 1444 '  Invalid thread identifier.
'Private Const ERROR_NON_MDICHILD_WINDOW As Long = 1445 '  Cannot process a message from a window that is not a multiple document interface (MDI) window.
'Private Const ERROR_POPUP_ALREADY_ACTIVE As Long = 1446 '  Popup menu already active.
'Private Const ERROR_NO_SCROLLBARS As Long = 1447 '  The window does not have scroll bars.
'Private Const ERROR_INVALID_SCROLLBAR_RANGE As Long = 1448 '  Scroll bar range cannot be greater than MAXLONG.
'Private Const ERROR_INVALID_SHOWWIN_COMMAND As Long = 1449 '  Cannot show or remove the window in the way specified.
'Private Const ERROR_NO_SYSTEM_RESOURCES As Long = 1450 '  Insufficient system resources exist to complete the requested service.
'Private Const ERROR_NONPAGED_SYSTEM_RESOURCES As Long = 1451 '  Insufficient system resources exist to complete the requested service.
'Private Const ERROR_PAGED_SYSTEM_RESOURCES As Long = 1452 '  Insufficient system resources exist to complete the requested service.
'Private Const ERROR_WORKING_SET_QUOTA As Long = 1453 '  Insufficient quota to complete the requested service.
'Private Const ERROR_PAGEFILE_QUOTA As Long = 1454 '  Insufficient quota to complete the requested service.
'Private Const ERROR_COMMITMENT_LIMIT As Long = 1455 '  The paging file is too small for this operation to complete.
'Private Const ERROR_MENU_ITEM_NOT_FOUND As Long = 1456 '  A menu item was not found.
'Private Const ERROR_INVALID_KEYBOARD_HANDLE As Long = 1457 '  Invalid keyboard layout handle.
'Private Const ERROR_HOOK_TYPE_NOT_ALLOWED As Long = 1458 '  Hook type not allowed.
'Private Const ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION As Long = 1459 '  This operation requires an interactive window station.
'Private Const ERROR_TIMEOUT As Long = 1460 '  This operation returned because the timeout period expired.
'Private Const ERROR_INVALID_MONITOR_HANDLE As Long = 1461 '  Invalid monitor handle.
'Private Const ERROR_INCORRECT_SIZE As Long = 1462 '  Incorrect size argument.
'Private Const ERROR_SYMLINK_CLASS_DISABLED As Long = 1463 '  The symbolic link cannot be followed because its type is disabled.
'Private Const ERROR_SYMLINK_NOT_SUPPORTED As Long = 1464 '  This application does not support the current operation on symbolic links.
'Private Const ERROR_XML_PARSE_ERROR As Long = 1465 '  Windows was unable to parse the requested XML data.
'Private Const ERROR_XMLDSIG_ERROR As Long = 1466 '  An error was encountered while processing an XML digital signature.
'Private Const ERROR_RESTART_APPLICATION As Long = 1467 '  This application must be restarted.
'Private Const ERROR_WRONG_COMPARTMENT As Long = 1468 '  The caller made the connection request in the wrong routing compartment.
'Private Const ERROR_AUTHIP_FAILURE As Long = 1469 '  There was an AuthIP failure when attempting to connect to the remote host.
'Private Const ERROR_NO_NVRAM_RESOURCES As Long = 1470 '  Insufficient NVRAM resources exist to complete the requested service. A reboot might be required.
'Private Const ERROR_NOT_GUI_PROCESS As Long = 1471 '  Unable to finish the requested operation because the specified process is not a GUI process.
'Private Const ERROR_EVENTLOG_FILE_CORRUPT As Long = 1500 '  The event log file is corrupted.
'Private Const ERROR_EVENTLOG_CANT_START As Long = 1501 '  No event log file could be opened, so the event logging service did not start.
'Private Const ERROR_LOG_FILE_FULL As Long = 1502 '  The event log file is full.
'Private Const ERROR_EVENTLOG_FILE_CHANGED As Long = 1503 '  The event log file has changed between read operations.
'Private Const ERROR_INVALID_TASK_NAME As Long = 1550 '  The specified task name is invalid.
'Private Const ERROR_INVALID_TASK_INDEX As Long = 1551 '  The specified task index is invalid.
'Private Const ERROR_THREAD_ALREADY_IN_TASK As Long = 1552 '  The specified thread is already joining a task.
'Private Const ERROR_INSTALL_SERVICE_FAILURE As Long = 1601 '  The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.
'Private Const ERROR_INSTALL_USEREXIT As Long = 1602 '  User cancelled installation.
'Private Const ERROR_INSTALL_FAILURE As Long = 1603 '  Fatal error during installation.
'Private Const ERROR_INSTALL_SUSPEND As Long = 1604 '  Installation suspended, incomplete.
'Private Const ERROR_UNKNOWN_PRODUCT As Long = 1605 '  This action is only valid for products that are currently installed.
'Private Const ERROR_UNKNOWN_FEATURE As Long = 1606 '  Feature ID not registered.
'Private Const ERROR_UNKNOWN_COMPONENT As Long = 1607 '  Component ID not registered.
'Private Const ERROR_UNKNOWN_PROPERTY As Long = 1608 '  Unknown property.
'Private Const ERROR_INVALID_HANDLE_STATE As Long = 1609 '  Handle is in an invalid state.
'Private Const ERROR_BAD_CONFIGURATION As Long = 1610 '  The configuration data for this product is corrupt. Contact your support personnel.
'Private Const ERROR_INDEX_ABSENT As Long = 1611 '  Component qualifier not present.
'Private Const ERROR_INSTALL_SOURCE_ABSENT As Long = 1612 '  The installation source for this product is not available. Verify that the source exists and that you can access it.
'Private Const ERROR_INSTALL_PACKAGE_VERSION As Long = 1613 '  This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
'Private Const ERROR_PRODUCT_UNINSTALLED As Long = 1614 '  Product is uninstalled.
'Private Const ERROR_BAD_QUERY_SYNTAX As Long = 1615 '  SQL query syntax invalid or unsupported.
'Private Const ERROR_INVALID_FIELD As Long = 1616 '  Record field does not exist.
'Private Const ERROR_DEVICE_REMOVED As Long = 1617 '  The device has been removed.
'Private Const ERROR_INSTALL_ALREADY_RUNNING As Long = 1618 '  Another installation is already in progress. Complete that installation before proceeding with this install.
'Private Const ERROR_INSTALL_PACKAGE_OPEN_FAILED As Long = 1619 '  This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.
'Private Const ERROR_INSTALL_PACKAGE_INVALID As Long = 1620 '  This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.
'Private Const ERROR_INSTALL_UI_FAILURE As Long = 1621 '  There was an error starting the Windows Installer service user interface. Contact your support personnel.
'Private Const ERROR_INSTALL_LOG_FAILURE As Long = 1622 '  Error opening installation log file. Verify that the specified log file location exists and that you can write to it.
'Private Const ERROR_INSTALL_LANGUAGE_UNSUPPORTED As Long = 1623 '  The language of this installation package is not supported by your system.
'Private Const ERROR_INSTALL_TRANSFORM_FAILURE As Long = 1624 '  Error applying transforms. Verify that the specified transform paths are valid.
'Private Const ERROR_INSTALL_PACKAGE_REJECTED As Long = 1625 '  This installation is forbidden by system policy. Contact your system administrator.
'Private Const ERROR_FUNCTION_NOT_CALLED As Long = 1626 '  Function could not be executed.
'Private Const ERROR_FUNCTION_FAILED As Long = 1627 '  Function failed during execution.
'Private Const ERROR_INVALID_TABLE As Long = 1628 '  Invalid or unknown table specified.
'Private Const ERROR_DATATYPE_MISMATCH As Long = 1629 '  Data supplied is of wrong type.
'Private Const ERROR_UNSUPPORTED_TYPE As Long = 1630 '  Data of this type is not supported.
'Private Const ERROR_CREATE_FAILED As Long = 1631 '  The Windows Installer service failed to start. Contact your support personnel.
'Private Const ERROR_INSTALL_TEMP_UNWRITABLE As Long = 1632 '  The Temp folder is on a drive that is full or is inaccessible. Free up space on the drive or verify that you have write permission on the Temp folder.
'Private Const ERROR_INSTALL_PLATFORM_UNSUPPORTED As Long = 1633 '  This installation package is not supported by this processor type. Contact your product vendor.
'Private Const ERROR_INSTALL_NOTUSED As Long = 1634 '  Component not used on this computer.
'Private Const ERROR_PATCH_PACKAGE_OPEN_FAILED As Long = 1635 '  This update package could not be opened. Verify that the update package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer update package.
'Private Const ERROR_PATCH_PACKAGE_INVALID As Long = 1636 '  This update package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer update package.
'Private Const ERROR_PATCH_PACKAGE_UNSUPPORTED As Long = 1637 '  This update package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
'Private Const ERROR_PRODUCT_VERSION As Long = 1638 '  Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
'Private Const ERROR_INVALID_COMMAND_LINE As Long = 1639 '  Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.
'Private Const ERROR_INSTALL_REMOTE_DISALLOWED As Long = 1640 '  Only administrators have permission to add, remove, or configure server software during a Terminal services remote session. If you want to install or configure software on the server, contact your network administrator.
'Private Const ERROR_SUCCESS_REBOOT_INITIATED As Long = 1641 '  The requested operation completed successfully. The system will be restarted so the changes can take effect.
'Private Const ERROR_PATCH_TARGET_NOT_FOUND As Long = 1642 '  The upgrade cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade.
'Private Const ERROR_PATCH_PACKAGE_REJECTED As Long = 1643 '  The update package is not permitted by software restriction policy.
'Private Const ERROR_INSTALL_TRANSFORM_REJECTED As Long = 1644 '  One or more customizations are not permitted by software restriction policy.
'Private Const ERROR_INSTALL_REMOTE_PROHIBITED As Long = 1645 '  The Windows Installer does not permit installation from a Remote Desktop Connection.
'Private Const ERROR_PATCH_REMOVAL_UNSUPPORTED As Long = 1646 '  Uninstallation of the update package is not supported.
'Private Const ERROR_UNKNOWN_PATCH As Long = 1647 '  The update is not applied to this product.
'Private Const ERROR_PATCH_NO_SEQUENCE As Long = 1648 '  No valid sequence could be found for the set of updates.
'Private Const ERROR_PATCH_REMOVAL_DISALLOWED As Long = 1649 '  Update removal was disallowed by policy.
'Private Const ERROR_INVALID_PATCH_XML As Long = 1650 '  The XML update data is invalid.
'Private Const ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT As Long = 1651 '  Windows Installer does not permit updating of managed advertised products. At least one feature of the product must be installed before applying the update.
'Private Const ERROR_INSTALL_SERVICE_SAFEBOOT As Long = 1652 '  The Windows Installer service is not accessible in Safe Mode. Please try again when your computer is not in Safe Mode or you can use System Restore to return your machine to a previous good state.
'Private Const ERROR_FAIL_FAST_EXCEPTION As Long = 1653 '  A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately.
'Private Const ERROR_INSTALL_REJECTED As Long = 1654 '  The app that you are trying to run is not supported on this version of Windows.
'Private Const ERROR_DYNAMIC_CODE_BLOCKED As Long = 1655 '  The operation was blocked as the process prohibits dynamic code generation.
'Private Const RPC_S_INVALID_STRING_BINDING As Long = 1700 '  The string binding is invalid.
'Private Const RPC_S_WRONG_KIND_OF_BINDING As Long = 1701 '  The binding handle is not the correct type.
'Private Const RPC_S_INVALID_BINDING As Long = 1702 '  The binding handle is invalid.
'Private Const RPC_S_PROTSEQ_NOT_SUPPORTED As Long = 1703 '  The RPC protocol sequence is not supported.
'Private Const RPC_S_INVALID_RPC_PROTSEQ As Long = 1704 '  The RPC protocol sequence is invalid.
'Private Const RPC_S_INVALID_STRING_UUID As Long = 1705 '  The string universal unique identifier (UUID) is invalid.
'Private Const RPC_S_INVALID_ENDPOINT_FORMAT As Long = 1706 '  The endpoint format is invalid.
'Private Const RPC_S_INVALID_NET_ADDR As Long = 1707 '  The network address is invalid.
'Private Const RPC_S_NO_ENDPOINT_FOUND As Long = 1708 '  No endpoint was found.
'Private Const RPC_S_INVALID_TIMEOUT As Long = 1709 '  The timeout value is invalid.
'Private Const RPC_S_OBJECT_NOT_FOUND As Long = 1710 '  The object universal unique identifier (UUID) was not found.
'Private Const RPC_S_ALREADY_REGISTERED As Long = 1711 '  The object universal unique identifier (UUID) has already been registered.
'Private Const RPC_S_TYPE_ALREADY_REGISTERED As Long = 1712 '  The type universal unique identifier (UUID) has already been registered.
'Private Const RPC_S_ALREADY_LISTENING As Long = 1713 '  The RPC server is already listening.
'Private Const RPC_S_NO_PROTSEQS_REGISTERED As Long = 1714 '  No protocol sequences have been registered.
'Private Const RPC_S_NOT_LISTENING As Long = 1715 '  The RPC server is not listening.
'Private Const RPC_S_UNKNOWN_MGR_TYPE As Long = 1716 '  The manager type is unknown.
'Private Const RPC_S_UNKNOWN_IF As Long = 1717 '  The interface is unknown.
'Private Const RPC_S_NO_BINDINGS As Long = 1718 '  There are no bindings.
'Private Const RPC_S_NO_PROTSEQS As Long = 1719 '  There are no protocol sequences.
'Private Const RPC_S_CANT_CREATE_ENDPOINT As Long = 1720 '  The endpoint cannot be created.
'Private Const RPC_S_OUT_OF_RESOURCES As Long = 1721 '  Not enough resources are available to complete this operation.
'Private Const RPC_S_SERVER_UNAVAILABLE As Long = 1722 '  The RPC server is unavailable.
'Private Const RPC_S_SERVER_TOO_BUSY As Long = 1723 '  The RPC server is too busy to complete this operation.
'Private Const RPC_S_INVALID_NETWORK_OPTIONS As Long = 1724 '  The network options are invalid.
'Private Const RPC_S_NO_CALL_ACTIVE As Long = 1725 '  There are no remote procedure calls active on this thread.
'Private Const RPC_S_CALL_FAILED As Long = 1726 '  The remote procedure call failed.
'Private Const RPC_S_CALL_FAILED_DNE As Long = 1727 '  The remote procedure call failed and did not execute.
'Private Const RPC_S_PROTOCOL_ERROR As Long = 1728 '  A remote procedure call (RPC) protocol error occurred.
'Private Const RPC_S_PROXY_ACCESS_DENIED As Long = 1729 '  Access to the HTTP proxy is denied.
'Private Const RPC_S_UNSUPPORTED_TRANS_SYN As Long = 1730 '  The transfer syntax is not supported by the RPC server.
'Private Const RPC_S_UNSUPPORTED_TYPE As Long = 1732 '  The universal unique identifier (UUID) type is not supported.
'Private Const RPC_S_INVALID_TAG As Long = 1733 '  The tag is invalid.
'Private Const RPC_S_INVALID_BOUND As Long = 1734 '  The array bounds are invalid.
'Private Const RPC_S_NO_ENTRY_NAME As Long = 1735 '  The binding does not contain an entry name.
'Private Const RPC_S_INVALID_NAME_SYNTAX As Long = 1736 '  The name syntax is invalid.
'Private Const RPC_S_UNSUPPORTED_NAME_SYNTAX As Long = 1737 '  The name syntax is not supported.
'Private Const RPC_S_UUID_NO_ADDRESS As Long = 1739 '  No network address is available to use to construct a universal unique identifier (UUID).
'Private Const RPC_S_DUPLICATE_ENDPOINT As Long = 1740 '  The endpoint is a duplicate.
'Private Const RPC_S_UNKNOWN_AUTHN_TYPE As Long = 1741 '  The authentication type is unknown.
'Private Const RPC_S_MAX_CALLS_TOO_SMALL As Long = 1742 '  The maximum number of calls is too small.
'Private Const RPC_S_STRING_TOO_LONG As Long = 1743 '  The string is too long.
'Private Const RPC_S_PROTSEQ_NOT_FOUND As Long = 1744 '  The RPC protocol sequence was not found.
'Private Const RPC_S_PROCNUM_OUT_OF_RANGE As Long = 1745 '  The procedure number is out of range.
'Private Const RPC_S_BINDING_HAS_NO_AUTH As Long = 1746 '  The binding does not contain any authentication information.
'Private Const RPC_S_UNKNOWN_AUTHN_SERVICE As Long = 1747 '  The authentication service is unknown.
'Private Const RPC_S_UNKNOWN_AUTHN_LEVEL As Long = 1748 '  The authentication level is unknown.
'Private Const RPC_S_INVALID_AUTH_IDENTITY As Long = 1749 '  The security context is invalid.
'Private Const RPC_S_UNKNOWN_AUTHZ_SERVICE As Long = 1750 '  The authorization service is unknown.
'Private Const EPT_S_INVALID_ENTRY As Long = 1751 '  The entry is invalid.
'Private Const EPT_S_CANT_PERFORM_OP As Long = 1752 '  The server endpoint cannot perform the operation.
'Private Const EPT_S_NOT_REGISTERED As Long = 1753 '  There are no more endpoints available from the endpoint mapper.
'Private Const RPC_S_NOTHING_TO_EXPORT As Long = 1754 '  No interfaces have been exported.
'Private Const RPC_S_INCOMPLETE_NAME As Long = 1755 '  The entry name is incomplete.
'Private Const RPC_S_INVALID_VERS_OPTION As Long = 1756 '  The version option is invalid.
'Private Const RPC_S_NO_MORE_MEMBERS As Long = 1757 '  There are no more members.
'Private Const RPC_S_NOT_ALL_OBJS_UNEXPORTED As Long = 1758 '  There is nothing to unexport.
'Private Const RPC_S_INTERFACE_NOT_FOUND As Long = 1759 '  The interface was not found.
'Private Const RPC_S_ENTRY_ALREADY_EXISTS As Long = 1760 '  The entry already exists.
'Private Const RPC_S_ENTRY_NOT_FOUND As Long = 1761 '  The entry is not found.
'Private Const RPC_S_NAME_SERVICE_UNAVAILABLE As Long = 1762 '  The name service is unavailable.
'Private Const RPC_S_INVALID_NAF_ID As Long = 1763 '  The network address family is invalid.
'Private Const RPC_S_CANNOT_SUPPORT As Long = 1764 '  The requested operation is not supported.
'Private Const RPC_S_NO_CONTEXT_AVAILABLE As Long = 1765 '  No security context is available to allow impersonation.
'Private Const RPC_S_INTERNAL_ERROR As Long = 1766 '  An internal error occurred in a remote procedure call (RPC).
'Private Const RPC_S_ZERO_DIVIDE As Long = 1767 '  The RPC server attempted an integer division by zero.
'Private Const RPC_S_ADDRESS_ERROR As Long = 1768 '  An addressing error occurred in the RPC server.
'Private Const RPC_S_FP_DIV_ZERO As Long = 1769 '  A floating-point operation at the RPC server caused a division by zero.
'Private Const RPC_S_FP_UNDERFLOW As Long = 1770 '  A floating-point underflow occurred at the RPC server.
'Private Const RPC_S_FP_OVERFLOW As Long = 1771 '  A floating-point overflow occurred at the RPC server.
'Private Const RPC_X_NO_MORE_ENTRIES As Long = 1772 '  The list of RPC servers available for the binding of auto handles has been exhausted.
'Private Const RPC_X_SS_CHAR_TRANS_OPEN_FAIL As Long = 1773 '  Unable to open the character translation table file.
'Private Const RPC_X_SS_CHAR_TRANS_SHORT_FILE As Long = 1774 '  The file containing the character translation table has fewer than 512 bytes.
'Private Const RPC_X_SS_IN_NULL_CONTEXT As Long = 1775 '  A null context handle was passed from the client to the host during a remote procedure call.
'Private Const RPC_X_SS_CONTEXT_DAMAGED As Long = 1777 '  The context handle changed during a remote procedure call.
'Private Const RPC_X_SS_HANDLES_MISMATCH As Long = 1778 '  The binding handles passed to a remote procedure call do not match.
'Private Const RPC_X_SS_CANNOT_GET_CALL_HANDLE As Long = 1779 '  The stub is unable to get the remote procedure call handle.
'Private Const RPC_X_NULL_REF_POINTER As Long = 1780 '  A null reference pointer was passed to the stub.
'Private Const RPC_X_ENUM_VALUE_OUT_OF_RANGE As Long = 1781 '  The enumeration value is out of range.
'Private Const RPC_X_BYTE_COUNT_TOO_SMALL As Long = 1782 '  The byte count is too small.
'Private Const RPC_X_BAD_STUB_DATA As Long = 1783 '  The stub received bad data.
'Private Const ERROR_INVALID_USER_BUFFER As Long = 1784 '  The supplied user buffer is not valid for the requested operation.
'Private Const ERROR_UNRECOGNIZED_MEDIA As Long = 1785 '  The disk media is not recognized. It may not be formatted.
'Private Const ERROR_NO_TRUST_LSA_SECRET As Long = 1786 '  The workstation does not have a trust secret.
'Private Const ERROR_NO_TRUST_SAM_ACCOUNT As Long = 1787 '  The security database on the server does not have a computer account for this workstation trust relationship.
'Private Const ERROR_TRUSTED_DOMAIN_FAILURE As Long = 1788 '  The trust relationship between the primary domain and the trusted domain failed.
'Private Const ERROR_TRUSTED_RELATIONSHIP_FAILURE As Long = 1789 '  The trust relationship between this workstation and the primary domain failed.
'Private Const ERROR_TRUST_FAILURE As Long = 1790 '  The network logon failed.
'Private Const RPC_S_CALL_IN_PROGRESS As Long = 1791 '  A remote procedure call is already in progress for this thread.
'Private Const ERROR_NETLOGON_NOT_STARTED As Long = 1792 '  An attempt was made to logon, but the network logon service was not started.
'Private Const ERROR_ACCOUNT_EXPIRED As Long = 1793 '  The user's account has expired.
'Private Const ERROR_REDIRECTOR_HAS_OPEN_HANDLES As Long = 1794 '  The redirector is in use and cannot be unloaded.
'Private Const ERROR_PRINTER_DRIVER_ALREADY_INSTALLED As Long = 1795 '  The specified printer driver is already installed.
'Private Const ERROR_UNKNOWN_PORT As Long = 1796 '  The specified port is unknown.
'Private Const ERROR_UNKNOWN_PRINTER_DRIVER As Long = 1797 '  The printer driver is unknown.
'Private Const ERROR_UNKNOWN_PRINTPROCESSOR As Long = 1798 '  The print processor is unknown.
'Private Const ERROR_INVALID_SEPARATOR_FILE As Long = 1799 '  The specified separator file is invalid.
'Private Const ERROR_INVALID_PRIORITY As Long = 1800 '  The specified priority is invalid.
'Private Const ERROR_INVALID_PRINTER_NAME As Long = 1801 '  The printer name is invalid.
'Private Const ERROR_PRINTER_ALREADY_EXISTS As Long = 1802 '  The printer already exists.
'Private Const ERROR_INVALID_PRINTER_COMMAND As Long = 1803 '  The printer command is invalid.
'Private Const ERROR_INVALID_DATATYPE As Long = 1804 '  The specified datatype is invalid.
'Private Const ERROR_INVALID_ENVIRONMENT As Long = 1805 '  The environment specified is invalid.
'Private Const RPC_S_NO_MORE_BINDINGS As Long = 1806 '  There are no more bindings.
'Private Const ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT As Long = 1807 '  The account used is an interdomain trust account. Use your global user account or local user account to access this server.
'Private Const ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT As Long = 1808 '  The account used is a computer account. Use your global user account or local user account to access this server.
'Private Const ERROR_NOLOGON_SERVER_TRUST_ACCOUNT As Long = 1809 '  The account used is a server trust account. Use your global user account or local user account to access this server.
'Private Const ERROR_DOMAIN_TRUST_INCONSISTENT As Long = 1810 '  The name or security ID (SID) of the domain specified is inconsistent with the trust information for that domain.
'Private Const ERROR_SERVER_HAS_OPEN_HANDLES As Long = 1811 '  The server is in use and cannot be unloaded.
'Private Const ERROR_RESOURCE_DATA_NOT_FOUND As Long = 1812 '  The specified image file did not contain a resource section.
'Private Const ERROR_RESOURCE_TYPE_NOT_FOUND As Long = 1813 '  The specified resource type cannot be found in the image file.
'Private Const ERROR_RESOURCE_NAME_NOT_FOUND As Long = 1814 '  The specified resource name cannot be found in the image file.
'Private Const ERROR_RESOURCE_LANG_NOT_FOUND As Long = 1815 '  The specified resource language ID cannot be found in the image file.
'Private Const ERROR_NOT_ENOUGH_QUOTA As Long = 1816 '  Not enough quota is available to process this command.
'Private Const RPC_S_NO_INTERFACES As Long = 1817 '  No interfaces have been registered.
'Private Const RPC_S_CALL_CANCELLED As Long = 1818 '  The remote procedure call was cancelled.
'Private Const RPC_S_BINDING_INCOMPLETE As Long = 1819 '  The binding handle does not contain all required information.
'Private Const RPC_S_COMM_FAILURE As Long = 1820 '  A communications failure occurred during a remote procedure call.
'Private Const RPC_S_UNSUPPORTED_AUTHN_LEVEL As Long = 1821 '  The requested authentication level is not supported.
'Private Const RPC_S_NO_PRINC_NAME As Long = 1822 '  No principal name registered.
'Private Const RPC_S_NOT_RPC_ERROR As Long = 1823 '  The error specified is not a valid Windows RPC error code.
'Private Const RPC_S_UUID_LOCAL_ONLY As Long = 1824 '  A UUID that is valid only on this computer has been allocated.
'Private Const RPC_S_SEC_PKG_ERROR As Long = 1825 '  A security package specific error occurred.
'Private Const RPC_S_NOT_CANCELLED As Long = 1826 '  Thread is not canceled.
'Private Const RPC_X_INVALID_ES_ACTION As Long = 1827 '  Invalid operation on the encoding/decoding handle.
'Private Const RPC_X_WRONG_ES_VERSION As Long = 1828 '  Incompatible version of the serializing package.
'Private Const RPC_X_WRONG_STUB_VERSION As Long = 1829 '  Incompatible version of the RPC stub.
'Private Const RPC_X_INVALID_PIPE_OBJECT As Long = 1830 '  The RPC pipe object is invalid or corrupted.
'Private Const RPC_X_WRONG_PIPE_ORDER As Long = 1831 '  An invalid operation was attempted on an RPC pipe object.
'Private Const RPC_X_WRONG_PIPE_VERSION As Long = 1832 '  Unsupported RPC pipe version.
'Private Const RPC_S_COOKIE_AUTH_FAILED As Long = 1833 '  HTTP proxy server rejected the connection because the cookie authentication failed.
'Private Const RPC_S_GROUP_MEMBER_NOT_FOUND As Long = 1898 '  The group member was not found.
'Private Const EPT_S_CANT_CREATE As Long = 1899 '  The endpoint mapper database entry could not be created.
'Private Const RPC_S_INVALID_OBJECT As Long = 1900 '  The object universal unique identifier (UUID) is the nil UUID.
'Private Const ERROR_INVALID_TIME As Long = 1901 '  The specified time is invalid.
'Private Const ERROR_INVALID_FORM_NAME As Long = 1902 '  The specified form name is invalid.
'Private Const ERROR_INVALID_FORM_SIZE As Long = 1903 '  The specified form size is invalid.
'Private Const ERROR_ALREADY_WAITING As Long = 1904 '  The specified printer handle is already being waited on
'Private Const ERROR_PRINTER_DELETED As Long = 1905 '  The specified printer has been deleted.
'Private Const ERROR_INVALID_PRINTER_STATE As Long = 1906 '  The state of the printer is invalid.
'Private Const ERROR_PASSWORD_MUST_CHANGE As Long = 1907 '  The user's password must be changed before signing in.
'Private Const ERROR_DOMAIN_CONTROLLER_NOT_FOUND As Long = 1908 '  Could not find the domain controller for this domain.
'Private Const ERROR_ACCOUNT_LOCKED_OUT As Long = 1909 '  The referenced account is currently locked out and may not be logged on to.
'Private Const OR_INVALID_OXID As Long = 1910 '  The object exporter specified was not found.
'Private Const OR_INVALID_OID As Long = 1911 '  The object specified was not found.
'Private Const OR_INVALID_SET As Long = 1912 '  The object resolver set specified was not found.
'Private Const RPC_S_SEND_INCOMPLETE As Long = 1913 '  Some data remains to be sent in the request buffer.
'Private Const RPC_S_INVALID_ASYNC_HANDLE As Long = 1914 '  Invalid asynchronous remote procedure call handle.
'Private Const RPC_S_INVALID_ASYNC_CALL As Long = 1915 '  Invalid asynchronous RPC call handle for this operation.
'Private Const RPC_X_PIPE_CLOSED As Long = 1916 '  The RPC pipe object has already been closed.
'Private Const RPC_X_PIPE_DISCIPLINE_ERROR As Long = 1917 '  The RPC call completed before all pipes were processed.
'Private Const RPC_X_PIPE_EMPTY As Long = 1918 '  No more data is available from the RPC pipe.
'Private Const ERROR_NO_SITENAME As Long = 1919 '  No site name is available for this machine.
'Private Const ERROR_CANT_ACCESS_FILE As Long = 1920 '  The file cannot be accessed by the system.
'Private Const ERROR_CANT_RESOLVE_FILENAME As Long = 1921 '  The name of the file cannot be resolved by the system.
'Private Const RPC_S_ENTRY_TYPE_MISMATCH As Long = 1922 '  The entry is not of the expected type.
'Private Const RPC_S_NOT_ALL_OBJS_EXPORTED As Long = 1923 '  Not all object UUIDs could be exported to the specified entry.
'Private Const RPC_S_INTERFACE_NOT_EXPORTED As Long = 1924 '  Interface could not be exported to the specified entry.
'Private Const RPC_S_PROFILE_NOT_ADDED As Long = 1925 '  The specified profile entry could not be added.
'Private Const RPC_S_PRF_ELT_NOT_ADDED As Long = 1926 '  The specified profile element could not be added.
'Private Const RPC_S_PRF_ELT_NOT_REMOVED As Long = 1927 '  The specified profile element could not be removed.
'Private Const RPC_S_GRP_ELT_NOT_ADDED As Long = 1928 '  The group element could not be added.
'Private Const RPC_S_GRP_ELT_NOT_REMOVED As Long = 1929 '  The group element could not be removed.
'Private Const ERROR_KM_DRIVER_BLOCKED As Long = 1930 '  The printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers.
'Private Const ERROR_CONTEXT_EXPIRED As Long = 1931 '  The context has expired and can no longer be used.
'Private Const ERROR_PER_USER_TRUST_QUOTA_EXCEEDED As Long = 1932 '  The current user's delegated trust creation quota has been exceeded.
'Private Const ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED As Long = 1933 '  The total delegated trust creation quota has been exceeded.
'Private Const ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED As Long = 1934 '  The current user's delegated trust deletion quota has been exceeded.
'Private Const ERROR_AUTHENTICATION_FIREWALL_FAILED As Long = 1935 '  The computer you are signing into is protected by an authentication firewall. The specified account is not allowed to authenticate to the computer.
'Private Const ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED As Long = 1936 '  Remote connections to the Print Spooler are blocked by a policy set on your machine.
'Private Const ERROR_NTLM_BLOCKED As Long = 1937 '  Authentication failed because NTLM authentication has been disabled.
'Private Const ERROR_PASSWORD_CHANGE_REQUIRED As Long = 1938 '  Logon Failure: EAS policy requires that the user change their password before this operation can be performed.
'Private Const ERROR_INVALID_PIXEL_FORMAT As Long = 2000 '  The pixel format is invalid.
'Private Const ERROR_BAD_DRIVER As Long = 2001 '  The specified driver is invalid.
'Private Const ERROR_INVALID_WINDOW_STYLE As Long = 2002 '  The window style or class attribute is invalid for this operation.
'Private Const ERROR_METAFILE_NOT_SUPPORTED As Long = 2003 '  The requested metafile operation is not supported.
'Private Const ERROR_TRANSFORM_NOT_SUPPORTED As Long = 2004 '  The requested transformation operation is not supported.
'Private Const ERROR_CLIPPING_NOT_SUPPORTED As Long = 2005 '  The requested clipping operation is not supported.
'Private Const ERROR_INVALID_CMM As Long = 2010 '  The specified color management module is invalid.
'Private Const ERROR_INVALID_PROFILE As Long = 2011 '  The specified color profile is invalid.
'Private Const ERROR_TAG_NOT_FOUND As Long = 2012 '  The specified tag was not found.
'Private Const ERROR_TAG_NOT_PRESENT As Long = 2013 '  A required tag is not present.
'Private Const ERROR_DUPLICATE_TAG As Long = 2014 '  The specified tag is already present.
'Private Const ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE As Long = 2015 '  The specified color profile is not associated with the specified device.
'Private Const ERROR_PROFILE_NOT_FOUND As Long = 2016 '  The specified color profile was not found.
'Private Const ERROR_INVALID_COLORSPACE As Long = 2017 '  The specified color space is invalid.
'Private Const ERROR_ICM_NOT_ENABLED As Long = 2018 '  Image Color Management is not enabled.
'Private Const ERROR_DELETING_ICM_XFORM As Long = 2019 '  There was an error while deleting the color transform.
'Private Const ERROR_INVALID_TRANSFORM As Long = 2020 '  The specified color transform is invalid.
'Private Const ERROR_COLORSPACE_MISMATCH As Long = 2021 '  The specified transform does not match the bitmap's color space.
'Private Const ERROR_INVALID_COLORINDEX As Long = 2022 '  The specified named color index is not present in the profile.
'Private Const ERROR_PROFILE_DOES_NOT_MATCH_DEVICE As Long = 2023 '  The specified profile is intended for a device of a different type than the specified device.
'Private Const ERROR_CONNECTED_OTHER_PASSWORD As Long = 2108 '  The network connection was made successfully, but the user had to be prompted for a password other than the one originally specified.
'Private Const ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT As Long = 2109 '  The network connection was made successfully using default credentials.
'Private Const ERROR_BAD_USERNAME As Long = 2202 '  The specified username is invalid.
'Private Const ERROR_NOT_CONNECTED As Long = 2250 '  This network connection does not exist.
'Private Const ERROR_OPEN_FILES As Long = 2401 '  This network connection has files open or requests pending.
'Private Const ERROR_ACTIVE_CONNECTIONS As Long = 2402 '  Active connections still exist.
'Private Const ERROR_DEVICE_IN_USE As Long = 2404 '  The device is in use by an active process and cannot be disconnected.
'Private Const ERROR_UNKNOWN_PRINT_MONITOR As Long = 3000 '  The specified print monitor is unknown.
'Private Const ERROR_PRINTER_DRIVER_IN_USE As Long = 3001 '  The specified printer driver is currently in use.
'Private Const ERROR_SPOOL_FILE_NOT_FOUND As Long = 3002 '  The spool file was not found.
'Private Const ERROR_SPL_NO_STARTDOC As Long = 3003 '  A StartDocPrinter call was not issued.
'Private Const ERROR_SPL_NO_ADDJOB As Long = 3004 '  An AddJob call was not issued.
'Private Const ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED As Long = 3005 '  The specified print processor has already been installed.
'Private Const ERROR_PRINT_MONITOR_ALREADY_INSTALLED As Long = 3006 '  The specified print monitor has already been installed.
'Private Const ERROR_INVALID_PRINT_MONITOR As Long = 3007 '  The specified print monitor does not have the required functions.
'Private Const ERROR_PRINT_MONITOR_IN_USE As Long = 3008 '  The specified print monitor is currently in use.
'Private Const ERROR_PRINTER_HAS_JOBS_QUEUED As Long = 3009 '  The requested operation is not allowed when there are jobs queued to the printer.
'Private Const ERROR_SUCCESS_REBOOT_REQUIRED As Long = 3010 '  The requested operation is successful. Changes will not be effective until the system is rebooted.
'Private Const ERROR_SUCCESS_RESTART_REQUIRED As Long = 3011 '  The requested operation is successful. Changes will not be effective until the service is restarted.
'Private Const ERROR_PRINTER_NOT_FOUND As Long = 3012 '  No printers were found.
'Private Const ERROR_PRINTER_DRIVER_WARNED As Long = 3013 '  The printer driver is known to be unreliable.
'Private Const ERROR_PRINTER_DRIVER_BLOCKED As Long = 3014 '  The printer driver is known to harm the system.
'Private Const ERROR_PRINTER_DRIVER_PACKAGE_IN_USE As Long = 3015 '  The specified printer driver package is currently in use.
'Private Const ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND As Long = 3016 '  Unable to find a core driver package that is required by the printer driver package.
'Private Const ERROR_FAIL_REBOOT_REQUIRED As Long = 3017 '  The requested operation failed. A system reboot is required to roll back changes made.
'Private Const ERROR_FAIL_REBOOT_INITIATED As Long = 3018 '  The requested operation failed. A system reboot has been initiated to roll back changes made.
'Private Const ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED As Long = 3019 '  The specified printer driver was not found on the system and needs to be downloaded.
'Private Const ERROR_PRINT_JOB_RESTART_REQUIRED As Long = 3020 '  The requested print job has failed to print. A print system update requires the job to be resubmitted.
'Private Const ERROR_INVALID_PRINTER_DRIVER_MANIFEST As Long = 3021 '  The printer driver does not contain a valid manifest, or contains too many manifests.
'Private Const ERROR_PRINTER_NOT_SHAREABLE As Long = 3022 '  The specified printer cannot be shared.
'Private Const ERROR_REQUEST_PAUSED As Long = 3050 '  The operation was paused.
'Private Const ERROR_IO_REISSUE_AS_CACHED As Long = 3950 '  Reissue the given operation as a cached IO operation
'Private Const ERROR_WINS_INTERNAL As Long = 4000 '  WINS encountered an error while processing the command.
'Private Const ERROR_CAN_NOT_DEL_LOCAL_WINS As Long = 4001 '  The local WINS cannot be deleted.
'Private Const ERROR_STATIC_INIT As Long = 4002 '  The importation from the file failed.
'Private Const ERROR_INC_BACKUP As Long = 4003 '  The backup failed. Was a full backup done before?
'Private Const ERROR_FULL_BACKUP As Long = 4004 '  The backup failed. Check the directory to which you are backing the database.
'Private Const ERROR_REC_NON_EXISTENT As Long = 4005 '  The name does not exist in the WINS database.
'Private Const ERROR_RPL_NOT_ALLOWED As Long = 4006 '  Replication with a nonconfigured partner is not allowed.
'Private Const PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED As Long = 4050 '  The version of the supplied content information is not supported.
'Private Const PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO As Long = 4051 '  The supplied content information is malformed.
'Private Const PEERDIST_ERROR_MISSING_DATA As Long = 4052 '  The requested data cannot be found in local or peer caches.
'Private Const PEERDIST_ERROR_NO_MORE As Long = 4053 '  No more data is available or required.
'Private Const PEERDIST_ERROR_NOT_INITIALIZED As Long = 4054 '  The supplied object has not been initialized.
'Private Const PEERDIST_ERROR_ALREADY_INITIALIZED As Long = 4055 '  The supplied object has already been initialized.
'Private Const PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS As Long = 4056 '  A shutdown operation is already in progress.
'Private Const PEERDIST_ERROR_INVALIDATED As Long = 4057 '  The supplied object has already been invalidated.
'Private Const PEERDIST_ERROR_ALREADY_EXISTS As Long = 4058 '  An element already exists and was not replaced.
'Private Const PEERDIST_ERROR_OPERATION_NOTFOUND As Long = 4059 '  Can not cancel the requested operation as it has already been completed.
'Private Const PEERDIST_ERROR_ALREADY_COMPLETED As Long = 4060 '  Can not perform the reqested operation because it has already been carried out.
'Private Const PEERDIST_ERROR_OUT_OF_BOUNDS As Long = 4061 '  An operation accessed data beyond the bounds of valid data.
'Private Const PEERDIST_ERROR_VERSION_UNSUPPORTED As Long = 4062 '  The requested version is not supported.
'Private Const PEERDIST_ERROR_INVALID_CONFIGURATION As Long = 4063 '  A configuration value is invalid.
'Private Const PEERDIST_ERROR_NOT_LICENSED As Long = 4064 '  The SKU is not licensed.
'Private Const PEERDIST_ERROR_SERVICE_UNAVAILABLE As Long = 4065 '  PeerDist Service is still initializing and will be available shortly.
'Private Const PEERDIST_ERROR_TRUST_FAILURE As Long = 4066 '  Communication with one or more computers will be temporarily blocked due to recent errors.
'Private Const ERROR_DHCP_ADDRESS_CONFLICT As Long = 4100 '  The DHCP client has obtained an IP address that is already in use on the network. The local interface will be disabled until the DHCP client can obtain a new address.
'Private Const ERROR_WMI_GUID_NOT_FOUND As Long = 4200 '  The GUID passed was not recognized as valid by a WMI data provider.
'Private Const ERROR_WMI_INSTANCE_NOT_FOUND As Long = 4201 '  The instance name passed was not recognized as valid by a WMI data provider.
'Private Const ERROR_WMI_ITEMID_NOT_FOUND As Long = 4202 '  The data item ID passed was not recognized as valid by a WMI data provider.
'Private Const ERROR_WMI_TRY_AGAIN As Long = 4203 '  The WMI request could not be completed and should be retried.
'Private Const ERROR_WMI_DP_NOT_FOUND As Long = 4204 '  The WMI data provider could not be located.
'Private Const ERROR_WMI_UNRESOLVED_INSTANCE_REF As Long = 4205 '  The WMI data provider references an instance set that has not been registered.
'Private Const ERROR_WMI_ALREADY_ENABLED As Long = 4206 '  The WMI data block or event notification has already been enabled.
'Private Const ERROR_WMI_GUID_DISCONNECTED As Long = 4207 '  The WMI data block is no longer available.
'Private Const ERROR_WMI_SERVER_UNAVAILABLE As Long = 4208 '  The WMI data service is not available.
'Private Const ERROR_WMI_DP_FAILED As Long = 4209 '  The WMI data provider failed to carry out the request.
'Private Const ERROR_WMI_INVALID_MOF As Long = 4210 '  The WMI MOF information is not valid.
'Private Const ERROR_WMI_INVALID_REGINFO As Long = 4211 '  The WMI registration information is not valid.
'Private Const ERROR_WMI_ALREADY_DISABLED As Long = 4212 '  The WMI data block or event notification has already been disabled.
'Private Const ERROR_WMI_READ_ONLY As Long = 4213 '  The WMI data item or data block is read only.
'Private Const ERROR_WMI_SET_FAILURE As Long = 4214 '  The WMI data item or data block could not be changed.
'Private Const ERROR_NOT_APPCONTAINER As Long = 4250 '  This operation is only valid in the context of an app container.
'Private Const ERROR_APPCONTAINER_REQUIRED As Long = 4251 '  This application can only run in the context of an app container.
'Private Const ERROR_NOT_SUPPORTED_IN_APPCONTAINER As Long = 4252 '  This functionality is not supported in the context of an app container.
'Private Const ERROR_INVALID_PACKAGE_SID_LENGTH As Long = 4253 '  The length of the SID supplied is not a valid length for app container SIDs.
'Private Const ERROR_INVALID_MEDIA As Long = 4300 '  The media identifier does not represent a valid medium.
'Private Const ERROR_INVALID_LIBRARY As Long = 4301 '  The library identifier does not represent a valid library.
'Private Const ERROR_INVALID_MEDIA_POOL As Long = 4302 '  The media pool identifier does not represent a valid media pool.
'Private Const ERROR_DRIVE_MEDIA_MISMATCH As Long = 4303 '  The drive and medium are not compatible or exist in different libraries.
'Private Const ERROR_MEDIA_OFFLINE As Long = 4304 '  The medium currently exists in an offline library and must be online to perform this operation.
'Private Const ERROR_LIBRARY_OFFLINE As Long = 4305 '  The operation cannot be performed on an offline library.
'Private Const ERROR_EMPTY As Long = 4306 '  The library, drive, or media pool is empty.
'Private Const ERROR_NOT_EMPTY As Long = 4307 '  The library, drive, or media pool must be empty to perform this operation.
'Private Const ERROR_MEDIA_UNAVAILABLE As Long = 4308 '  No media is currently available in this media pool or library.
'Private Const ERROR_RESOURCE_DISABLED As Long = 4309 '  A resource required for this operation is disabled.
'Private Const ERROR_INVALID_CLEANER As Long = 4310 '  The media identifier does not represent a valid cleaner.
'Private Const ERROR_UNABLE_TO_CLEAN As Long = 4311 '  The drive cannot be cleaned or does not support cleaning.
'Private Const ERROR_OBJECT_NOT_FOUND As Long = 4312 '  The object identifier does not represent a valid object.
'Private Const ERROR_DATABASE_FAILURE As Long = 4313 '  Unable to read from or write to the database.
'Private Const ERROR_DATABASE_FULL As Long = 4314 '  The database is full.
'Private Const ERROR_MEDIA_INCOMPATIBLE As Long = 4315 '  The medium is not compatible with the device or media pool.
'Private Const ERROR_RESOURCE_NOT_PRESENT As Long = 4316 '  The resource required for this operation does not exist.
'Private Const ERROR_INVALID_OPERATION As Long = 4317 '  The operation identifier is not valid.
'Private Const ERROR_MEDIA_NOT_AVAILABLE As Long = 4318 '  The media is not mounted or ready for use.
'Private Const ERROR_DEVICE_NOT_AVAILABLE As Long = 4319 '  The device is not ready for use.
'Private Const ERROR_REQUEST_REFUSED As Long = 4320 '  The operator or administrator has refused the request.
'Private Const ERROR_INVALID_DRIVE_OBJECT As Long = 4321 '  The drive identifier does not represent a valid drive.
'Private Const ERROR_LIBRARY_FULL As Long = 4322 '  Library is full. No slot is available for use.
'Private Const ERROR_MEDIUM_NOT_ACCESSIBLE As Long = 4323 '  The transport cannot access the medium.
'Private Const ERROR_UNABLE_TO_LOAD_MEDIUM As Long = 4324 '  Unable to load the medium into the drive.
'Private Const ERROR_UNABLE_TO_INVENTORY_DRIVE As Long = 4325 '  Unable to retrieve the drive status.
'Private Const ERROR_UNABLE_TO_INVENTORY_SLOT As Long = 4326 '  Unable to retrieve the slot status.
'Private Const ERROR_UNABLE_TO_INVENTORY_TRANSPORT As Long = 4327 '  Unable to retrieve status about the transport.
'Private Const ERROR_TRANSPORT_FULL As Long = 4328 '  Cannot use the transport because it is already in use.
'Private Const ERROR_CONTROLLING_IEPORT As Long = 4329 '  Unable to open or close the inject/eject port.
'Private Const ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA As Long = 4330 '  Unable to eject the medium because it is in a drive.
'Private Const ERROR_CLEANER_SLOT_SET As Long = 4331 '  A cleaner slot is already reserved.
'Private Const ERROR_CLEANER_SLOT_NOT_SET As Long = 4332 '  A cleaner slot is not reserved.
'Private Const ERROR_CLEANER_CARTRIDGE_SPENT As Long = 4333 '  The cleaner cartridge has performed the maximum number of drive cleanings.
'Private Const ERROR_UNEXPECTED_OMID As Long = 4334 '  Unexpected on-medium identifier.
'Private Const ERROR_CANT_DELETE_LAST_ITEM As Long = 4335 '  The last remaining item in this group or resource cannot be deleted.
'Private Const ERROR_MESSAGE_EXCEEDS_MAX_SIZE As Long = 4336 '  The message provided exceeds the maximum size allowed for this parameter.
'Private Const ERROR_VOLUME_CONTAINS_SYS_FILES As Long = 4337 '  The volume contains system or paging files.
'Private Const ERROR_INDIGENOUS_TYPE As Long = 4338 '  The media type cannot be removed from this library since at least one drive in the library reports it can support this media type.
'Private Const ERROR_NO_SUPPORTING_DRIVES As Long = 4339 '  This offline media cannot be mounted on this system since no enabled drives are present which can be used.
'Private Const ERROR_CLEANER_CARTRIDGE_INSTALLED As Long = 4340 '  A cleaner cartridge is present in the tape library.
'Private Const ERROR_IEPORT_FULL As Long = 4341 '  Cannot use the inject/eject port because it is not empty.
'Private Const ERROR_FILE_OFFLINE As Long = 4350 '  This file is currently not available for use on this computer.
'Private Const ERROR_REMOTE_STORAGE_NOT_ACTIVE As Long = 4351 '  The remote storage service is not operational at this time.
'Private Const ERROR_REMOTE_STORAGE_MEDIA_ERROR As Long = 4352 '  The remote storage service encountered a media error.
'Private Const ERROR_NOT_A_REPARSE_POINT As Long = 4390 '  The file or directory is not a reparse point.
'Private Const ERROR_REPARSE_ATTRIBUTE_CONFLICT As Long = 4391 '  The reparse point attribute cannot be set because it conflicts with an existing attribute.
'Private Const ERROR_INVALID_REPARSE_DATA As Long = 4392 '  The data present in the reparse point buffer is invalid.
'Private Const ERROR_REPARSE_TAG_INVALID As Long = 4393 '  The tag present in the reparse point buffer is invalid.
'Private Const ERROR_REPARSE_TAG_MISMATCH As Long = 4394 '  There is a mismatch between the tag specified in the request and the tag present in the reparse point.
'Private Const ERROR_APP_DATA_NOT_FOUND As Long = 4400 '  Fast Cache data not found.
'Private Const ERROR_APP_DATA_EXPIRED As Long = 4401 '  Fast Cache data expired.
'Private Const ERROR_APP_DATA_CORRUPT As Long = 4402 '  Fast Cache data corrupt.
'Private Const ERROR_APP_DATA_LIMIT_EXCEEDED As Long = 4403 '  Fast Cache data has exceeded its max size and cannot be updated.
'Private Const ERROR_APP_DATA_REBOOT_REQUIRED As Long = 4404 '  Fast Cache has been ReArmed and requires a reboot until it can be updated.
'Private Const ERROR_SECUREBOOT_ROLLBACK_DETECTED As Long = 4420 '  Secure Boot detected that rollback of protected data has been attempted.
'Private Const ERROR_SECUREBOOT_POLICY_VIOLATION As Long = 4421 '  The value is protected by Secure Boot policy and cannot be modified or deleted.
'Private Const ERROR_SECUREBOOT_INVALID_POLICY As Long = 4422 '  The Secure Boot policy is invalid.
'Private Const ERROR_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND As Long = 4423 '  A new Secure Boot policy did not contain the current publisher on its update list.
'Private Const ERROR_SECUREBOOT_POLICY_NOT_SIGNED As Long = 4424 '  The Secure Boot policy is either not signed or is signed by a non-trusted signer.
'Private Const ERROR_SECUREBOOT_NOT_ENABLED As Long = 4425 '  Secure Boot is not enabled on this machine.
'Private Const ERROR_SECUREBOOT_FILE_REPLACED As Long = 4426 '  Secure Boot requires that certain files and drivers are not replaced by other files or drivers.
'Private Const ERROR_OFFLOAD_READ_FLT_NOT_SUPPORTED As Long = 4440 '  The copy offload read operation is not supported by a filter.
'Private Const ERROR_OFFLOAD_WRITE_FLT_NOT_SUPPORTED As Long = 4441 '  The copy offload write operation is not supported by a filter.
'Private Const ERROR_OFFLOAD_READ_FILE_NOT_SUPPORTED As Long = 4442 '  The copy offload read operation is not supported for the file.
'Private Const ERROR_OFFLOAD_WRITE_FILE_NOT_SUPPORTED As Long = 4443 '  The copy offload write operation is not supported for the file.
'Private Const ERROR_VOLUME_NOT_SIS_ENABLED As Long = 4500 '  Single Instance Storage is not available on this volume.
'Private Const ERROR_DEPENDENT_RESOURCE_EXISTS As Long = 5001 '  The operation cannot be completed because other resources are dependent on this resource.
'Private Const ERROR_DEPENDENCY_NOT_FOUND As Long = 5002 '  The cluster resource dependency cannot be found.
'Private Const ERROR_DEPENDENCY_ALREADY_EXISTS As Long = 5003 '  The cluster resource cannot be made dependent on the specified resource because it is already dependent.
'Private Const ERROR_RESOURCE_NOT_ONLINE As Long = 5004 '  The cluster resource is not online.
'Private Const ERROR_HOST_NODE_NOT_AVAILABLE As Long = 5005 '  A cluster node is not available for this operation.
'Private Const ERROR_RESOURCE_NOT_AVAILABLE As Long = 5006 '  The cluster resource is not available.
'Private Const ERROR_RESOURCE_NOT_FOUND As Long = 5007 '  The cluster resource could not be found.
'Private Const ERROR_SHUTDOWN_CLUSTER As Long = 5008 '  The cluster is being shut down.
'Private Const ERROR_CANT_EVICT_ACTIVE_NODE As Long = 5009 '  A cluster node cannot be evicted from the cluster unless the node is down or it is the last node.
'Private Const ERROR_OBJECT_ALREADY_EXISTS As Long = 5010 '  The object already exists.
'Private Const ERROR_OBJECT_IN_LIST As Long = 5011 '  The object is already in the list.
'Private Const ERROR_GROUP_NOT_AVAILABLE As Long = 5012 '  The cluster group is not available for any new requests.
'Private Const ERROR_GROUP_NOT_FOUND As Long = 5013 '  The cluster group could not be found.
'Private Const ERROR_GROUP_NOT_ONLINE As Long = 5014 '  The operation could not be completed because the cluster group is not online.
'Private Const ERROR_HOST_NODE_NOT_RESOURCE_OWNER As Long = 5015 '  The operation failed because either the specified cluster node is not the owner of the resource, or the node is not a possible owner of the resource.
'Private Const ERROR_HOST_NODE_NOT_GROUP_OWNER As Long = 5016 '  The operation failed because either the specified cluster node is not the owner of the group, or the node is not a possible owner of the group.
'Private Const ERROR_RESMON_CREATE_FAILED As Long = 5017 '  The cluster resource could not be created in the specified resource monitor.
'Private Const ERROR_RESMON_ONLINE_FAILED As Long = 5018 '  The cluster resource could not be brought online by the resource monitor.
'Private Const ERROR_RESOURCE_ONLINE As Long = 5019 '  The operation could not be completed because the cluster resource is online.
'Private Const ERROR_QUORUM_RESOURCE As Long = 5020 '  The cluster resource could not be deleted or brought offline because it is the quorum resource.
'Private Const ERROR_NOT_QUORUM_CAPABLE As Long = 5021 '  The cluster could not make the specified resource a quorum resource because it is not capable of being a quorum resource.
'Private Const ERROR_CLUSTER_SHUTTING_DOWN As Long = 5022 '  The cluster software is shutting down.
'Private Const ERROR_INVALID_STATE As Long = 5023 '  The group or resource is not in the correct state to perform the requested operation.
'Private Const ERROR_RESOURCE_PROPERTIES_STORED As Long = 5024 '  The properties were stored but not all changes will take effect until the next time the resource is brought online.
'Private Const ERROR_NOT_QUORUM_CLASS As Long = 5025 '  The cluster could not make the specified resource a quorum resource because it does not belong to a shared storage class.
'Private Const ERROR_CORE_RESOURCE As Long = 5026 '  The cluster resource could not be deleted since it is a core resource.
'Private Const ERROR_QUORUM_RESOURCE_ONLINE_FAILED As Long = 5027 '  The quorum resource failed to come online.
'Private Const ERROR_QUORUMLOG_OPEN_FAILED As Long = 5028 '  The quorum log could not be created or mounted successfully.
'Private Const ERROR_CLUSTERLOG_CORRUPT As Long = 5029 '  The cluster log is corrupt.
'Private Const ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE As Long = 5030 '  The record could not be written to the cluster log since it exceeds the maximum size.
'Private Const ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE As Long = 5031 '  The cluster log exceeds its maximum size.
'Private Const ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND As Long = 5032 '  No checkpoint record was found in the cluster log.
'Private Const ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE As Long = 5033 '  The minimum required disk space needed for logging is not available.
'Private Const ERROR_QUORUM_OWNER_ALIVE As Long = 5034 '  The cluster node failed to take control of the quorum resource because the resource is owned by another active node.
'Private Const ERROR_NETWORK_NOT_AVAILABLE As Long = 5035 '  A cluster network is not available for this operation.
'Private Const ERROR_NODE_NOT_AVAILABLE As Long = 5036 '  A cluster node is not available for this operation.
'Private Const ERROR_ALL_NODES_NOT_AVAILABLE As Long = 5037 '  All cluster nodes must be running to perform this operation.
'Private Const ERROR_RESOURCE_FAILED As Long = 5038 '  A cluster resource failed.
'Private Const ERROR_CLUSTER_INVALID_NODE As Long = 5039 '  The cluster node is not valid.
'Private Const ERROR_CLUSTER_NODE_EXISTS As Long = 5040 '  The cluster node already exists.
'Private Const ERROR_CLUSTER_JOIN_IN_PROGRESS As Long = 5041 '  A node is in the process of joining the cluster.
'Private Const ERROR_CLUSTER_NODE_NOT_FOUND As Long = 5042 '  The cluster node was not found.
'Private Const ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND As Long = 5043 '  The cluster local node information was not found.
'Private Const ERROR_CLUSTER_NETWORK_EXISTS As Long = 5044 '  The cluster network already exists.
'Private Const ERROR_CLUSTER_NETWORK_NOT_FOUND As Long = 5045 '  The cluster network was not found.
'Private Const ERROR_CLUSTER_NETINTERFACE_EXISTS As Long = 5046 '  The cluster network interface already exists.
'Private Const ERROR_CLUSTER_NETINTERFACE_NOT_FOUND As Long = 5047 '  The cluster network interface was not found.
'Private Const ERROR_CLUSTER_INVALID_REQUEST As Long = 5048 '  The cluster request is not valid for this object.
'Private Const ERROR_CLUSTER_INVALID_NETWORK_PROVIDER As Long = 5049 '  The cluster network provider is not valid.
'Private Const ERROR_CLUSTER_NODE_DOWN As Long = 5050 '  The cluster node is down.
'Private Const ERROR_CLUSTER_NODE_UNREACHABLE As Long = 5051 '  The cluster node is not reachable.
'Private Const ERROR_CLUSTER_NODE_NOT_MEMBER As Long = 5052 '  The cluster node is not a member of the cluster.
'Private Const ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS As Long = 5053 '  A cluster join operation is not in progress.
'Private Const ERROR_CLUSTER_INVALID_NETWORK As Long = 5054 '  The cluster network is not valid.
'Private Const ERROR_CLUSTER_NODE_UP As Long = 5056 '  The cluster node is up.
'Private Const ERROR_CLUSTER_IPADDR_IN_USE As Long = 5057 '  The cluster IP address is already in use.
'Private Const ERROR_CLUSTER_NODE_NOT_PAUSED As Long = 5058 '  The cluster node is not paused.
'Private Const ERROR_CLUSTER_NO_SECURITY_CONTEXT As Long = 5059 '  No cluster security context is available.
'Private Const ERROR_CLUSTER_NETWORK_NOT_INTERNAL As Long = 5060 '  The cluster network is not configured for internal cluster communication.
'Private Const ERROR_CLUSTER_NODE_ALREADY_UP As Long = 5061 '  The cluster node is already up.
'Private Const ERROR_CLUSTER_NODE_ALREADY_DOWN As Long = 5062 '  The cluster node is already down.
'Private Const ERROR_CLUSTER_NETWORK_ALREADY_ONLINE As Long = 5063 '  The cluster network is already online.
'Private Const ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE As Long = 5064 '  The cluster network is already offline.
'Private Const ERROR_CLUSTER_NODE_ALREADY_MEMBER As Long = 5065 '  The cluster node is already a member of the cluster.
'Private Const ERROR_CLUSTER_LAST_INTERNAL_NETWORK As Long = 5066 '  The cluster network is the only one configured for internal cluster communication between two or more active cluster nodes. The internal communication capability cannot be removed from the network.
'Private Const ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS As Long = 5067 '  One or more cluster resources depend on the network to provide service to clients. The client access capability cannot be removed from the network.
'Private Const ERROR_INVALID_OPERATION_ON_QUORUM As Long = 5068 '  This operation cannot currently be performed on the cluster group containing the quorum resource.
'Private Const ERROR_DEPENDENCY_NOT_ALLOWED As Long = 5069 '  The cluster quorum resource is not allowed to have any dependencies.
'Private Const ERROR_CLUSTER_NODE_PAUSED As Long = 5070 '  The cluster node is paused.
'Private Const ERROR_NODE_CANT_HOST_RESOURCE As Long = 5071 '  The cluster resource cannot be brought online. The owner node cannot run this resource.
'Private Const ERROR_CLUSTER_NODE_NOT_READY As Long = 5072 '  The cluster node is not ready to perform the requested operation.
'Private Const ERROR_CLUSTER_NODE_SHUTTING_DOWN As Long = 5073 '  The cluster node is shutting down.
'Private Const ERROR_CLUSTER_JOIN_ABORTED As Long = 5074 '  The cluster join operation was aborted.
'Private Const ERROR_CLUSTER_INCOMPATIBLE_VERSIONS As Long = 5075 '  The cluster join operation failed due to incompatible software versions between the joining node and its sponsor.
'Private Const ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED As Long = 5076 '  This resource cannot be created because the cluster has reached the limit on the number of resources it can monitor.
'Private Const ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED As Long = 5077 '  The system configuration changed during the cluster join or form operation. The join or form operation was aborted.
'Private Const ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND As Long = 5078 '  The specified resource type was not found.
'Private Const ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED As Long = 5079 '  The specified node does not support a resource of this type. This may be due to version inconsistencies or due to the absence of the resource DLL on this node.
'Private Const ERROR_CLUSTER_RESNAME_NOT_FOUND As Long = 5080 '  The specified resource name is not supported by this resource DLL. This may be due to a bad (or changed) name supplied to the resource DLL.
'Private Const ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED As Long = 5081 '  No authentication package could be registered with the RPC server.
'Private Const ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST As Long = 5082 '  You cannot bring the group online because the owner of the group is not in the preferred list for the group. To change the owner node for the group, move the group.
'Private Const ERROR_CLUSTER_DATABASE_SEQMISMATCH As Long = 5083 '  The join operation failed because the cluster database sequence number has changed or is incompatible with the locker node. This may happen during a join operation if the cluster database was changing during the join.
'Private Const ERROR_RESMON_INVALID_STATE As Long = 5084 '  The resource monitor will not allow the fail operation to be performed while the resource is in its current state. This may happen if the resource is in a pending state.
'Private Const ERROR_CLUSTER_GUM_NOT_LOCKER As Long = 5085 '  A non locker code got a request to reserve the lock for making global updates.
'Private Const ERROR_QUORUM_DISK_NOT_FOUND As Long = 5086 '  The quorum disk could not be located by the cluster service.
'Private Const ERROR_DATABASE_BACKUP_CORRUPT As Long = 5087 '  The backed up cluster database is possibly corrupt.
'Private Const ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT As Long = 5088 '  A DFS root already exists in this cluster node.
'Private Const ERROR_RESOURCE_PROPERTY_UNCHANGEABLE As Long = 5089 '  An attempt to modify a resource property failed because it conflicts with another existing property.
'Private Const ERROR_NO_ADMIN_ACCESS_POINT As Long = 5090 '  This operation is not supported on a cluster without an Administrator Access Point.
'Private Const ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE As Long = 5890 '  An operation was attempted that is incompatible with the current membership state of the node.
'Private Const ERROR_CLUSTER_QUORUMLOG_NOT_FOUND As Long = 5891 '  The quorum resource does not contain the quorum log.
'Private Const ERROR_CLUSTER_MEMBERSHIP_HALT As Long = 5892 '  The membership engine requested shutdown of the cluster service on this node.
'Private Const ERROR_CLUSTER_INSTANCE_ID_MISMATCH As Long = 5893 '  The join operation failed because the cluster instance ID of the joining node does not match the cluster instance ID of the sponsor node.
'Private Const ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP As Long = 5894 '  A matching cluster network for the specified IP address could not be found.
'Private Const ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH As Long = 5895 '  The actual data type of the property did not match the expected data type of the property.
'Private Const ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP As Long = 5896 '  The cluster node was evicted from the cluster successfully, but the node was not cleaned up. To determine what cleanup steps failed and how to recover, see the Failover Clustering application event log using Event Viewer.
'Private Const ERROR_CLUSTER_PARAMETER_MISMATCH As Long = 5897 '  Two or more parameter values specified for a resource's properties are in conflict.
'Private Const ERROR_NODE_CANNOT_BE_CLUSTERED As Long = 5898 '  This computer cannot be made a member of a cluster.
'Private Const ERROR_CLUSTER_WRONG_OS_VERSION As Long = 5899 '  This computer cannot be made a member of a cluster because it does not have the correct version of Windows installed.
'Private Const ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME As Long = 5900 '  A cluster cannot be created with the specified cluster name because that cluster name is already in use. Specify a different name for the cluster.
'Private Const ERROR_CLUSCFG_ALREADY_COMMITTED As Long = 5901 '  The cluster configuration action has already been committed.
'Private Const ERROR_CLUSCFG_ROLLBACK_FAILED As Long = 5902 '  The cluster configuration action could not be rolled back.
'Private Const ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT As Long = 5903 '  The drive letter assigned to a system disk on one node conflicted with the drive letter assigned to a disk on another node.
'Private Const ERROR_CLUSTER_OLD_VERSION As Long = 5904 '  One or more nodes in the cluster are running a version of Windows that does not support this operation.
'Private Const ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME As Long = 5905 '  The name of the corresponding computer account doesn't match the Network Name for this resource.
'Private Const ERROR_CLUSTER_NO_NET_ADAPTERS As Long = 5906 '  No network adapters are available.
'Private Const ERROR_CLUSTER_POISONED As Long = 5907 '  The cluster node has been poisoned.
'Private Const ERROR_CLUSTER_GROUP_MOVING As Long = 5908 '  The group is unable to accept the request since it is moving to another node.
'Private Const ERROR_CLUSTER_RESOURCE_TYPE_BUSY As Long = 5909 '  The resource type cannot accept the request since is too busy performing another operation.
'Private Const ERROR_RESOURCE_CALL_TIMED_OUT As Long = 5910 '  The call to the cluster resource DLL timed out.
'Private Const ERROR_INVALID_CLUSTER_IPV6_ADDRESS As Long = 5911 '  The address is not valid for an IPv6 Address resource. A global IPv6 address is required, and it must match a cluster network. Compatibility addresses are not permitted.
'Private Const ERROR_CLUSTER_INTERNAL_INVALID_FUNCTION As Long = 5912 '  An internal cluster error occurred. A call to an invalid function was attempted.
'Private Const ERROR_CLUSTER_PARAMETER_OUT_OF_BOUNDS As Long = 5913 '  A parameter value is out of acceptable range.
'Private Const ERROR_CLUSTER_PARTIAL_SEND As Long = 5914 '  A network error occurred while sending data to another node in the cluster. The number of bytes transmitted was less than required.
'Private Const ERROR_CLUSTER_REGISTRY_INVALID_FUNCTION As Long = 5915 '  An invalid cluster registry operation was attempted.
'Private Const ERROR_CLUSTER_INVALID_STRING_TERMINATION As Long = 5916 '  An input string of characters is not properly terminated.
'Private Const ERROR_CLUSTER_INVALID_STRING_FORMAT As Long = 5917 '  An input string of characters is not in a valid format for the data it represents.
'Private Const ERROR_CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS As Long = 5918 '  An internal cluster error occurred. A cluster database transaction was attempted while a transaction was already in progress.
'Private Const ERROR_CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS As Long = 5919 '  An internal cluster error occurred. There was an attempt to commit a cluster database transaction while no transaction was in progress.
'Private Const ERROR_CLUSTER_NULL_DATA As Long = 5920 '  An internal cluster error occurred. Data was not properly initialized.
'Private Const ERROR_CLUSTER_PARTIAL_READ As Long = 5921 '  An error occurred while reading from a stream of data. An unexpected number of bytes was returned.
'Private Const ERROR_CLUSTER_PARTIAL_WRITE As Long = 5922 '  An error occurred while writing to a stream of data. The required number of bytes could not be written.
'Private Const ERROR_CLUSTER_CANT_DESERIALIZE_DATA As Long = 5923 '  An error occurred while deserializing a stream of cluster data.
'Private Const ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT As Long = 5924 '  One or more property values for this resource are in conflict with one or more property values associated with its dependent resource(s).
'Private Const ERROR_CLUSTER_NO_QUORUM As Long = 5925 '  A quorum of cluster nodes was not present to form a cluster.
'Private Const ERROR_CLUSTER_INVALID_IPV6_NETWORK As Long = 5926 '  The cluster network is not valid for an IPv6 Address resource, or it does not match the configured address.
'Private Const ERROR_CLUSTER_INVALID_IPV6_TUNNEL_NETWORK As Long = 5927 '  The cluster network is not valid for an IPv6 Tunnel resource. Check the configuration of the IP Address resource on which the IPv6 Tunnel resource depends.
'Private Const ERROR_QUORUM_NOT_ALLOWED_IN_THIS_GROUP As Long = 5928 '  Quorum resource cannot reside in the Available Storage group.
'Private Const ERROR_DEPENDENCY_TREE_TOO_COMPLEX As Long = 5929 '  The dependencies for this resource are nested too deeply.
'Private Const ERROR_EXCEPTION_IN_RESOURCE_CALL As Long = 5930 '  The call into the resource DLL raised an unhandled exception.
'Private Const ERROR_CLUSTER_RHS_FAILED_INITIALIZATION As Long = 5931 '  The RHS process failed to initialize.
'Private Const ERROR_CLUSTER_NOT_INSTALLED As Long = 5932 '  The Failover Clustering feature is not installed on this node.
'Private Const ERROR_CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE As Long = 5933 '  The resources must be online on the same node for this operation
'Private Const ERROR_CLUSTER_MAX_NODES_IN_CLUSTER As Long = 5934 '  A new node can not be added since this cluster is already at its maximum number of nodes.
'Private Const ERROR_CLUSTER_TOO_MANY_NODES As Long = 5935 '  This cluster can not be created since the specified number of nodes exceeds the maximum allowed limit.
'Private Const ERROR_CLUSTER_OBJECT_ALREADY_USED As Long = 5936 '  An attempt to use the specified cluster name failed because an enabled computer object with the given name already exists in the domain.
'Private Const ERROR_NONCORE_GROUPS_FOUND As Long = 5937 '  This cluster cannot be destroyed. It has non-core application groups which must be deleted before the cluster can be destroyed.
'Private Const ERROR_FILE_SHARE_RESOURCE_CONFLICT As Long = 5938 '  File share associated with file share witness resource cannot be hosted by this cluster or any of its nodes.
'Private Const ERROR_CLUSTER_EVICT_INVALID_REQUEST As Long = 5939 '  Eviction of this node is invalid at this time. Due to quorum requirements node eviction will result in cluster shutdown.If it is the last node in the cluster, destroy cluster command should be used.
'Private Const ERROR_CLUSTER_SINGLETON_RESOURCE As Long = 5940 '  Only one instance of this resource type is allowed in the cluster.
'Private Const ERROR_CLUSTER_GROUP_SINGLETON_RESOURCE As Long = 5941 '  Only one instance of this resource type is allowed per resource group.
'Private Const ERROR_CLUSTER_RESOURCE_PROVIDER_FAILED As Long = 5942 '  The resource failed to come online due to the failure of one or more provider resources.
'Private Const ERROR_CLUSTER_RESOURCE_CONFIGURATION_ERROR As Long = 5943 '  The resource has indicated that it cannot come online on any node.
'Private Const ERROR_CLUSTER_GROUP_BUSY As Long = 5944 '  The current operation cannot be performed on this group at this time.
'Private Const ERROR_CLUSTER_NOT_SHARED_VOLUME As Long = 5945 '  The directory or file is not located on a cluster shared volume.
'Private Const ERROR_CLUSTER_INVALID_SECURITY_DESCRIPTOR As Long = 5946 '  The Security Descriptor does not meet the requirements for a cluster.
'Private Const ERROR_CLUSTER_SHARED_VOLUMES_IN_USE As Long = 5947 '  There is one or more shared volumes resources configured in the cluster.Those resources must be moved to available storage in order for operation to succeed.
'Private Const ERROR_CLUSTER_USE_SHARED_VOLUMES_API As Long = 5948 '  This group or resource cannot be directly manipulated.Use shared volume APIs to perform desired operation.
'Private Const ERROR_CLUSTER_BACKUP_IN_PROGRESS As Long = 5949 '  Back up is in progress. Please wait for backup completion before trying this operation again.
'Private Const ERROR_NON_CSV_PATH As Long = 5950 '  The path does not belong to a cluster shared volume.
'Private Const ERROR_CSV_VOLUME_NOT_LOCAL As Long = 5951 '  The cluster shared volume is not locally mounted on this node.
'Private Const ERROR_CLUSTER_WATCHDOG_TERMINATING As Long = 5952 '  The cluster watchdog is terminating.
'Private Const ERROR_CLUSTER_RESOURCE_VETOED_MOVE_INCOMPATIBLE_NODES As Long = 5953 '  A resource vetoed a move between two nodes because they are incompatible.
'Private Const ERROR_CLUSTER_INVALID_NODE_WEIGHT As Long = 5954 '  The request is invalid either because node weight cannot be changed while the cluster is in disk-only quorum mode, or because changing the node weight would violate the minimum cluster quorum requirements.
'Private Const ERROR_CLUSTER_RESOURCE_VETOED_CALL As Long = 5955 '  The resource vetoed the call.
'Private Const ERROR_RESMON_SYSTEM_RESOURCES_LACKING As Long = 5956 '  Resource could not start or run because it could not reserve sufficient system resources.
'Private Const ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_DESTINATION As Long = 5957 '  A resource vetoed a move between two nodes because the destination currently does not have enough resources to complete the operation.
'Private Const ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_SOURCE As Long = 5958 '  A resource vetoed a move between two nodes because the source currently does not have enough resources to complete the operation.
'Private Const ERROR_CLUSTER_GROUP_QUEUED As Long = 5959 '  The requested operation can not be completed because the group is queued for an operation.
'Private Const ERROR_CLUSTER_RESOURCE_LOCKED_STATUS As Long = 5960 '  The requested operation can not be completed because a resource has locked status.
'Private Const ERROR_CLUSTER_SHARED_VOLUME_FAILOVER_NOT_ALLOWED As Long = 5961 '  The resource cannot move to another node because a cluster shared volume vetoed the operation.
'Private Const ERROR_CLUSTER_NODE_DRAIN_IN_PROGRESS As Long = 5962 '  A node drain is already in progress.
'Private Const ERROR_CLUSTER_DISK_NOT_CONNECTED As Long = 5963 '  Clustered storage is not connected to the node.
'Private Const ERROR_DISK_NOT_CSV_CAPABLE As Long = 5964 '  The disk is not configured in a way to be used with CSV. CSV disks must have at least one partition that is formatted with NTFS or REFS.
'Private Const ERROR_RESOURCE_NOT_IN_AVAILABLE_STORAGE As Long = 5965 '  The resource must be part of the Available Storage group to complete this action.
'Private Const ERROR_CLUSTER_SHARED_VOLUME_REDIRECTED As Long = 5966 '  CSVFS failed operation as volume is in redirected mode.
'Private Const ERROR_CLUSTER_SHARED_VOLUME_NOT_REDIRECTED As Long = 5967 '  CSVFS failed operation as volume is not in redirected mode.
'Private Const ERROR_CLUSTER_CANNOT_RETURN_PROPERTIES As Long = 5968 '  Cluster properties cannot be returned at this time.
'Private Const ERROR_CLUSTER_RESOURCE_CONTAINS_UNSUPPORTED_DIFF_AREA_FOR_SHARED_VOLUMES As Long = 5969 '  The clustered disk resource contains software snapshot diff area that are not supported for Cluster Shared Volumes.
'Private Const ERROR_CLUSTER_RESOURCE_IS_IN_MAINTENANCE_MODE As Long = 5970 '  The operation cannot be completed because the resource is in maintenance mode.
'Private Const ERROR_CLUSTER_AFFINITY_CONFLICT As Long = 5971 '  The operation cannot be completed because of cluster affinity conflicts
'Private Const ERROR_CLUSTER_RESOURCE_IS_REPLICA_VIRTUAL_MACHINE As Long = 5972 '  The operation cannot be completed because the resource is a replica virtual machine.
'Private Const ERROR_ENCRYPTION_FAILED As Long = 6000 '  The specified file could not be encrypted.
'Private Const ERROR_DECRYPTION_FAILED As Long = 6001 '  The specified file could not be decrypted.
'Private Const ERROR_FILE_ENCRYPTED As Long = 6002 '  The specified file is encrypted and the user does not have the ability to decrypt it.
'Private Const ERROR_NO_RECOVERY_POLICY As Long = 6003 '  There is no valid encryption recovery policy configured for this system.
'Private Const ERROR_NO_EFS As Long = 6004 '  The required encryption driver is not loaded for this system.
'Private Const ERROR_WRONG_EFS As Long = 6005 '  The file was encrypted with a different encryption driver than is currently loaded.
'Private Const ERROR_NO_USER_KEYS As Long = 6006 '  There are no EFS keys defined for the user.
'Private Const ERROR_FILE_NOT_ENCRYPTED As Long = 6007 '  The specified file is not encrypted.
'Private Const ERROR_NOT_EXPORT_FORMAT As Long = 6008 '  The specified file is not in the defined EFS export format.
'Private Const ERROR_FILE_READ_ONLY As Long = 6009 '  The specified file is read only.
'Private Const ERROR_DIR_EFS_DISALLOWED As Long = 6010 '  The directory has been disabled for encryption.
'Private Const ERROR_EFS_SERVER_NOT_TRUSTED As Long = 6011 '  The server is not trusted for remote encryption operation.
'Private Const ERROR_BAD_RECOVERY_POLICY As Long = 6012 '  Recovery policy configured for this system contains invalid recovery certificate.
'Private Const ERROR_EFS_ALG_BLOB_TOO_BIG As Long = 6013 '  The encryption algorithm used on the source file needs a bigger key buffer than the one on the destination file.
'Private Const ERROR_VOLUME_NOT_SUPPORT_EFS As Long = 6014 '  The disk partition does not support file encryption.
'Private Const ERROR_EFS_DISABLED As Long = 6015 '  This machine is disabled for file encryption.
'Private Const ERROR_EFS_VERSION_NOT_SUPPORT As Long = 6016 '  A newer system is required to decrypt this encrypted file.
'Private Const ERROR_CS_ENCRYPTION_INVALID_SERVER_RESPONSE As Long = 6017 '  The remote server sent an invalid response for a file being opened with Client Side Encryption.
'Private Const ERROR_CS_ENCRYPTION_UNSUPPORTED_SERVER As Long = 6018 '  Client Side Encryption is not supported by the remote server even though it claims to support it.
'Private Const ERROR_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE As Long = 6019 '  File is encrypted and should be opened in Client Side Encryption mode.
'Private Const ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE As Long = 6020 '  A new encrypted file is being created and a $EFS needs to be provided.
'Private Const ERROR_CS_ENCRYPTION_FILE_NOT_CSE As Long = 6021 '  The SMB client requested a CSE FSCTL on a non-CSE file.
'Private Const ERROR_ENCRYPTION_POLICY_DENIES_OPERATION As Long = 6022 '  The requested operation was blocked by policy. For more information, contact your system administrator.
'Private Const ERROR_NO_BROWSER_SERVERS_FOUND As Long = 6118 '  The list of servers for this workgroup is not currently available
'Private Const SCHED_E_SERVICE_NOT_LOCALSYSTEM As Long = 6200 '  The Task Scheduler service must be configured to run in the System account to function properly. Individual tasks may be configured to run in other accounts.
'Private Const ERROR_LOG_SECTOR_INVALID As Long = 6600 '  Log service encountered an invalid log sector.
'Private Const ERROR_LOG_SECTOR_PARITY_INVALID As Long = 6601 '  Log service encountered a log sector with invalid block parity.
'Private Const ERROR_LOG_SECTOR_REMAPPED As Long = 6602 '  Log service encountered a remapped log sector.
'Private Const ERROR_LOG_BLOCK_INCOMPLETE As Long = 6603 '  Log service encountered a partial or incomplete log block.
'Private Const ERROR_LOG_INVALID_RANGE As Long = 6604 '  Log service encountered an attempt access data outside the active log range.
'Private Const ERROR_LOG_BLOCKS_EXHAUSTED As Long = 6605 '  Log service user marshalling buffers are exhausted.
'Private Const ERROR_LOG_READ_CONTEXT_INVALID As Long = 6606 '  Log service encountered an attempt read from a marshalling area with an invalid read context.
'Private Const ERROR_LOG_RESTART_INVALID As Long = 6607 '  Log service encountered an invalid log restart area.
'Private Const ERROR_LOG_BLOCK_VERSION As Long = 6608 '  Log service encountered an invalid log block version.
'Private Const ERROR_LOG_BLOCK_INVALID As Long = 6609 '  Log service encountered an invalid log block.
'Private Const ERROR_LOG_READ_MODE_INVALID As Long = 6610 '  Log service encountered an attempt to read the log with an invalid read mode.
'Private Const ERROR_LOG_NO_RESTART As Long = 6611 '  Log service encountered a log stream with no restart area.
'Private Const ERROR_LOG_METADATA_CORRUPT As Long = 6612 '  Log service encountered a corrupted metadata file.
'Private Const ERROR_LOG_METADATA_INVALID As Long = 6613 '  Log service encountered a metadata file that could not be created by the log file system.
'Private Const ERROR_LOG_METADATA_INCONSISTENT As Long = 6614 '  Log service encountered a metadata file with inconsistent data.
'Private Const ERROR_LOG_RESERVATION_INVALID As Long = 6615 '  Log service encountered an attempt to erroneous allocate or dispose reservation space.
'Private Const ERROR_LOG_CANT_DELETE As Long = 6616 '  Log service cannot delete log file or file system container.
'Private Const ERROR_LOG_CONTAINER_LIMIT_EXCEEDED As Long = 6617 '  Log service has reached the maximum allowable containers allocated to a log file.
'Private Const ERROR_LOG_START_OF_LOG As Long = 6618 '  Log service has attempted to read or write backward past the start of the log.
'Private Const ERROR_LOG_POLICY_ALREADY_INSTALLED As Long = 6619 '  Log policy could not be installed because a policy of the same type is already present.
'Private Const ERROR_LOG_POLICY_NOT_INSTALLED As Long = 6620 '  Log policy in question was not installed at the time of the request.
'Private Const ERROR_LOG_POLICY_INVALID As Long = 6621 '  The installed set of policies on the log is invalid.
'Private Const ERROR_LOG_POLICY_CONFLICT As Long = 6622 '  A policy on the log in question prevented the operation from completing.
'Private Const ERROR_LOG_PINNED_ARCHIVE_TAIL As Long = 6623 '  Log space cannot be reclaimed because the log is pinned by the archive tail.
'Private Const ERROR_LOG_RECORD_NONEXISTENT As Long = 6624 '  Log record is not a record in the log file.
'Private Const ERROR_LOG_RECORDS_RESERVED_INVALID As Long = 6625 '  Number of reserved log records or the adjustment of the number of reserved log records is invalid.
'Private Const ERROR_LOG_SPACE_RESERVED_INVALID As Long = 6626 '  Reserved log space or the adjustment of the log space is invalid.
'Private Const ERROR_LOG_TAIL_INVALID As Long = 6627 '  An new or existing archive tail or base of the active log is invalid.
'Private Const ERROR_LOG_FULL As Long = 6628 '  Log space is exhausted.
'Private Const ERROR_COULD_NOT_RESIZE_LOG As Long = 6629 '  The log could not be set to the requested size.
'Private Const ERROR_LOG_MULTIPLEXED As Long = 6630 '  Log is multiplexed, no direct writes to the physical log is allowed.
'Private Const ERROR_LOG_DEDICATED As Long = 6631 '  The operation failed because the log is a dedicated log.
'Private Const ERROR_LOG_ARCHIVE_NOT_IN_PROGRESS As Long = 6632 '  The operation requires an archive context.
'Private Const ERROR_LOG_ARCHIVE_IN_PROGRESS As Long = 6633 '  Log archival is in progress.
'Private Const ERROR_LOG_EPHEMERAL As Long = 6634 '  The operation requires a non-ephemeral log, but the log is ephemeral.
'Private Const ERROR_LOG_NOT_ENOUGH_CONTAINERS As Long = 6635 '  The log must have at least two containers before it can be read from or written to.
'Private Const ERROR_LOG_CLIENT_ALREADY_REGISTERED As Long = 6636 '  A log client has already registered on the stream.
'Private Const ERROR_LOG_CLIENT_NOT_REGISTERED As Long = 6637 '  A log client has not been registered on the stream.
'Private Const ERROR_LOG_FULL_HANDLER_IN_PROGRESS As Long = 6638 '  A request has already been made to handle the log full condition.
'Private Const ERROR_LOG_CONTAINER_READ_FAILED As Long = 6639 '  Log service encountered an error when attempting to read from a log container.
'Private Const ERROR_LOG_CONTAINER_WRITE_FAILED As Long = 6640 '  Log service encountered an error when attempting to write to a log container.
'Private Const ERROR_LOG_CONTAINER_OPEN_FAILED As Long = 6641 '  Log service encountered an error when attempting open a log container.
'Private Const ERROR_LOG_CONTAINER_STATE_INVALID As Long = 6642 '  Log service encountered an invalid container state when attempting a requested action.
'Private Const ERROR_LOG_STATE_INVALID As Long = 6643 '  Log service is not in the correct state to perform a requested action.
'Private Const ERROR_LOG_PINNED As Long = 6644 '  Log space cannot be reclaimed because the log is pinned.
'Private Const ERROR_LOG_METADATA_FLUSH_FAILED As Long = 6645 '  Log metadata flush failed.
'Private Const ERROR_LOG_INCONSISTENT_SECURITY As Long = 6646 '  Security on the log and its containers is inconsistent.
'Private Const ERROR_LOG_APPENDED_FLUSH_FAILED As Long = 6647 '  Records were appended to the log or reservation changes were made, but the log could not be flushed.
'Private Const ERROR_LOG_PINNED_RESERVATION As Long = 6648 '  The log is pinned due to reservation consuming most of the log space. Free some reserved records to make space available.
'Private Const ERROR_INVALID_TRANSACTION As Long = 6700 '  The transaction handle associated with this operation is not valid.
'Private Const ERROR_TRANSACTION_NOT_ACTIVE As Long = 6701 '  The requested operation was made in the context of a transaction that is no longer active.
'Private Const ERROR_TRANSACTION_REQUEST_NOT_VALID As Long = 6702 '  The requested operation is not valid on the Transaction object in its current state.
'Private Const ERROR_TRANSACTION_NOT_REQUESTED As Long = 6703 '  The caller has called a response API, but the response is not expected because the TM did not issue the corresponding request to the caller.
'Private Const ERROR_TRANSACTION_ALREADY_ABORTED As Long = 6704 '  It is too late to perform the requested operation, since the Transaction has already been aborted.
'Private Const ERROR_TRANSACTION_ALREADY_COMMITTED As Long = 6705 '  It is too late to perform the requested operation, since the Transaction has already been committed.
'Private Const ERROR_TM_INITIALIZATION_FAILED As Long = 6706 '  The Transaction Manager was unable to be successfully initialized. Transacted operations are not supported.
'Private Const ERROR_RESOURCEMANAGER_READ_ONLY As Long = 6707 '  The specified ResourceManager made no changes or updates to the resource under this transaction.
'Private Const ERROR_TRANSACTION_NOT_JOINED As Long = 6708 '  The resource manager has attempted to prepare a transaction that it has not successfully joined.
'Private Const ERROR_TRANSACTION_SUPERIOR_EXISTS As Long = 6709 '  The Transaction object already has a superior enlistment, and the caller attempted an operation that would have created a new superior. Only a single superior enlistment is allow.
'Private Const ERROR_CRM_PROTOCOL_ALREADY_EXISTS As Long = 6710 '  The RM tried to register a protocol that already exists.
'Private Const ERROR_TRANSACTION_PROPAGATION_FAILED As Long = 6711 '  The attempt to propagate the Transaction failed.
'Private Const ERROR_CRM_PROTOCOL_NOT_FOUND As Long = 6712 '  The requested propagation protocol was not registered as a CRM.
'Private Const ERROR_TRANSACTION_INVALID_MARSHALL_BUFFER As Long = 6713 '  The buffer passed in to PushTransaction or PullTransaction is not in a valid format.
'Private Const ERROR_CURRENT_TRANSACTION_NOT_VALID As Long = 6714 '  The current transaction context associated with the thread is not a valid handle to a transaction object.
'Private Const ERROR_TRANSACTION_NOT_FOUND As Long = 6715 '  The specified Transaction object could not be opened, because it was not found.
'Private Const ERROR_RESOURCEMANAGER_NOT_FOUND As Long = 6716 '  The specified ResourceManager object could not be opened, because it was not found.
'Private Const ERROR_ENLISTMENT_NOT_FOUND As Long = 6717 '  The specified Enlistment object could not be opened, because it was not found.
'Private Const ERROR_TRANSACTIONMANAGER_NOT_FOUND As Long = 6718 '  The specified TransactionManager object could not be opened, because it was not found.
'Private Const ERROR_TRANSACTIONMANAGER_NOT_ONLINE As Long = 6719 '  The object specified could not be created or opened, because its associated TransactionManager is not online.  The TransactionManager must be brought fully Online by calling RecoverTransactionManager to recover to the end of its LogFile before objects in its Transaction or ResourceManager namespaces can be opened.  In addition, errors in writing records to its LogFile can cause a TransactionManager to go offline.
'Private Const ERROR_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION As Long = 6720 '  The specified TransactionManager was unable to create the objects contained in its logfile in the Ob namespace. Therefore, the TransactionManager was unable to recover.
'Private Const ERROR_TRANSACTION_NOT_ROOT As Long = 6721 '  The call to create a superior Enlistment on this Transaction object could not be completed, because the Transaction object specified for the enlistment is a subordinate branch of the Transaction. Only the root of the Transaction can be enlisted on as a superior.
'Private Const ERROR_TRANSACTION_OBJECT_EXPIRED As Long = 6722 '  Because the associated transaction manager or resource manager has been closed, the handle is no longer valid.
'Private Const ERROR_TRANSACTION_RESPONSE_NOT_ENLISTED As Long = 6723 '  The specified operation could not be performed on this Superior enlistment, because the enlistment was not created with the corresponding completion response in the NotificationMask.
'Private Const ERROR_TRANSACTION_RECORD_TOO_LONG As Long = 6724 '  The specified operation could not be performed, because the record that would be logged was too long. This can occur because of two conditions: either there are too many Enlistments on this Transaction, or the combined RecoveryInformation being logged on behalf of those Enlistments is too long.
'Private Const ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED As Long = 6725 '  Implicit transaction are not supported.
'Private Const ERROR_TRANSACTION_INTEGRITY_VIOLATED As Long = 6726 '  The kernel transaction manager had to abort or forget the transaction because it blocked forward progress.
'Private Const ERROR_TRANSACTIONMANAGER_IDENTITY_MISMATCH As Long = 6727 '  The TransactionManager identity that was supplied did not match the one recorded in the TransactionManager's log file.
'Private Const ERROR_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT As Long = 6728 '  This snapshot operation cannot continue because a transactional resource manager cannot be frozen in its current state.  Please try again.
'Private Const ERROR_TRANSACTION_MUST_WRITETHROUGH As Long = 6729 '  The transaction cannot be enlisted on with the specified EnlistmentMask, because the transaction has already completed the PrePrepare phase.  In order to ensure correctness, the ResourceManager must switch to a write-through mode and cease caching data within this transaction.  Enlisting for only subsequent transaction phases may still succeed.
'Private Const ERROR_TRANSACTION_NO_SUPERIOR As Long = 6730 '  The transaction does not have a superior enlistment.
'Private Const ERROR_HEURISTIC_DAMAGE_POSSIBLE As Long = 6731 '  The attempt to commit the Transaction completed, but it is possible that some portion of the transaction tree did not commit successfully due to heuristics.  Therefore it is possible that some data modified in the transaction may not have committed, resulting in transactional inconsistency.  If possible, check the consistency of the associated data.
'Private Const ERROR_TRANSACTIONAL_CONFLICT As Long = 6800 '  The function attempted to use a name that is reserved for use by another transaction.
'Private Const ERROR_RM_NOT_ACTIVE As Long = 6801 '  Transaction support within the specified resource manager is not started or was shut down due to an error.
'Private Const ERROR_RM_METADATA_CORRUPT As Long = 6802 '  The metadata of the RM has been corrupted. The RM will not function.
'Private Const ERROR_DIRECTORY_NOT_RM As Long = 6803 '  The specified directory does not contain a resource manager.
'Private Const ERROR_TRANSACTIONS_UNSUPPORTED_REMOTE As Long = 6805 '  The remote server or share does not support transacted file operations.
'Private Const ERROR_LOG_RESIZE_INVALID_SIZE As Long = 6806 '  The requested log size is invalid.
'Private Const ERROR_OBJECT_NO_LONGER_EXISTS As Long = 6807 '  The object (file, stream, link) corresponding to the handle has been deleted by a Transaction Savepoint Rollback.
'Private Const ERROR_STREAM_MINIVERSION_NOT_FOUND As Long = 6808 '  The specified file miniversion was not found for this transacted file open.
'Private Const ERROR_STREAM_MINIVERSION_NOT_VALID As Long = 6809 '  The specified file miniversion was found but has been invalidated. Most likely cause is a transaction savepoint rollback.
'Private Const ERROR_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION As Long = 6810 '  A miniversion may only be opened in the context of the transaction that created it.
'Private Const ERROR_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT As Long = 6811 '  It is not possible to open a miniversion with modify access.
'Private Const ERROR_CANT_CREATE_MORE_STREAM_MINIVERSIONS As Long = 6812 '  It is not possible to create any more miniversions for this stream.
'Private Const ERROR_REMOTE_FILE_VERSION_MISMATCH As Long = 6814 '  The remote server sent mismatching version number or Fid for a file opened with transactions.
'Private Const ERROR_HANDLE_NO_LONGER_VALID As Long = 6815 '  The handle has been invalidated by a transaction. The most likely cause is the presence of memory mapping on a file or an open handle when the transaction ended or rolled back to savepoint.
'Private Const ERROR_NO_TXF_METADATA As Long = 6816 '  There is no transaction metadata on the file.
'Private Const ERROR_LOG_CORRUPTION_DETECTED As Long = 6817 '  The log data is corrupt.
'Private Const ERROR_CANT_RECOVER_WITH_HANDLE_OPEN As Long = 6818 '  The file can't be recovered because there is a handle still open on it.
'Private Const ERROR_RM_DISCONNECTED As Long = 6819 '  The transaction outcome is unavailable because the resource manager responsible for it has disconnected.
'Private Const ERROR_ENLISTMENT_NOT_SUPERIOR As Long = 6820 '  The request was rejected because the enlistment in question is not a superior enlistment.
'Private Const ERROR_RECOVERY_NOT_NEEDED As Long = 6821 '  The transactional resource manager is already consistent. Recovery is not needed.
'Private Const ERROR_RM_ALREADY_STARTED As Long = 6822 '  The transactional resource manager has already been started.
'Private Const ERROR_FILE_IDENTITY_NOT_PERSISTENT As Long = 6823 '  The file cannot be opened transactionally, because its identity depends on the outcome of an unresolved transaction.
'Private Const ERROR_CANT_BREAK_TRANSACTIONAL_DEPENDENCY As Long = 6824 '  The operation cannot be performed because another transaction is depending on the fact that this property will not change.
'Private Const ERROR_CANT_CROSS_RM_BOUNDARY As Long = 6825 '  The operation would involve a single file with two transactional resource managers and is therefore not allowed.
'Private Const ERROR_TXF_DIR_NOT_EMPTY As Long = 6826 '  The $Txf directory must be empty for this operation to succeed.
'Private Const ERROR_INDOUBT_TRANSACTIONS_EXIST As Long = 6827 '  The operation would leave a transactional resource manager in an inconsistent state and is therefore not allowed.
'Private Const ERROR_TM_VOLATILE As Long = 6828 '  The operation could not be completed because the transaction manager does not have a log.
'Private Const ERROR_ROLLBACK_TIMER_EXPIRED As Long = 6829 '  A rollback could not be scheduled because a previously scheduled rollback has already executed or been queued for execution.
'Private Const ERROR_TXF_ATTRIBUTE_CORRUPT As Long = 6830 '  The transactional metadata attribute on the file or directory is corrupt and unreadable.
'Private Const ERROR_EFS_NOT_ALLOWED_IN_TRANSACTION As Long = 6831 '  The encryption operation could not be completed because a transaction is active.
'Private Const ERROR_TRANSACTIONAL_OPEN_NOT_ALLOWED As Long = 6832 '  This object is not allowed to be opened in a transaction.
'Private Const ERROR_LOG_GROWTH_FAILED As Long = 6833 '  An attempt to create space in the transactional resource manager's log failed. The failure status has been recorded in the event log.
'Private Const ERROR_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE As Long = 6834 '  Memory mapping (creating a mapped section) a remote file under a transaction is not supported.
'Private Const ERROR_TXF_METADATA_ALREADY_PRESENT As Long = 6835 '  Transaction metadata is already present on this file and cannot be superseded.
'Private Const ERROR_TRANSACTION_SCOPE_CALLBACKS_NOT_SET As Long = 6836 '  A transaction scope could not be entered because the scope handler has not been initialized.
'Private Const ERROR_TRANSACTION_REQUIRED_PROMOTION As Long = 6837 '  Promotion was required in order to allow the resource manager to enlist, but the transaction was set to disallow it.
'Private Const ERROR_CANNOT_EXECUTE_FILE_IN_TRANSACTION As Long = 6838 '  This file is open for modification in an unresolved transaction and may be opened for execute only by a transacted reader.
'Private Const ERROR_TRANSACTIONS_NOT_FROZEN As Long = 6839 '  The request to thaw frozen transactions was ignored because transactions had not previously been frozen.
'Private Const ERROR_TRANSACTION_FREEZE_IN_PROGRESS As Long = 6840 '  Transactions cannot be frozen because a freeze is already in progress.
'Private Const ERROR_NOT_SNAPSHOT_VOLUME As Long = 6841 '  The target volume is not a snapshot volume. This operation is only valid on a volume mounted as a snapshot.
'Private Const ERROR_NO_SAVEPOINT_WITH_OPEN_FILES As Long = 6842 '  The savepoint operation failed because files are open on the transaction. This is not permitted.
'Private Const ERROR_DATA_LOST_REPAIR As Long = 6843 '  Windows has discovered corruption in a file, and that file has since been repaired. Data loss may have occurred.
'Private Const ERROR_SPARSE_NOT_ALLOWED_IN_TRANSACTION As Long = 6844 '  The sparse operation could not be completed because a transaction is active on the file.
'Private Const ERROR_TM_IDENTITY_MISMATCH As Long = 6845 '  The call to create a TransactionManager object failed because the Tm Identity stored in the logfile does not match the Tm Identity that was passed in as an argument.
'Private Const ERROR_FLOATED_SECTION As Long = 6846 '  I/O was attempted on a section object that has been floated as a result of a transaction ending. There is no valid data.
'Private Const ERROR_CANNOT_ACCEPT_TRANSACTED_WORK As Long = 6847 '  The transactional resource manager cannot currently accept transacted work due to a transient condition such as low resources.
'Private Const ERROR_CANNOT_ABORT_TRANSACTIONS As Long = 6848 '  The transactional resource manager had too many tranactions outstanding that could not be aborted. The transactional resource manger has been shut down.
'Private Const ERROR_BAD_CLUSTERS As Long = 6849 '  The operation could not be completed due to bad clusters on disk.
'Private Const ERROR_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION As Long = 6850 '  The compression operation could not be completed because a transaction is active on the file.
'Private Const ERROR_VOLUME_DIRTY As Long = 6851 '  The operation could not be completed because the volume is dirty. Please run chkdsk and try again.
'Private Const ERROR_NO_LINK_TRACKING_IN_TRANSACTION As Long = 6852 '  The link tracking operation could not be completed because a transaction is active.
'Private Const ERROR_OPERATION_NOT_SUPPORTED_IN_TRANSACTION As Long = 6853 '  This operation cannot be performed in a transaction.
'Private Const ERROR_EXPIRED_HANDLE As Long = 6854 '  The handle is no longer properly associated with its transaction.  It may have been opened in a transactional resource manager that was subsequently forced to restart.  Please close the handle and open a new one.
'Private Const ERROR_TRANSACTION_NOT_ENLISTED As Long = 6855 '  The specified operation could not be performed because the resource manager is not enlisted in the transaction.
'Private Const ERROR_CTX_WINSTATION_NAME_INVALID As Long = 7001 '  The specified session name is invalid.
'Private Const ERROR_CTX_INVALID_PD As Long = 7002 '  The specified protocol driver is invalid.
'Private Const ERROR_CTX_PD_NOT_FOUND As Long = 7003 '  The specified protocol driver was not found in the system path.
'Private Const ERROR_CTX_WD_NOT_FOUND As Long = 7004 '  The specified terminal connection driver was not found in the system path.
'Private Const ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY As Long = 7005 '  A registry key for event logging could not be created for this session.
'Private Const ERROR_CTX_SERVICE_NAME_COLLISION As Long = 7006 '  A service with the same name already exists on the system.
'Private Const ERROR_CTX_CLOSE_PENDING As Long = 7007 '  A close operation is pending on the session.
'Private Const ERROR_CTX_NO_OUTBUF As Long = 7008 '  There are no free output buffers available.
'Private Const ERROR_CTX_MODEM_INF_NOT_FOUND As Long = 7009 '  The MODEM.INF file was not found.
'Private Const ERROR_CTX_INVALID_MODEMNAME As Long = 7010 '  The modem name was not found in MODEM.INF.
'Private Const ERROR_CTX_MODEM_RESPONSE_ERROR As Long = 7011 '  The modem did not accept the command sent to it. Verify that the configured modem name matches the attached modem.
'Private Const ERROR_CTX_MODEM_RESPONSE_TIMEOUT As Long = 7012 '  The modem did not respond to the command sent to it. Verify that the modem is properly cabled and powered on.
'Private Const ERROR_CTX_MODEM_RESPONSE_NO_CARRIER As Long = 7013 '  Carrier detect has failed or carrier has been dropped due to disconnect.
'Private Const ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE As Long = 7014 '  Dial tone not detected within the required time. Verify that the phone cable is properly attached and functional.
'Private Const ERROR_CTX_MODEM_RESPONSE_BUSY As Long = 7015 '  Busy signal detected at remote site on callback.
'Private Const ERROR_CTX_MODEM_RESPONSE_VOICE As Long = 7016 '  Voice detected at remote site on callback.
'Private Const ERROR_CTX_TD_ERROR As Long = 7017 '  Transport driver error
'Private Const ERROR_CTX_WINSTATION_NOT_FOUND As Long = 7022 '  The specified session cannot be found.
'Private Const ERROR_CTX_WINSTATION_ALREADY_EXISTS As Long = 7023 '  The specified session name is already in use.
'Private Const ERROR_CTX_WINSTATION_BUSY As Long = 7024 '  The task you are trying to do can't be completed because Remote Desktop Services is currently busy. Please try again in a few minutes. Other users should still be able to log on.
'Private Const ERROR_CTX_BAD_VIDEO_MODE As Long = 7025 '  An attempt has been made to connect to a session whose video mode is not supported by the current client.
'Private Const ERROR_CTX_GRAPHICS_INVALID As Long = 7035 '  The application attempted to enable DOS graphics mode. DOS graphics mode is not supported.
'Private Const ERROR_CTX_LOGON_DISABLED As Long = 7037 '  Your interactive logon privilege has been disabled. Please contact your administrator.
'Private Const ERROR_CTX_NOT_CONSOLE As Long = 7038 '  The requested operation can be performed only on the system console. This is most often the result of a driver or system DLL requiring direct console access.
'Private Const ERROR_CTX_CLIENT_QUERY_TIMEOUT As Long = 7040 '  The client failed to respond to the server connect message.
'Private Const ERROR_CTX_CONSOLE_DISCONNECT As Long = 7041 '  Disconnecting the console session is not supported.
'Private Const ERROR_CTX_CONSOLE_CONNECT As Long = 7042 '  Reconnecting a disconnected session to the console is not supported.
'Private Const ERROR_CTX_SHADOW_DENIED As Long = 7044 '  The request to control another session remotely was denied.
'Private Const ERROR_CTX_WINSTATION_ACCESS_DENIED As Long = 7045 '  The requested session access is denied.
'Private Const ERROR_CTX_INVALID_WD As Long = 7049 '  The specified terminal connection driver is invalid.
'Private Const ERROR_CTX_SHADOW_INVALID As Long = 7050 '  The requested session cannot be controlled remotely.This may be because the session is disconnected or does not currently have a user logged on.
'Private Const ERROR_CTX_SHADOW_DISABLED As Long = 7051 '  The requested session is not configured to allow remote control.
'Private Const ERROR_CTX_CLIENT_LICENSE_IN_USE As Long = 7052 '  Your request to connect to this Terminal Server has been rejected. Your Terminal Server client license number is currently being used by another user. Please call your system administrator to obtain a unique license number.
'Private Const ERROR_CTX_CLIENT_LICENSE_NOT_SET As Long = 7053 '  Your request to connect to this Terminal Server has been rejected. Your Terminal Server client license number has not been entered for this copy of the Terminal Server client. Please contact your system administrator.
'Private Const ERROR_CTX_LICENSE_NOT_AVAILABLE As Long = 7054 '  The number of connections to this computer is limited and all connections are in use right now. Try connecting later or contact your system administrator.
'Private Const ERROR_CTX_LICENSE_CLIENT_INVALID As Long = 7055 '  The client you are using is not licensed to use this system. Your logon request is denied.
'Private Const ERROR_CTX_LICENSE_EXPIRED As Long = 7056 '  The system license has expired. Your logon request is denied.
'Private Const ERROR_CTX_SHADOW_NOT_RUNNING As Long = 7057 '  Remote control could not be terminated because the specified session is not currently being remotely controlled.
'Private Const ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE As Long = 7058 '  The remote control of the console was terminated because the display mode was changed. Changing the display mode in a remote control session is not supported.
'Private Const ERROR_ACTIVATION_COUNT_EXCEEDED As Long = 7059 '  Activation has already been reset the maximum number of times for this installation. Your activation timer will not be cleared.
'Private Const ERROR_CTX_WINSTATIONS_DISABLED As Long = 7060 '  Remote logins are currently disabled.
'Private Const ERROR_CTX_ENCRYPTION_LEVEL_REQUIRED As Long = 7061 '  You do not have the proper encryption level to access this Session.
'Private Const ERROR_CTX_SESSION_IN_USE As Long = 7062 '  The user %s\\%s is currently logged on to this computer. Only the current user or an administrator can log on to this computer.
'Private Const ERROR_CTX_NO_FORCE_LOGOFF As Long = 7063 '  The user %s\\%s is already logged on to the console of this computer. You do not have permission to log in at this time. To resolve this issue, contact %s\\%s and have them log off.
'Private Const ERROR_CTX_ACCOUNT_RESTRICTION As Long = 7064 '  Unable to log you on because of an account restriction.
'Private Const ERROR_RDP_PROTOCOL_ERROR As Long = 7065 '  The RDP protocol component %2 detected an error in the protocol stream and has disconnected the client.
'Private Const ERROR_CTX_CDM_CONNECT As Long = 7066 '  The Client Drive Mapping Service Has Connected on Terminal Connection.
'Private Const ERROR_CTX_CDM_DISCONNECT As Long = 7067 '  The Client Drive Mapping Service Has Disconnected on Terminal Connection.
'Private Const ERROR_CTX_SECURITY_LAYER_ERROR As Long = 7068 '  The Terminal Server security layer detected an error in the protocol stream and has disconnected the client.
'Private Const ERROR_TS_INCOMPATIBLE_SESSIONS As Long = 7069 '  The target session is incompatible with the current session.
'Private Const ERROR_TS_VIDEO_SUBSYSTEM_ERROR As Long = 7070 '  Windows can't connect to your session because a problem occurred in the Windows video subsystem. Try connecting again later, or contact the server administrator for assistance.
'Private Const FRS_ERR_INVALID_API_SEQUENCE As Long = 8001 '  The file replication service API was called incorrectly.
'Private Const FRS_ERR_STARTING_SERVICE As Long = 8002 '  The file replication service cannot be started.
'Private Const FRS_ERR_STOPPING_SERVICE As Long = 8003 '  The file replication service cannot be stopped.
'Private Const FRS_ERR_INTERNAL_API As Long = 8004 '  The file replication service API terminated the request. The event log may have more information.
'Private Const FRS_ERR_INTERNAL As Long = 8005 '  The file replication service terminated the request. The event log may have more information.
'Private Const FRS_ERR_SERVICE_COMM As Long = 8006 '  The file replication service cannot be contacted. The event log may have more information.
'Private Const FRS_ERR_INSUFFICIENT_PRIV As Long = 8007 '  The file replication service cannot satisfy the request because the user has insufficient privileges. The event log may have more information.
'Private Const FRS_ERR_AUTHENTICATION As Long = 8008 '  The file replication service cannot satisfy the request because authenticated RPC is not available. The event log may have more information.
'Private Const FRS_ERR_PARENT_INSUFFICIENT_PRIV As Long = 8009 '  The file replication service cannot satisfy the request because the user has insufficient privileges on the domain controller. The event log may have more information.
'Private Const FRS_ERR_PARENT_AUTHENTICATION As Long = 8010 '  The file replication service cannot satisfy the request because authenticated RPC is not available on the domain controller. The event log may have more information.
'Private Const FRS_ERR_CHILD_TO_PARENT_COMM As Long = 8011 '  The file replication service cannot communicate with the file replication service on the domain controller. The event log may have more information.
'Private Const FRS_ERR_PARENT_TO_CHILD_COMM As Long = 8012 '  The file replication service on the domain controller cannot communicate with the file replication service on this computer. The event log may have more information.
'Private Const FRS_ERR_SYSVOL_POPULATE As Long = 8013 '  The file replication service cannot populate the system volume because of an internal error. The event log may have more information.
'Private Const FRS_ERR_SYSVOL_POPULATE_TIMEOUT As Long = 8014 '  The file replication service cannot populate the system volume because of an internal timeout. The event log may have more information.
'Private Const FRS_ERR_SYSVOL_IS_BUSY As Long = 8015 '  The file replication service cannot process the request. The system volume is busy with a previous request.
'Private Const FRS_ERR_SYSVOL_DEMOTE As Long = 8016 '  The file replication service cannot stop replicating the system volume because of an internal error. The event log may have more information.
'Private Const FRS_ERR_INVALID_SERVICE_PARAMETER As Long = 8017 '  The file replication service detected an invalid parameter.
'Private Const ERROR_DS_NOT_INSTALLED As Long = 8200 '  An error occurred while installing the directory service. For more information, see the event log.
'Private Const ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY As Long = 8201 '  The directory service evaluated group memberships locally.
'Private Const ERROR_DS_NO_ATTRIBUTE_OR_VALUE As Long = 8202 '  The specified directory service attribute or value does not exist.
'Private Const ERROR_DS_INVALID_ATTRIBUTE_SYNTAX As Long = 8203 '  The attribute syntax specified to the directory service is invalid.
'Private Const ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED As Long = 8204 '  The attribute type specified to the directory service is not defined.
'Private Const ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS As Long = 8205 '  The specified directory service attribute or value already exists.
'Private Const ERROR_DS_BUSY As Long = 8206 '  The directory service is busy.
'Private Const ERROR_DS_UNAVAILABLE As Long = 8207 '  The directory service is unavailable.
'Private Const ERROR_DS_NO_RIDS_ALLOCATED As Long = 8208 '  The directory service was unable to allocate a relative identifier.
'Private Const ERROR_DS_NO_MORE_RIDS As Long = 8209 '  The directory service has exhausted the pool of relative identifiers.
'Private Const ERROR_DS_INCORRECT_ROLE_OWNER As Long = 8210 '  The requested operation could not be performed because the directory service is not the master for that type of operation.
'Private Const ERROR_DS_RIDMGR_INIT_ERROR As Long = 8211 '  The directory service was unable to initialize the subsystem that allocates relative identifiers.
'Private Const ERROR_DS_OBJ_CLASS_VIOLATION As Long = 8212 '  The requested operation did not satisfy one or more constraints associated with the class of the object.
'Private Const ERROR_DS_CANT_ON_NON_LEAF As Long = 8213 '  The directory service can perform the requested operation only on a leaf object.
'Private Const ERROR_DS_CANT_ON_RDN As Long = 8214 '  The directory service cannot perform the requested operation on the RDN attribute of an object.
'Private Const ERROR_DS_CANT_MOD_OBJ_CLASS As Long = 8215 '  The directory service detected an attempt to modify the object class of an object.
'Private Const ERROR_DS_CROSS_DOM_MOVE_ERROR As Long = 8216 '  The requested cross-domain move operation could not be performed.
'Private Const ERROR_DS_GC_NOT_AVAILABLE As Long = 8217 '  Unable to contact the global catalog server.
'Private Const ERROR_SHARED_POLICY As Long = 8218 '  The policy object is shared and can only be modified at the root.
'Private Const ERROR_POLICY_OBJECT_NOT_FOUND As Long = 8219 '  The policy object does not exist.
'Private Const ERROR_POLICY_ONLY_IN_DS As Long = 8220 '  The requested policy information is only in the directory service.
'Private Const ERROR_PROMOTION_ACTIVE As Long = 8221 '  A domain controller promotion is currently active.
'Private Const ERROR_NO_PROMOTION_ACTIVE As Long = 8222 '  A domain controller promotion is not currently active
'Private Const ERROR_DS_OPERATIONS_ERROR As Long = 8224 '  An operations error occurred.
'Private Const ERROR_DS_PROTOCOL_ERROR As Long = 8225 '  A protocol error occurred.
'Private Const ERROR_DS_TIMELIMIT_EXCEEDED As Long = 8226 '  The time limit for this request was exceeded.
'Private Const ERROR_DS_SIZELIMIT_EXCEEDED As Long = 8227 '  The size limit for this request was exceeded.
'Private Const ERROR_DS_ADMIN_LIMIT_EXCEEDED As Long = 8228 '  The administrative limit for this request was exceeded.
'Private Const ERROR_DS_COMPARE_FALSE As Long = 8229 '  The compare response was false.
'Private Const ERROR_DS_COMPARE_TRUE As Long = 8230 '  The compare response was true.
'Private Const ERROR_DS_AUTH_METHOD_NOT_SUPPORTED As Long = 8231 '  The requested authentication method is not supported by the server.
'Private Const ERROR_DS_STRONG_AUTH_REQUIRED As Long = 8232 '  A more secure authentication method is required for this server.
'Private Const ERROR_DS_INAPPROPRIATE_AUTH As Long = 8233 '  Inappropriate authentication.
'Private Const ERROR_DS_AUTH_UNKNOWN As Long = 8234 '  The authentication mechanism is unknown.
'Private Const ERROR_DS_REFERRAL As Long = 8235 '  A referral was returned from the server.
'Private Const ERROR_DS_UNAVAILABLE_CRIT_EXTENSION As Long = 8236 '  The server does not support the requested critical extension.
'Private Const ERROR_DS_CONFIDENTIALITY_REQUIRED As Long = 8237 '  This request requires a secure connection.
'Private Const ERROR_DS_INAPPROPRIATE_MATCHING As Long = 8238 '  Inappropriate matching.
'Private Const ERROR_DS_CONSTRAINT_VIOLATION As Long = 8239 '  A constraint violation occurred.
'Private Const ERROR_DS_NO_SUCH_OBJECT As Long = 8240 '  There is no such object on the server.
'Private Const ERROR_DS_ALIAS_PROBLEM As Long = 8241 '  There is an alias problem.
'Private Const ERROR_DS_INVALID_DN_SYNTAX As Long = 8242 '  An invalid dn syntax has been specified.
'Private Const ERROR_DS_IS_LEAF As Long = 8243 '  The object is a leaf object.
'Private Const ERROR_DS_ALIAS_DEREF_PROBLEM As Long = 8244 '  There is an alias dereferencing problem.
'Private Const ERROR_DS_UNWILLING_TO_PERFORM As Long = 8245 '  The server is unwilling to process the request.
'Private Const ERROR_DS_LOOP_DETECT As Long = 8246 '  A loop has been detected.
'Private Const ERROR_DS_NAMING_VIOLATION As Long = 8247 '  There is a naming violation.
'Private Const ERROR_DS_OBJECT_RESULTS_TOO_LARGE As Long = 8248 '  The result set is too large.
'Private Const ERROR_DS_AFFECTS_MULTIPLE_DSAS As Long = 8249 '  The operation affects multiple DSAs
'Private Const ERROR_DS_SERVER_DOWN As Long = 8250 '  The server is not operational.
'Private Const ERROR_DS_LOCAL_ERROR As Long = 8251 '  A local error has occurred.
'Private Const ERROR_DS_ENCODING_ERROR As Long = 8252 '  An encoding error has occurred.
'Private Const ERROR_DS_DECODING_ERROR As Long = 8253 '  A decoding error has occurred.
'Private Const ERROR_DS_FILTER_UNKNOWN As Long = 8254 '  The search filter cannot be recognized.
'Private Const ERROR_DS_PARAM_ERROR As Long = 8255 '  One or more parameters are illegal.
'Private Const ERROR_DS_NOT_SUPPORTED As Long = 8256 '  The specified method is not supported.
'Private Const ERROR_DS_NO_RESULTS_RETURNED As Long = 8257 '  No results were returned.
'Private Const ERROR_DS_CONTROL_NOT_FOUND As Long = 8258 '  The specified control is not supported by the server.
'Private Const ERROR_DS_CLIENT_LOOP As Long = 8259 '  A referral loop was detected by the client.
'Private Const ERROR_DS_REFERRAL_LIMIT_EXCEEDED As Long = 8260 '  The preset referral limit was exceeded.
'Private Const ERROR_DS_SORT_CONTROL_MISSING As Long = 8261 '  The search requires a SORT control.
'Private Const ERROR_DS_OFFSET_RANGE_ERROR As Long = 8262 '  The search results exceed the offset range specified.
'Private Const ERROR_DS_RIDMGR_DISABLED As Long = 8263 '  The directory service detected the subsystem that allocates relative identifiers is disabled. This can occur as a protective mechanism when the system determines a significant portion of relative identifiers (RIDs) have been exhausted. Please see http://go.microsoft.com/fwlink/?LinkId=228610 for recommended diagnostic steps and the procedure to re-enable account creation.
'Private Const ERROR_DS_ROOT_MUST_BE_NC As Long = 8301 '  The root object must be the head of a naming context. The root object cannot have an instantiated parent.
'Private Const ERROR_DS_ADD_REPLICA_INHIBITED As Long = 8302 '  The add replica operation cannot be performed. The naming context must be writeable in order to create the replica.
'Private Const ERROR_DS_ATT_NOT_DEF_IN_SCHEMA As Long = 8303 '  A reference to an attribute that is not defined in the schema occurred.
'Private Const ERROR_DS_MAX_OBJ_SIZE_EXCEEDED As Long = 8304 '  The maximum size of an object has been exceeded.
'Private Const ERROR_DS_OBJ_STRING_NAME_EXISTS As Long = 8305 '  An attempt was made to add an object to the directory with a name that is already in use.
'Private Const ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA As Long = 8306 '  An attempt was made to add an object of a class that does not have an RDN defined in the schema.
'Private Const ERROR_DS_RDN_DOESNT_MATCH_SCHEMA As Long = 8307 '  An attempt was made to add an object using an RDN that is not the RDN defined in the schema.
'Private Const ERROR_DS_NO_REQUESTED_ATTS_FOUND As Long = 8308 '  None of the requested attributes were found on the objects.
'Private Const ERROR_DS_USER_BUFFER_TO_SMALL As Long = 8309 '  The user buffer is too small.
'Private Const ERROR_DS_ATT_IS_NOT_ON_OBJ As Long = 8310 '  The attribute specified in the operation is not present on the object.
'Private Const ERROR_DS_ILLEGAL_MOD_OPERATION As Long = 8311 '  Illegal modify operation. Some aspect of the modification is not permitted.
'Private Const ERROR_DS_OBJ_TOO_LARGE As Long = 8312 '  The specified object is too large.
'Private Const ERROR_DS_BAD_INSTANCE_TYPE As Long = 8313 '  The specified instance type is not valid.
'Private Const ERROR_DS_MASTERDSA_REQUIRED As Long = 8314 '  The operation must be performed at a master DSA.
'Private Const ERROR_DS_OBJECT_CLASS_REQUIRED As Long = 8315 '  The object class attribute must be specified.
'Private Const ERROR_DS_MISSING_REQUIRED_ATT As Long = 8316 '  A required attribute is missing.
'Private Const ERROR_DS_ATT_NOT_DEF_FOR_CLASS As Long = 8317 '  An attempt was made to modify an object to include an attribute that is not legal for its class.
'Private Const ERROR_DS_ATT_ALREADY_EXISTS As Long = 8318 '  The specified attribute is already present on the object.
'Private Const ERROR_DS_CANT_ADD_ATT_VALUES As Long = 8320 '  The specified attribute is not present, or has no values.
'Private Const ERROR_DS_SINGLE_VALUE_CONSTRAINT As Long = 8321 '  Multiple values were specified for an attribute that can have only one value.
'Private Const ERROR_DS_RANGE_CONSTRAINT As Long = 8322 '  A value for the attribute was not in the acceptable range of values.
'Private Const ERROR_DS_ATT_VAL_ALREADY_EXISTS As Long = 8323 '  The specified value already exists.
'Private Const ERROR_DS_CANT_REM_MISSING_ATT As Long = 8324 '  The attribute cannot be removed because it is not present on the object.
'Private Const ERROR_DS_CANT_REM_MISSING_ATT_VAL As Long = 8325 '  The attribute value cannot be removed because it is not present on the object.
'Private Const ERROR_DS_ROOT_CANT_BE_SUBREF As Long = 8326 '  The specified root object cannot be a subref.
'Private Const ERROR_DS_NO_CHAINING As Long = 8327 '  Chaining is not permitted.
'Private Const ERROR_DS_NO_CHAINED_EVAL As Long = 8328 '  Chained evaluation is not permitted.
'Private Const ERROR_DS_NO_PARENT_OBJECT As Long = 8329 '  The operation could not be performed because the object's parent is either uninstantiated or deleted.
'Private Const ERROR_DS_PARENT_IS_AN_ALIAS As Long = 8330 '  Having a parent that is an alias is not permitted. Aliases are leaf objects.
'Private Const ERROR_DS_CANT_MIX_MASTER_AND_REPS As Long = 8331 '  The object and parent must be of the same type, either both masters or both replicas.
'Private Const ERROR_DS_CHILDREN_EXIST As Long = 8332 '  The operation cannot be performed because child objects exist. This operation can only be performed on a leaf object.
'Private Const ERROR_DS_OBJ_NOT_FOUND As Long = 8333 '  Directory object not found.
'Private Const ERROR_DS_ALIASED_OBJ_MISSING As Long = 8334 '  The aliased object is missing.
'Private Const ERROR_DS_BAD_NAME_SYNTAX As Long = 8335 '  The object name has bad syntax.
'Private Const ERROR_DS_ALIAS_POINTS_TO_ALIAS As Long = 8336 '  It is not permitted for an alias to refer to another alias.
'Private Const ERROR_DS_CANT_DEREF_ALIAS As Long = 8337 '  The alias cannot be dereferenced.
'Private Const ERROR_DS_OUT_OF_SCOPE As Long = 8338 '  The operation is out of scope.
'Private Const ERROR_DS_OBJECT_BEING_REMOVED As Long = 8339 '  The operation cannot continue because the object is in the process of being removed.
'Private Const ERROR_DS_CANT_DELETE_DSA_OBJ As Long = 8340 '  The DSA object cannot be deleted.
'Private Const ERROR_DS_GENERIC_ERROR As Long = 8341 '  A directory service error has occurred.
'Private Const ERROR_DS_DSA_MUST_BE_INT_MASTER As Long = 8342 '  The operation can only be performed on an internal master DSA object.
'Private Const ERROR_DS_CLASS_NOT_DSA As Long = 8343 '  The object must be of class DSA.
'Private Const ERROR_DS_INSUFF_ACCESS_RIGHTS As Long = 8344 '  Insufficient access rights to perform the operation.
'Private Const ERROR_DS_ILLEGAL_SUPERIOR As Long = 8345 '  The object cannot be added because the parent is not on the list of possible superiors.
'Private Const ERROR_DS_ATTRIBUTE_OWNED_BY_SAM As Long = 8346 '  Access to the attribute is not permitted because the attribute is owned by the Security Accounts Manager (SAM).
'Private Const ERROR_DS_NAME_TOO_MANY_PARTS As Long = 8347 '  The name has too many parts.
'Private Const ERROR_DS_NAME_TOO_LONG As Long = 8348 '  The name is too long.
'Private Const ERROR_DS_NAME_VALUE_TOO_LONG As Long = 8349 '  The name value is too long.
'Private Const ERROR_DS_NAME_UNPARSEABLE As Long = 8350 '  The directory service encountered an error parsing a name.
'Private Const ERROR_DS_NAME_TYPE_UNKNOWN As Long = 8351 '  The directory service cannot get the attribute type for a name.
'Private Const ERROR_DS_NOT_AN_OBJECT As Long = 8352 '  The name does not identify an object; the name identifies a phantom.
'Private Const ERROR_DS_SEC_DESC_TOO_SHORT As Long = 8353 '  The security descriptor is too short.
'Private Const ERROR_DS_SEC_DESC_INVALID As Long = 8354 '  The security descriptor is invalid.
'Private Const ERROR_DS_NO_DELETED_NAME As Long = 8355 '  Failed to create name for deleted object.
'Private Const ERROR_DS_SUBREF_MUST_HAVE_PARENT As Long = 8356 '  The parent of a new subref must exist.
'Private Const ERROR_DS_NCNAME_MUST_BE_NC As Long = 8357 '  The object must be a naming context.
'Private Const ERROR_DS_CANT_ADD_SYSTEM_ONLY As Long = 8358 '  It is not permitted to add an attribute which is owned by the system.
'Private Const ERROR_DS_CLASS_MUST_BE_CONCRETE As Long = 8359 '  The class of the object must be structural; you cannot instantiate an abstract class.
'Private Const ERROR_DS_INVALID_DMD As Long = 8360 '  The schema object could not be found.
'Private Const ERROR_DS_OBJ_GUID_EXISTS As Long = 8361 '  A local object with this GUID (dead or alive) already exists.
'Private Const ERROR_DS_NOT_ON_BACKLINK As Long = 8362 '  The operation cannot be performed on a back link.
'Private Const ERROR_DS_NO_CROSSREF_FOR_NC As Long = 8363 '  The cross reference for the specified naming context could not be found.
'Private Const ERROR_DS_SHUTTING_DOWN As Long = 8364 '  The operation could not be performed because the directory service is shutting down.
'Private Const ERROR_DS_UNKNOWN_OPERATION As Long = 8365 '  The directory service request is invalid.
'Private Const ERROR_DS_INVALID_ROLE_OWNER As Long = 8366 '  The role owner attribute could not be read.
'Private Const ERROR_DS_COULDNT_CONTACT_FSMO As Long = 8367 '  The requested FSMO operation failed. The current FSMO holder could not be contacted.
'Private Const ERROR_DS_CROSS_NC_DN_RENAME As Long = 8368 '  Modification of a DN across a naming context is not permitted.
'Private Const ERROR_DS_CANT_MOD_SYSTEM_ONLY As Long = 8369 '  The attribute cannot be modified because it is owned by the system.
'Private Const ERROR_DS_REPLICATOR_ONLY As Long = 8370 '  Only the replicator can perform this function.
'Private Const ERROR_DS_OBJ_CLASS_NOT_DEFINED As Long = 8371 '  The specified class is not defined.
'Private Const ERROR_DS_OBJ_CLASS_NOT_SUBCLASS As Long = 8372 '  The specified class is not a subclass.
'Private Const ERROR_DS_NAME_REFERENCE_INVALID As Long = 8373 '  The name reference is invalid.
'Private Const ERROR_DS_CROSS_REF_EXISTS As Long = 8374 '  A cross reference already exists.
'Private Const ERROR_DS_CANT_DEL_MASTER_CROSSREF As Long = 8375 '  It is not permitted to delete a master cross reference.
'Private Const ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD As Long = 8376 '  Subtree notifications are only supported on NC heads.
'Private Const ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX As Long = 8377 '  Notification filter is too complex.
'Private Const ERROR_DS_DUP_RDN As Long = 8378 '  Schema update failed: duplicate RDN.
'Private Const ERROR_DS_DUP_OID As Long = 8379 '  Schema update failed: duplicate OID.
'Private Const ERROR_DS_DUP_MAPI_ID As Long = 8380 '  Schema update failed: duplicate MAPI identifier.
'Private Const ERROR_DS_DUP_SCHEMA_ID_GUID As Long = 8381 '  Schema update failed: duplicate schema-id GUID.
'Private Const ERROR_DS_DUP_LDAP_DISPLAY_NAME As Long = 8382 '  Schema update failed: duplicate LDAP display name.
'Private Const ERROR_DS_SEMANTIC_ATT_TEST As Long = 8383 '  Schema update failed: range-lower less than range upper.
'Private Const ERROR_DS_SYNTAX_MISMATCH As Long = 8384 '  Schema update failed: syntax mismatch.
'Private Const ERROR_DS_EXISTS_IN_MUST_HAVE As Long = 8385 '  Schema deletion failed: attribute is used in must-contain.
'Private Const ERROR_DS_EXISTS_IN_MAY_HAVE As Long = 8386 '  Schema deletion failed: attribute is used in may-contain.
'Private Const ERROR_DS_NONEXISTENT_MAY_HAVE As Long = 8387 '  Schema update failed: attribute in may-contain does not exist.
'Private Const ERROR_DS_NONEXISTENT_MUST_HAVE As Long = 8388 '  Schema update failed: attribute in must-contain does not exist.
'Private Const ERROR_DS_AUX_CLS_TEST_FAIL As Long = 8389 '  Schema update failed: class in aux-class list does not exist or is not an auxiliary class.
'Private Const ERROR_DS_NONEXISTENT_POSS_SUP As Long = 8390 '  Schema update failed: class in poss-superiors does not exist.
'Private Const ERROR_DS_SUB_CLS_TEST_FAIL As Long = 8391 '  Schema update failed: class in subclassof list does not exist or does not satisfy hierarchy rules.
'Private Const ERROR_DS_BAD_RDN_ATT_ID_SYNTAX As Long = 8392 '  Schema update failed: Rdn-Att-Id has wrong syntax.
'Private Const ERROR_DS_EXISTS_IN_AUX_CLS As Long = 8393 '  Schema deletion failed: class is used as auxiliary class.
'Private Const ERROR_DS_EXISTS_IN_SUB_CLS As Long = 8394 '  Schema deletion failed: class is used as sub class.
'Private Const ERROR_DS_EXISTS_IN_POSS_SUP As Long = 8395 '  Schema deletion failed: class is used as poss superior.
'Private Const ERROR_DS_RECALCSCHEMA_FAILED As Long = 8396 '  Schema update failed in recalculating validation cache.
'Private Const ERROR_DS_TREE_DELETE_NOT_FINISHED As Long = 8397 '  The tree deletion is not finished. The request must be made again to continue deleting the tree.
'Private Const ERROR_DS_CANT_DELETE As Long = 8398 '  The requested delete operation could not be performed.
'Private Const ERROR_DS_ATT_SCHEMA_REQ_ID As Long = 8399 '  Cannot read the governs class identifier for the schema record.
'Private Const ERROR_DS_BAD_ATT_SCHEMA_SYNTAX As Long = 8400 '  The attribute schema has bad syntax.
'Private Const ERROR_DS_CANT_CACHE_ATT As Long = 8401 '  The attribute could not be cached.
'Private Const ERROR_DS_CANT_CACHE_CLASS As Long = 8402 '  The class could not be cached.
'Private Const ERROR_DS_CANT_REMOVE_ATT_CACHE As Long = 8403 '  The attribute could not be removed from the cache.
'Private Const ERROR_DS_CANT_REMOVE_CLASS_CACHE As Long = 8404 '  The class could not be removed from the cache.
'Private Const ERROR_DS_CANT_RETRIEVE_DN As Long = 8405 '  The distinguished name attribute could not be read.
'Private Const ERROR_DS_MISSING_SUPREF As Long = 8406 '  No superior reference has been configured for the directory service. The directory service is therefore unable to issue referrals to objects outside this forest.
'Private Const ERROR_DS_CANT_RETRIEVE_INSTANCE As Long = 8407 '  The instance type attribute could not be retrieved.
'Private Const ERROR_DS_CODE_INCONSISTENCY As Long = 8408 '  An internal error has occurred.
'Private Const ERROR_DS_DATABASE_ERROR As Long = 8409 '  A database error has occurred.
'Private Const ERROR_DS_GOVERNSID_MISSING As Long = 8410 '  The attribute GOVERNSID is missing.
'Private Const ERROR_DS_MISSING_EXPECTED_ATT As Long = 8411 '  An expected attribute is missing.
'Private Const ERROR_DS_NCNAME_MISSING_CR_REF As Long = 8412 '  The specified naming context is missing a cross reference.
'Private Const ERROR_DS_SECURITY_CHECKING_ERROR As Long = 8413 '  A security checking error has occurred.
'Private Const ERROR_DS_SCHEMA_NOT_LOADED As Long = 8414 '  The schema is not loaded.
'Private Const ERROR_DS_SCHEMA_ALLOC_FAILED As Long = 8415 '  Schema allocation failed. Please check if the machine is running low on memory.
'Private Const ERROR_DS_ATT_SCHEMA_REQ_SYNTAX As Long = 8416 '  Failed to obtain the required syntax for the attribute schema.
'Private Const ERROR_DS_GCVERIFY_ERROR As Long = 8417 '  The global catalog verification failed. The global catalog is not available or does not support the operation. Some part of the directory is currently not available.
'Private Const ERROR_DS_DRA_SCHEMA_MISMATCH As Long = 8418 '  The replication operation failed because of a schema mismatch between the servers involved.
'Private Const ERROR_DS_CANT_FIND_DSA_OBJ As Long = 8419 '  The DSA object could not be found.
'Private Const ERROR_DS_CANT_FIND_EXPECTED_NC As Long = 8420 '  The naming context could not be found.
'Private Const ERROR_DS_CANT_FIND_NC_IN_CACHE As Long = 8421 '  The naming context could not be found in the cache.
'Private Const ERROR_DS_CANT_RETRIEVE_CHILD As Long = 8422 '  The child object could not be retrieved.
'Private Const ERROR_DS_SECURITY_ILLEGAL_MODIFY As Long = 8423 '  The modification was not permitted for security reasons.
'Private Const ERROR_DS_CANT_REPLACE_HIDDEN_REC As Long = 8424 '  The operation cannot replace the hidden record.
'Private Const ERROR_DS_BAD_HIERARCHY_FILE As Long = 8425 '  The hierarchy file is invalid.
'Private Const ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED As Long = 8426 '  The attempt to build the hierarchy table failed.
'Private Const ERROR_DS_CONFIG_PARAM_MISSING As Long = 8427 '  The directory configuration parameter is missing from the registry.
'Private Const ERROR_DS_COUNTING_AB_INDICES_FAILED As Long = 8428 '  The attempt to count the address book indices failed.
'Private Const ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED As Long = 8429 '  The allocation of the hierarchy table failed.
'Private Const ERROR_DS_INTERNAL_FAILURE As Long = 8430 '  The directory service encountered an internal failure.
'Private Const ERROR_DS_UNKNOWN_ERROR As Long = 8431 '  The directory service encountered an unknown failure.
'Private Const ERROR_DS_ROOT_REQUIRES_CLASS_TOP As Long = 8432 '  A root object requires a class of 'top'.
'Private Const ERROR_DS_REFUSING_FSMO_ROLES As Long = 8433 '  This directory server is shutting down, and cannot take ownership of new floating single-master operation roles.
'Private Const ERROR_DS_MISSING_FSMO_SETTINGS As Long = 8434 '  The directory service is missing mandatory configuration information, and is unable to determine the ownership of floating single-master operation roles.
'Private Const ERROR_DS_UNABLE_TO_SURRENDER_ROLES As Long = 8435 '  The directory service was unable to transfer ownership of one or more floating single-master operation roles to other servers.
'Private Const ERROR_DS_DRA_GENERIC As Long = 8436 '  The replication operation failed.
'Private Const ERROR_DS_DRA_INVALID_PARAMETER As Long = 8437 '  An invalid parameter was specified for this replication operation.
'Private Const ERROR_DS_DRA_BUSY As Long = 8438 '  The directory service is too busy to complete the replication operation at this time.
'Private Const ERROR_DS_DRA_BAD_DN As Long = 8439 '  The distinguished name specified for this replication operation is invalid.
'Private Const ERROR_DS_DRA_BAD_NC As Long = 8440 '  The naming context specified for this replication operation is invalid.
'Private Const ERROR_DS_DRA_DN_EXISTS As Long = 8441 '  The distinguished name specified for this replication operation already exists.
'Private Const ERROR_DS_DRA_INTERNAL_ERROR As Long = 8442 '  The replication system encountered an internal error.
'Private Const ERROR_DS_DRA_INCONSISTENT_DIT As Long = 8443 '  The replication operation encountered a database inconsistency.
'Private Const ERROR_DS_DRA_CONNECTION_FAILED As Long = 8444 '  The server specified for this replication operation could not be contacted.
'Private Const ERROR_DS_DRA_BAD_INSTANCE_TYPE As Long = 8445 '  The replication operation encountered an object with an invalid instance type.
'Private Const ERROR_DS_DRA_OUT_OF_MEM As Long = 8446 '  The replication operation failed to allocate memory.
'Private Const ERROR_DS_DRA_MAIL_PROBLEM As Long = 8447 '  The replication operation encountered an error with the mail system.
'Private Const ERROR_DS_DRA_REF_ALREADY_EXISTS As Long = 8448 '  The replication reference information for the target server already exists.
'Private Const ERROR_DS_DRA_REF_NOT_FOUND As Long = 8449 '  The replication reference information for the target server does not exist.
'Private Const ERROR_DS_DRA_OBJ_IS_REP_SOURCE As Long = 8450 '  The naming context cannot be removed because it is replicated to another server.
'Private Const ERROR_DS_DRA_DB_ERROR As Long = 8451 '  The replication operation encountered a database error.
'Private Const ERROR_DS_DRA_NO_REPLICA As Long = 8452 '  The naming context is in the process of being removed or is not replicated from the specified server.
'Private Const ERROR_DS_DRA_ACCESS_DENIED As Long = 8453 '  Replication access was denied.
'Private Const ERROR_DS_DRA_NOT_SUPPORTED As Long = 8454 '  The requested operation is not supported by this version of the directory service.
'Private Const ERROR_DS_DRA_RPC_CANCELLED As Long = 8455 '  The replication remote procedure call was cancelled.
'Private Const ERROR_DS_DRA_SOURCE_DISABLED As Long = 8456 '  The source server is currently rejecting replication requests.
'Private Const ERROR_DS_DRA_SINK_DISABLED As Long = 8457 '  The destination server is currently rejecting replication requests.
'Private Const ERROR_DS_DRA_NAME_COLLISION As Long = 8458 '  The replication operation failed due to a collision of object names.
'Private Const ERROR_DS_DRA_SOURCE_REINSTALLED As Long = 8459 '  The replication source has been reinstalled.
'Private Const ERROR_DS_DRA_MISSING_PARENT As Long = 8460 '  The replication operation failed because a required parent object is missing.
'Private Const ERROR_DS_DRA_PREEMPTED As Long = 8461 '  The replication operation was preempted.
'Private Const ERROR_DS_DRA_ABANDON_SYNC As Long = 8462 '  The replication synchronization attempt was abandoned because of a lack of updates.
'Private Const ERROR_DS_DRA_SHUTDOWN As Long = 8463 '  The replication operation was terminated because the system is shutting down.
'Private Const ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET As Long = 8464 '  Synchronization attempt failed because the destination DC is currently waiting to synchronize new partial attributes from source. This condition is normal if a recent schema change modified the partial attribute set. The destination partial attribute set is not a subset of source partial attribute set.
'Private Const ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA As Long = 8465 '  The replication synchronization attempt failed because a master replica attempted to sync from a partial replica.
'Private Const ERROR_DS_DRA_EXTN_CONNECTION_FAILED As Long = 8466 '  The server specified for this replication operation was contacted, but that server was unable to contact an additional server needed to complete the operation.
'Private Const ERROR_DS_INSTALL_SCHEMA_MISMATCH As Long = 8467 '  The version of the directory service schema of the source forest is not compatible with the version of directory service on this computer.
'Private Const ERROR_DS_DUP_LINK_ID As Long = 8468 '  Schema update failed: An attribute with the same link identifier already exists.
'Private Const ERROR_DS_NAME_ERROR_RESOLVING As Long = 8469 '  Name translation: Generic processing error.
'Private Const ERROR_DS_NAME_ERROR_NOT_FOUND As Long = 8470 '  Name translation: Could not find the name or insufficient right to see name.
'Private Const ERROR_DS_NAME_ERROR_NOT_UNIQUE As Long = 8471 '  Name translation: Input name mapped to more than one output name.
'Private Const ERROR_DS_NAME_ERROR_NO_MAPPING As Long = 8472 '  Name translation: Input name found, but not the associated output format.
'Private Const ERROR_DS_NAME_ERROR_DOMAIN_ONLY As Long = 8473 '  Name translation: Unable to resolve completely, only the domain was found.
'Private Const ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING As Long = 8474 '  Name translation: Unable to perform purely syntactical mapping at the client without going out to the wire.
'Private Const ERROR_DS_CONSTRUCTED_ATT_MOD As Long = 8475 '  Modification of a constructed attribute is not allowed.
'Private Const ERROR_DS_WRONG_OM_OBJ_CLASS As Long = 8476 '  The OM-Object-Class specified is incorrect for an attribute with the specified syntax.
'Private Const ERROR_DS_DRA_REPL_PENDING As Long = 8477 '  The replication request has been posted; waiting for reply.
'Private Const ERROR_DS_DS_REQUIRED As Long = 8478 '  The requested operation requires a directory service, and none was available.
'Private Const ERROR_DS_INVALID_LDAP_DISPLAY_NAME As Long = 8479 '  The LDAP display name of the class or attribute contains non-ASCII characters.
'Private Const ERROR_DS_NON_BASE_SEARCH As Long = 8480 '  The requested search operation is only supported for base searches.
'Private Const ERROR_DS_CANT_RETRIEVE_ATTS As Long = 8481 '  The search failed to retrieve attributes from the database.
'Private Const ERROR_DS_BACKLINK_WITHOUT_LINK As Long = 8482 '  The schema update operation tried to add a backward link attribute that has no corresponding forward link.
'Private Const ERROR_DS_EPOCH_MISMATCH As Long = 8483 '  Source and destination of a cross-domain move do not agree on the object's epoch number. Either source or destination does not have the latest version of the object.
'Private Const ERROR_DS_SRC_NAME_MISMATCH As Long = 8484 '  Source and destination of a cross-domain move do not agree on the object's current name. Either source or destination does not have the latest version of the object.
'Private Const ERROR_DS_SRC_AND_DST_NC_IDENTICAL As Long = 8485 '  Source and destination for the cross-domain move operation are identical. Caller should use local move operation instead of cross-domain move operation.
'Private Const ERROR_DS_DST_NC_MISMATCH As Long = 8486 '  Source and destination for a cross-domain move are not in agreement on the naming contexts in the forest. Either source or destination does not have the latest version of the Partitions container.
'Private Const ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC As Long = 8487 '  Destination of a cross-domain move is not authoritative for the destination naming context.
'Private Const ERROR_DS_SRC_GUID_MISMATCH As Long = 8488 '  Source and destination of a cross-domain move do not agree on the identity of the source object. Either source or destination does not have the latest version of the source object.
'Private Const ERROR_DS_CANT_MOVE_DELETED_OBJECT As Long = 8489 '  Object being moved across-domains is already known to be deleted by the destination server. The source server does not have the latest version of the source object.
'Private Const ERROR_DS_PDC_OPERATION_IN_PROGRESS As Long = 8490 '  Another operation which requires exclusive access to the PDC FSMO is already in progress.
'Private Const ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD As Long = 8491 '  A cross-domain move operation failed such that two versions of the moved object exist - one each in the source and destination domains. The destination object needs to be removed to restore the system to a consistent state.
'Private Const ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION As Long = 8492 '  This object may not be moved across domain boundaries either because cross-domain moves for this class are disallowed, or the object has some special characteristics, e.g.: trust account or restricted RID, which prevent its move.
'Private Const ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS As Long = 8493 '  Can't move objects with memberships across domain boundaries as once moved, this would violate the membership conditions of the account group. Remove the object from any account group memberships and retry.
'Private Const ERROR_DS_NC_MUST_HAVE_NC_PARENT As Long = 8494 '  A naming context head must be the immediate child of another naming context head, not of an interior node.
'Private Const ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE As Long = 8495 '  The directory cannot validate the proposed naming context name because it does not hold a replica of the naming context above the proposed naming context. Please ensure that the domain naming master role is held by a server that is configured as a global catalog server, and that the server is up to date with its replication partners. (Applies only to Windows 2000 Domain Naming masters)
'Private Const ERROR_DS_DST_DOMAIN_NOT_NATIVE As Long = 8496 '  Destination domain must be in native mode.
'Private Const ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER As Long = 8497 '  The operation cannot be performed because the server does not have an infrastructure container in the domain of interest.
'Private Const ERROR_DS_CANT_MOVE_ACCOUNT_GROUP As Long = 8498 '  Cross-domain move of non-empty account groups is not allowed.
'Private Const ERROR_DS_CANT_MOVE_RESOURCE_GROUP As Long = 8499 '  Cross-domain move of non-empty resource groups is not allowed.
'Private Const ERROR_DS_INVALID_SEARCH_FLAG As Long = 8500 '  The search flags for the attribute are invalid. The ANR bit is valid only on attributes of Unicode or Teletex strings.
'Private Const ERROR_DS_NO_TREE_DELETE_ABOVE_NC As Long = 8501 '  Tree deletions starting at an object which has an NC head as a descendant are not allowed.
'Private Const ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE As Long = 8502 '  The directory service failed to lock a tree in preparation for a tree deletion because the tree was in use.
'Private Const ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE As Long = 8503 '  The directory service failed to identify the list of objects to delete while attempting a tree deletion.
'Private Const ERROR_DS_SAM_INIT_FAILURE As Long = 8504 '  Security Accounts Manager initialization failed because of the following error: %1.Error Status: 0x%2. Please shutdown this system and reboot into Directory Services Restore Mode, check the event log for more detailed information.
'Private Const ERROR_DS_SENSITIVE_GROUP_VIOLATION As Long = 8505 '  Only an administrator can modify the membership list of an administrative group.
'Private Const ERROR_DS_CANT_MOD_PRIMARYGROUPID As Long = 8506 '  Cannot change the primary group ID of a domain controller account.
'Private Const ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD As Long = 8507 '  An attempt is made to modify the base schema.
'Private Const ERROR_DS_NONSAFE_SCHEMA_CHANGE As Long = 8508 '  Adding a new mandatory attribute to an existing class, deleting a mandatory attribute from an existing class, or adding an optional attribute to the special class Top that is not a backlink attribute (directly or through inheritance, for example, by adding or deleting an auxiliary class) is not allowed.
'Private Const ERROR_DS_SCHEMA_UPDATE_DISALLOWED As Long = 8509 '  Schema update is not allowed on this DC because the DC is not the schema FSMO Role Owner.
'Private Const ERROR_DS_CANT_CREATE_UNDER_SCHEMA As Long = 8510 '  An object of this class cannot be created under the schema container. You can only create attribute-schema and class-schema objects under the schema container.
'Private Const ERROR_DS_INSTALL_NO_SRC_SCH_VERSION As Long = 8511 '  The replica/child install failed to get the objectVersion attribute on the schema container on the source DC. Either the attribute is missing on the schema container or the credentials supplied do not have permission to read it.
'Private Const ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE As Long = 8512 '  The replica/child install failed to read the objectVersion attribute in the SCHEMA section of the file schema.ini in the system32 directory.
'Private Const ERROR_DS_INVALID_GROUP_TYPE As Long = 8513 '  The specified group type is invalid.
'Private Const ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN As Long = 8514 '  You cannot nest global groups in a mixed domain if the group is security-enabled.
'Private Const ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN As Long = 8515 '  You cannot nest local groups in a mixed domain if the group is security-enabled.
'Private Const ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER As Long = 8516 '  A global group cannot have a local group as a member.
'Private Const ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER As Long = 8517 '  A global group cannot have a universal group as a member.
'Private Const ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER As Long = 8518 '  A universal group cannot have a local group as a member.
'Private Const ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER As Long = 8519 '  A global group cannot have a cross-domain member.
'Private Const ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER As Long = 8520 '  A local group cannot have another cross domain local group as a member.
'Private Const ERROR_DS_HAVE_PRIMARY_MEMBERS As Long = 8521 '  A group with primary members cannot change to a security-disabled group.
'Private Const ERROR_DS_STRING_SD_CONVERSION_FAILED As Long = 8522 '  The schema cache load failed to convert the string default SD on a class-schema object.
'Private Const ERROR_DS_NAMING_MASTER_GC As Long = 8523 '  Only DSAs configured to be Global Catalog servers should be allowed to hold the Domain Naming Master FSMO role. (Applies only to Windows 2000 servers)
'Private Const ERROR_DS_DNS_LOOKUP_FAILURE As Long = 8524 '  The DSA operation is unable to proceed because of a DNS lookup failure.
'Private Const ERROR_DS_COULDNT_UPDATE_SPNS As Long = 8525 '  While processing a change to the DNS Host Name for an object, the Service Principal Name values could not be kept in sync.
'Private Const ERROR_DS_CANT_RETRIEVE_SD As Long = 8526 '  The Security Descriptor attribute could not be read.
'Private Const ERROR_DS_KEY_NOT_UNIQUE As Long = 8527 '  The object requested was not found, but an object with that key was found.
'Private Const ERROR_DS_WRONG_LINKED_ATT_SYNTAX As Long = 8528 '  The syntax of the linked attribute being added is incorrect. Forward links can only have syntax 2.5.5.1, 2.5.5.7, and 2.5.5.14, and backlinks can only have syntax 2.5.5.1
'Private Const ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD As Long = 8529 '  Security Account Manager needs to get the boot password.
'Private Const ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY As Long = 8530 '  Security Account Manager needs to get the boot key from floppy disk.
'Private Const ERROR_DS_CANT_START As Long = 8531 '  Directory Service cannot start.
'Private Const ERROR_DS_INIT_FAILURE As Long = 8532 '  Directory Services could not start.
'Private Const ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION As Long = 8533 '  The connection between client and server requires packet privacy or better.
'Private Const ERROR_DS_SOURCE_DOMAIN_IN_FOREST As Long = 8534 '  The source domain may not be in the same forest as destination.
'Private Const ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST As Long = 8535 '  The destination domain must be in the forest.
'Private Const ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED As Long = 8536 '  The operation requires that destination domain auditing be enabled.
'Private Const ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN As Long = 8537 '  The operation couldn't locate a DC for the source domain.
'Private Const ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER As Long = 8538 '  The source object must be a group or user.
'Private Const ERROR_DS_SRC_SID_EXISTS_IN_FOREST As Long = 8539 '  The source object's SID already exists in destination forest.
'Private Const ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH As Long = 8540 '  The source and destination object must be of the same type.
'Private Const ERROR_SAM_INIT_FAILURE As Long = 8541 '  Security Accounts Manager initialization failed because of the following error: %1.Error Status: 0x%2. Click OK to shut down the system and reboot into Safe Mode. Check the event log for detailed information.
'Private Const ERROR_DS_DRA_SCHEMA_INFO_SHIP As Long = 8542 '  Schema information could not be included in the replication request.
'Private Const ERROR_DS_DRA_SCHEMA_CONFLICT As Long = 8543 '  The replication operation could not be completed due to a schema incompatibility.
'Private Const ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT As Long = 8544 '  The replication operation could not be completed due to a previous schema incompatibility.
'Private Const ERROR_DS_DRA_OBJ_NC_MISMATCH As Long = 8545 '  The replication update could not be applied because either the source or the destination has not yet received information regarding a recent cross-domain move operation.
'Private Const ERROR_DS_NC_STILL_HAS_DSAS As Long = 8546 '  The requested domain could not be deleted because there exist domain controllers that still host this domain.
'Private Const ERROR_DS_GC_REQUIRED As Long = 8547 '  The requested operation can be performed only on a global catalog server.
'Private Const ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY As Long = 8548 '  A local group can only be a member of other local groups in the same domain.
'Private Const ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS As Long = 8549 '  Foreign security principals cannot be members of universal groups.
'Private Const ERROR_DS_CANT_ADD_TO_GC As Long = 8550 '  The attribute is not allowed to be replicated to the GC because of security reasons.
'Private Const ERROR_DS_NO_CHECKPOINT_WITH_PDC As Long = 8551 '  The checkpoint with the PDC could not be taken because there too many modifications being processed currently.
'Private Const ERROR_DS_SOURCE_AUDITING_NOT_ENABLED As Long = 8552 '  The operation requires that source domain auditing be enabled.
'Private Const ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC As Long = 8553 '  Security principal objects can only be created inside domain naming contexts.
'Private Const ERROR_DS_INVALID_NAME_FOR_SPN As Long = 8554 '  A Service Principal Name (SPN) could not be constructed because the provided hostname is not in the necessary format.
'Private Const ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS As Long = 8555 '  A Filter was passed that uses constructed attributes.
'Private Const ERROR_DS_UNICODEPWD_NOT_IN_QUOTES As Long = 8556 '  The unicodePwd attribute value must be enclosed in double quotes.
'Private Const ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED As Long = 8557 '  Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased.
'Private Const ERROR_DS_MUST_BE_RUN_ON_DST_DC As Long = 8558 '  For security reasons, the operation must be run on the destination DC.
'Private Const ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER As Long = 8559 '  For security reasons, the source DC must be NT4SP4 or greater.
'Private Const ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ As Long = 8560 '  Critical Directory Service System objects cannot be deleted during tree delete operations. The tree delete may have been partially performed.
'Private Const ERROR_DS_INIT_FAILURE_CONSOLE As Long = 8561 '  Directory Services could not start because of the following error: %1.Error Status: 0x%2. Please click OK to shutdown the system. You can use the recovery console to diagnose the system further.
'Private Const ERROR_DS_SAM_INIT_FAILURE_CONSOLE As Long = 8562 '  Security Accounts Manager initialization failed because of the following error: %1.Error Status: 0x%2. Please click OK to shutdown the system. You can use the recovery console to diagnose the system further.
'Private Const ERROR_DS_FOREST_VERSION_TOO_HIGH As Long = 8563 '  The version of the operating system is incompatible with the current AD DS forest functional level or AD LDS Configuration Set functional level. You must upgrade to a new version of the operating system before this server can become an AD DS Domain Controller or add an AD LDS Instance in this AD DS Forest or AD LDS Configuration Set.
'Private Const ERROR_DS_DOMAIN_VERSION_TOO_HIGH As Long = 8564 '  The version of the operating system installed is incompatible with the current domain functional level. You must upgrade to a new version of the operating system before this server can become a domain controller in this domain.
'Private Const ERROR_DS_FOREST_VERSION_TOO_LOW As Long = 8565 '  The version of the operating system installed on this server no longer supports the current AD DS Forest functional level or AD LDS Configuration Set functional level. You must raise the AD DS Forest functional level or AD LDS Configuration Set functional level before this server can become an AD DS Domain Controller or an AD LDS Instance in this Forest or Configuration Set.
'Private Const ERROR_DS_DOMAIN_VERSION_TOO_LOW As Long = 8566 '  The version of the operating system installed on this server no longer supports the current domain functional level. You must raise the domain functional level before this server can become a domain controller in this domain.
'Private Const ERROR_DS_INCOMPATIBLE_VERSION As Long = 8567 '  The version of the operating system installed on this server is incompatible with the functional level of the domain or forest.
'Private Const ERROR_DS_LOW_DSA_VERSION As Long = 8568 '  The functional level of the domain (or forest) cannot be raised to the requested value, because there exist one or more domain controllers in the domain (or forest) that are at a lower incompatible functional level.
'Private Const ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN As Long = 8569 '  The forest functional level cannot be raised to the requested value since one or more domains are still in mixed domain mode. All domains in the forest must be in native mode, for you to raise the forest functional level.
'Private Const ERROR_DS_NOT_SUPPORTED_SORT_ORDER As Long = 8570 '  The sort order requested is not supported.
'Private Const ERROR_DS_NAME_NOT_UNIQUE As Long = 8571 '  The requested name already exists as a unique identifier.
'Private Const ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4 As Long = 8572 '  The machine account was created pre-NT4. The account needs to be recreated.
'Private Const ERROR_DS_OUT_OF_VERSION_STORE As Long = 8573 '  The database is out of version store.
'Private Const ERROR_DS_INCOMPATIBLE_CONTROLS_USED As Long = 8574 '  Unable to continue operation because multiple conflicting controls were used.
'Private Const ERROR_DS_NO_REF_DOMAIN As Long = 8575 '  Unable to find a valid security descriptor reference domain for this partition.
'Private Const ERROR_DS_RESERVED_LINK_ID As Long = 8576 '  Schema update failed: The link identifier is reserved.
'Private Const ERROR_DS_LINK_ID_NOT_AVAILABLE As Long = 8577 '  Schema update failed: There are no link identifiers available.
'Private Const ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER As Long = 8578 '  An account group cannot have a universal group as a member.
'Private Const ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE As Long = 8579 '  Rename or move operations on naming context heads or read-only objects are not allowed.
'Private Const ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC As Long = 8580 '  Move operations on objects in the schema naming context are not allowed.
'Private Const ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG As Long = 8581 '  A system flag has been set on the object and does not allow the object to be moved or renamed.
'Private Const ERROR_DS_MODIFYDN_WRONG_GRANDPARENT As Long = 8582 '  This object is not allowed to change its grandparent container. Moves are not forbidden on this object, but are restricted to sibling containers.
'Private Const ERROR_DS_NAME_ERROR_TRUST_REFERRAL As Long = 8583 '  Unable to resolve completely, a referral to another forest is generated.
'Private Const ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER As Long = 8584 '  The requested action is not supported on standard server.
'Private Const ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD As Long = 8585 '  Could not access a partition of the directory service located on a remote server. Make sure at least one server is running for the partition in question.
'Private Const ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2 As Long = 8586 '  The directory cannot validate the proposed naming context (or partition) name because it does not hold a replica nor can it contact a replica of the naming context above the proposed naming context. Please ensure that the parent naming context is properly registered in DNS, and at least one replica of this naming context is reachable by the Domain Naming master.
'Private Const ERROR_DS_THREAD_LIMIT_EXCEEDED As Long = 8587 '  The thread limit for this request was exceeded.
'Private Const ERROR_DS_NOT_CLOSEST As Long = 8588 '  The Global catalog server is not in the closest site.
'Private Const ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF As Long = 8589 '  The DS cannot derive a service principal name (SPN) with which to mutually authenticate the target server because the corresponding server object in the local DS database has no serverReference attribute.
'Private Const ERROR_DS_SINGLE_USER_MODE_FAILED As Long = 8590 '  The Directory Service failed to enter single user mode.
'Private Const ERROR_DS_NTDSCRIPT_SYNTAX_ERROR As Long = 8591 '  The Directory Service cannot parse the script because of a syntax error.
'Private Const ERROR_DS_NTDSCRIPT_PROCESS_ERROR As Long = 8592 '  The Directory Service cannot process the script because of an error.
'Private Const ERROR_DS_DIFFERENT_REPL_EPOCHS As Long = 8593 '  The directory service cannot perform the requested operation because the servers involved are of different replication epochs (which is usually related to a domain rename that is in progress).
'Private Const ERROR_DS_DRS_EXTENSIONS_CHANGED As Long = 8594 '  The directory service binding must be renegotiated due to a change in the server extensions information.
'Private Const ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR As Long = 8595 '  Operation not allowed on a disabled cross ref.
'Private Const ERROR_DS_NO_MSDS_INTID As Long = 8596 '  Schema update failed: No values for msDS-IntId are available.
'Private Const ERROR_DS_DUP_MSDS_INTID As Long = 8597 '  Schema update failed: Duplicate msDS-INtId. Retry the operation.
'Private Const ERROR_DS_EXISTS_IN_RDNATTID As Long = 8598 '  Schema deletion failed: attribute is used in rDNAttID.
'Private Const ERROR_DS_AUTHORIZATION_FAILED As Long = 8599 '  The directory service failed to authorize the request.
'Private Const ERROR_DS_INVALID_SCRIPT As Long = 8600 '  The Directory Service cannot process the script because it is invalid.
'Private Const ERROR_DS_REMOTE_CROSSREF_OP_FAILED As Long = 8601 '  The remote create cross reference operation failed on the Domain Naming Master FSMO. The operation's error is in the extended data.
'Private Const ERROR_DS_CROSS_REF_BUSY As Long = 8602 '  A cross reference is in use locally with the same name.
'Private Const ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN As Long = 8603 '  The DS cannot derive a service principal name (SPN) with which to mutually authenticate the target server because the server's domain has been deleted from the forest.
'Private Const ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC As Long = 8604 '  Writeable NCs prevent this DC from demoting.
'Private Const ERROR_DS_DUPLICATE_ID_FOUND As Long = 8605 '  The requested object has a non-unique identifier and cannot be retrieved.
'Private Const ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT As Long = 8606 '  Insufficient attributes were given to create an object. This object may not exist because it may have been deleted and already garbage collected.
'Private Const ERROR_DS_GROUP_CONVERSION_ERROR As Long = 8607 '  The group cannot be converted due to attribute restrictions on the requested group type.
'Private Const ERROR_DS_CANT_MOVE_APP_BASIC_GROUP As Long = 8608 '  Cross-domain move of non-empty basic application groups is not allowed.
'Private Const ERROR_DS_CANT_MOVE_APP_QUERY_GROUP As Long = 8609 '  Cross-domain move of non-empty query based application groups is not allowed.
'Private Const ERROR_DS_ROLE_NOT_VERIFIED As Long = 8610 '  The FSMO role ownership could not be verified because its directory partition has not replicated successfully with at least one replication partner.
'Private Const ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL As Long = 8611 '  The target container for a redirection of a well known object container cannot already be a special container.
'Private Const ERROR_DS_DOMAIN_RENAME_IN_PROGRESS As Long = 8612 '  The Directory Service cannot perform the requested operation because a domain rename operation is in progress.
'Private Const ERROR_DS_EXISTING_AD_CHILD_NC As Long = 8613 '  The directory service detected a child partition below the requested partition name. The partition hierarchy must be created in a top down method.
'Private Const ERROR_DS_REPL_LIFETIME_EXCEEDED As Long = 8614 '  The directory service cannot replicate with this server because the time since the last replication with this server has exceeded the tombstone lifetime.
'Private Const ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER As Long = 8615 '  The requested operation is not allowed on an object under the system container.
'Private Const ERROR_DS_LDAP_SEND_QUEUE_FULL As Long = 8616 '  The LDAP servers network send queue has filled up because the client is not processing the results of its requests fast enough. No more requests will be processed until the client catches up. If the client does not catch up then it will be disconnected.
'Private Const ERROR_DS_DRA_OUT_SCHEDULE_WINDOW As Long = 8617 '  The scheduled replication did not take place because the system was too busy to execute the request within the schedule window. The replication queue is overloaded. Consider reducing the number of partners or decreasing the scheduled replication frequency.
'Private Const ERROR_DS_POLICY_NOT_KNOWN As Long = 8618 '  At this time, it cannot be determined if the branch replication policy is available on the hub domain controller. Please retry at a later time to account for replication latencies.
'Private Const ERROR_NO_SITE_SETTINGS_OBJECT As Long = 8619 '  The site settings object for the specified site does not exist.
'Private Const ERROR_NO_SECRETS As Long = 8620 '  The local account store does not contain secret material for the specified account.
'Private Const ERROR_NO_WRITABLE_DC_FOUND As Long = 8621 '  Could not find a writable domain controller in the domain.
'Private Const ERROR_DS_NO_SERVER_OBJECT As Long = 8622 '  The server object for the domain controller does not exist.
'Private Const ERROR_DS_NO_NTDSA_OBJECT As Long = 8623 '  The NTDS Settings object for the domain controller does not exist.
'Private Const ERROR_DS_NON_ASQ_SEARCH As Long = 8624 '  The requested search operation is not supported for ASQ searches.
'Private Const ERROR_DS_AUDIT_FAILURE As Long = 8625 '  A required audit event could not be generated for the operation.
'Private Const ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE As Long = 8626 '  The search flags for the attribute are invalid. The subtree index bit is valid only on single valued attributes.
'Private Const ERROR_DS_INVALID_SEARCH_FLAG_TUPLE As Long = 8627 '  The search flags for the attribute are invalid. The tuple index bit is valid only on attributes of Unicode strings.
'Private Const ERROR_DS_HIERARCHY_TABLE_TOO_DEEP As Long = 8628 '  The address books are nested too deeply. Failed to build the hierarchy table.
'Private Const ERROR_DS_DRA_CORRUPT_UTD_VECTOR As Long = 8629 '  The specified up-to-date-ness vector is corrupt.
'Private Const ERROR_DS_DRA_SECRETS_DENIED As Long = 8630 '  The request to replicate secrets is denied.
'Private Const ERROR_DS_RESERVED_MAPI_ID As Long = 8631 '  Schema update failed: The MAPI identifier is reserved.
'Private Const ERROR_DS_MAPI_ID_NOT_AVAILABLE As Long = 8632 '  Schema update failed: There are no MAPI identifiers available.
'Private Const ERROR_DS_DRA_MISSING_KRBTGT_SECRET As Long = 8633 '  The replication operation failed because the required attributes of the local krbtgt object are missing.
'Private Const ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST As Long = 8634 '  The domain name of the trusted domain already exists in the forest.
'Private Const ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST As Long = 8635 '  The flat name of the trusted domain already exists in the forest.
'Private Const ERROR_INVALID_USER_PRINCIPAL_NAME As Long = 8636 '  The User Principal Name (UPN) is invalid.
'Private Const ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS As Long = 8637 '  OID mapped groups cannot have members.
'Private Const ERROR_DS_OID_NOT_FOUND As Long = 8638 '  The specified OID cannot be found.
'Private Const ERROR_DS_DRA_RECYCLED_TARGET As Long = 8639 '  The replication operation failed because the target object referred by a link value is recycled.
'Private Const ERROR_DS_DISALLOWED_NC_REDIRECT As Long = 8640 '  The redirect operation failed because the target object is in a NC different from the domain NC of the current domain controller.
'Private Const ERROR_DS_HIGH_ADLDS_FFL As Long = 8641 '  The functional level of the AD LDS configuration set cannot be lowered to the requested value.
'Private Const ERROR_DS_HIGH_DSA_VERSION As Long = 8642 '  The functional level of the domain (or forest) cannot be lowered to the requested value.
'Private Const ERROR_DS_LOW_ADLDS_FFL As Long = 8643 '  The functional level of the AD LDS configuration set cannot be raised to the requested value, because there exist one or more ADLDS instances that are at a lower incompatible functional level.
'Private Const ERROR_DOMAIN_SID_SAME_AS_LOCAL_WORKSTATION As Long = 8644 '  The domain join cannot be completed because the SID of the domain you attempted to join was identical to the SID of this machine. This is a symptom of an improperly cloned operating system install.  You should run sysprep on this machine in order to generate a new machine SID. Please see http://go.microsoft.com/fwlink/?LinkId=168895 for more information.
'Private Const ERROR_DS_UNDELETE_SAM_VALIDATION_FAILED As Long = 8645 '  The undelete operation failed because the Sam Account Name or Additional Sam Account Name of the object being undeleted conflicts with an existing live object.
'Private Const ERROR_INCORRECT_ACCOUNT_TYPE As Long = 8646 '  The system is not authoritative for the specified account and therefore cannot complete the operation. Please retry the operation using the provider associated with this account. If this is an online provider please use the provider's online site.
'Private Const ERROR_DS_SPN_VALUE_NOT_UNIQUE_IN_FOREST As Long = 8647 '  The operation failed because SPN value provided for addition/modification is not unique forest-wide.
'Private Const ERROR_DS_UPN_VALUE_NOT_UNIQUE_IN_FOREST As Long = 8648 '  The operation failed because UPN value provided for addition/modification is not unique forest-wide.
'Private Const DNS_ERROR_RCODE_FORMAT_ERROR As Long = 9001 '  DNS server unable to interpret format.
'Private Const DNS_ERROR_RCODE_SERVER_FAILURE As Long = 9002 '  DNS server failure.
'Private Const DNS_ERROR_RCODE_NAME_ERROR As Long = 9003 '  DNS name does not exist.
'Private Const DNS_ERROR_RCODE_NOT_IMPLEMENTED As Long = 9004 '  DNS request not supported by name server.
'Private Const DNS_ERROR_RCODE_REFUSED As Long = 9005 '  DNS operation refused.
'Private Const DNS_ERROR_RCODE_YXDOMAIN As Long = 9006 '  DNS name that ought not exist, does exist.
'Private Const DNS_ERROR_RCODE_YXRRSET As Long = 9007 '  DNS RR set that ought not exist, does exist.
'Private Const DNS_ERROR_RCODE_NXRRSET As Long = 9008 '  DNS RR set that ought to exist, does not exist.
'Private Const DNS_ERROR_RCODE_NOTAUTH As Long = 9009 '  DNS server not authoritative for zone.
'Private Const DNS_ERROR_RCODE_NOTZONE As Long = 9010 '  DNS name in update or prereq is not in zone.
'Private Const DNS_ERROR_RCODE_BADSIG As Long = 9016 '  DNS signature failed to verify.
'Private Const DNS_ERROR_RCODE_BADKEY As Long = 9017 '  DNS bad key.
'Private Const DNS_ERROR_RCODE_BADTIME As Long = 9018 '  DNS signature validity expired.
'Private Const DNS_ERROR_KEYMASTER_REQUIRED As Long = 9101 '  Only the DNS server acting as the key master for the zone may perform this operation.
'Private Const DNS_ERROR_NOT_ALLOWED_ON_SIGNED_ZONE As Long = 9102 '  This operation is not allowed on a zone that is signed or has signing keys.
'Private Const DNS_ERROR_NSEC3_INCOMPATIBLE_WITH_RSA_SHA1 As Long = 9103 '  NSEC3 is not compatible with the RSA-SHA-1 algorithm. Choose a different algorithm or use NSEC.
'Private Const DNS_ERROR_NOT_ENOUGH_SIGNING_KEY_DESCRIPTORS As Long = 9104 '  The zone does not have enough signing keys. There must be at least one key signing key (KSK) and at least one zone signing key (ZSK).
'Private Const DNS_ERROR_UNSUPPORTED_ALGORITHM As Long = 9105 '  The specified algorithm is not supported.
'Private Const DNS_ERROR_INVALID_KEY_SIZE As Long = 9106 '  The specified key size is not supported.
'Private Const DNS_ERROR_SIGNING_KEY_NOT_ACCESSIBLE As Long = 9107 '  One or more of the signing keys for a zone are not accessible to the DNS server. Zone signing will not be operational until this error is resolved.
'Private Const DNS_ERROR_KSP_DOES_NOT_SUPPORT_PROTECTION As Long = 9108 '  The specified key storage provider does not support DPAPI++ data protection. Zone signing will not be operational until this error is resolved.
'Private Const DNS_ERROR_UNEXPECTED_DATA_PROTECTION_ERROR As Long = 9109 '  An unexpected DPAPI++ error was encountered. Zone signing will not be operational until this error is resolved.
'Private Const DNS_ERROR_UNEXPECTED_CNG_ERROR As Long = 9110 '  An unexpected crypto error was encountered. Zone signing may not be operational until this error is resolved.
'Private Const DNS_ERROR_UNKNOWN_SIGNING_PARAMETER_VERSION As Long = 9111 '  The DNS server encountered a signing key with an unknown version. Zone signing will not be operational until this error is resolved.
'Private Const DNS_ERROR_KSP_NOT_ACCESSIBLE As Long = 9112 '  The specified key service provider cannot be opened by the DNS server.
'Private Const DNS_ERROR_TOO_MANY_SKDS As Long = 9113 '  The DNS server cannot accept any more signing keys with the specified algorithm and KSK flag value for this zone.
'Private Const DNS_ERROR_INVALID_ROLLOVER_PERIOD As Long = 9114 '  The specified rollover period is invalid.
'Private Const DNS_ERROR_INVALID_INITIAL_ROLLOVER_OFFSET As Long = 9115 '  The specified initial rollover offset is invalid.
'Private Const DNS_ERROR_ROLLOVER_IN_PROGRESS As Long = 9116 '  The specified signing key is already in process of rolling over keys.
'Private Const DNS_ERROR_STANDBY_KEY_NOT_PRESENT As Long = 9117 '  The specified signing key does not have a standby key to revoke.
'Private Const DNS_ERROR_NOT_ALLOWED_ON_ZSK As Long = 9118 '  This operation is not allowed on a zone signing key (ZSK).
'Private Const DNS_ERROR_NOT_ALLOWED_ON_ACTIVE_SKD As Long = 9119 '  This operation is not allowed on an active signing key.
'Private Const DNS_ERROR_ROLLOVER_ALREADY_QUEUED As Long = 9120 '  The specified signing key is already queued for rollover.
'Private Const DNS_ERROR_NOT_ALLOWED_ON_UNSIGNED_ZONE As Long = 9121 '  This operation is not allowed on an unsigned zone.
'Private Const DNS_ERROR_BAD_KEYMASTER As Long = 9122 '  This operation could not be completed because the DNS server listed as the current key master for this zone is down or misconfigured. Resolve the problem on the current key master for this zone or use another DNS server to seize the key master role.
'Private Const DNS_ERROR_INVALID_SIGNATURE_VALIDITY_PERIOD As Long = 9123 '  The specified signature validity period is invalid.
'Private Const DNS_ERROR_INVALID_NSEC3_ITERATION_COUNT As Long = 9124 '  The specified NSEC3 iteration count is higher than allowed by the minimum key length used in the zone.
'Private Const DNS_ERROR_DNSSEC_IS_DISABLED As Long = 9125 '  This operation could not be completed because the DNS server has been configured with DNSSEC features disabled. Enable DNSSEC on the DNS server.
'Private Const DNS_ERROR_INVALID_XML As Long = 9126 '  This operation could not be completed because the XML stream received is empty or syntactically invalid.
'Private Const DNS_ERROR_NO_VALID_TRUST_ANCHORS As Long = 9127 '  This operation completed, but no trust anchors were added because all of the trust anchors received were either invalid, unsupported, expired, or would not become valid in less than 30 days.
'Private Const DNS_ERROR_ROLLOVER_NOT_POKEABLE As Long = 9128 '  The specified signing key is not waiting for parental DS update.
'Private Const DNS_ERROR_NSEC3_NAME_COLLISION As Long = 9129 '  Hash collision detected during NSEC3 signing. Specify a different user-provided salt, or use a randomly generated salt, and attempt to sign the zone again.
'Private Const DNS_ERROR_NSEC_INCOMPATIBLE_WITH_NSEC3_RSA_SHA1 As Long = 9130 '  NSEC is not compatible with the NSEC3-RSA-SHA-1 algorithm. Choose a different algorithm or use NSEC3.
'Private Const DNS_INFO_NO_RECORDS As Long = 9501 '  No records found for given DNS query.
'Private Const DNS_ERROR_BAD_PACKET As Long = 9502 '  Bad DNS packet.
'Private Const DNS_ERROR_NO_PACKET As Long = 9503 '  No DNS packet.
'Private Const DNS_ERROR_RCODE As Long = 9504 '  DNS error, check rcode.
'Private Const DNS_ERROR_UNSECURE_PACKET As Long = 9505 '  Unsecured DNS packet.
'Private Const DNS_REQUEST_PENDING As Long = 9506 '  DNS query request is pending.
'Private Const DNS_ERROR_INVALID_TYPE As Long = 9551 '  Invalid DNS type.
'Private Const DNS_ERROR_INVALID_IP_ADDRESS As Long = 9552 '  Invalid IP address.
'Private Const DNS_ERROR_INVALID_PROPERTY As Long = 9553 '  Invalid property.
'Private Const DNS_ERROR_TRY_AGAIN_LATER As Long = 9554 '  Try DNS operation again later.
'Private Const DNS_ERROR_NOT_UNIQUE As Long = 9555 '  Record for given name and type is not unique.
'Private Const DNS_ERROR_NON_RFC_NAME As Long = 9556 '  DNS name does not comply with RFC specifications.
'Private Const DNS_STATUS_FQDN As Long = 9557 '  DNS name is a fully-qualified DNS name.
'Private Const DNS_STATUS_DOTTED_NAME As Long = 9558 '  DNS name is dotted (multi-label).
'Private Const DNS_STATUS_SINGLE_PART_NAME As Long = 9559 '  DNS name is a single-part name.
'Private Const DNS_ERROR_INVALID_NAME_CHAR As Long = 9560 '  DNS name contains an invalid character.
'Private Const DNS_ERROR_NUMERIC_NAME As Long = 9561 '  DNS name is entirely numeric.
'Private Const DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER As Long = 9562 '  The operation requested is not permitted on a DNS root server.
'Private Const DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION As Long = 9563 '  The record could not be created because this part of the DNS namespace has been delegated to another server.
'Private Const DNS_ERROR_CANNOT_FIND_ROOT_HINTS As Long = 9564 '  The DNS server could not find a set of root hints.
'Private Const DNS_ERROR_INCONSISTENT_ROOT_HINTS As Long = 9565 '  The DNS server found root hints but they were not consistent across all adapters.
'Private Const DNS_ERROR_DWORD_VALUE_TOO_SMALL As Long = 9566 '  The specified value is too small for this parameter.
'Private Const DNS_ERROR_DWORD_VALUE_TOO_LARGE As Long = 9567 '  The specified value is too large for this parameter.
'Private Const DNS_ERROR_BACKGROUND_LOADING As Long = 9568 '  This operation is not allowed while the DNS server is loading zones in the background. Please try again later.
'Private Const DNS_ERROR_NOT_ALLOWED_ON_RODC As Long = 9569 '  The operation requested is not permitted on against a DNS server running on a read-only DC.
'Private Const DNS_ERROR_NOT_ALLOWED_UNDER_DNAME As Long = 9570 '  No data is allowed to exist underneath a DNAME record.
'Private Const DNS_ERROR_DELEGATION_REQUIRED As Long = 9571 '  This operation requires credentials delegation.
'Private Const DNS_ERROR_INVALID_POLICY_TABLE As Long = 9572 '  Name resolution policy table has been corrupted. DNS resolution will fail until it is fixed. Contact your network administrator.
'Private Const DNS_ERROR_ZONE_DOES_NOT_EXIST As Long = 9601 '  DNS zone does not exist.
'Private Const DNS_ERROR_NO_ZONE_INFO As Long = 9602 '  DNS zone information not available.
'Private Const DNS_ERROR_INVALID_ZONE_OPERATION As Long = 9603 '  Invalid operation for DNS zone.
'Private Const DNS_ERROR_ZONE_CONFIGURATION_ERROR As Long = 9604 '  Invalid DNS zone configuration.
'Private Const DNS_ERROR_ZONE_HAS_NO_SOA_RECORD As Long = 9605 '  DNS zone has no start of authority (SOA) record.
'Private Const DNS_ERROR_ZONE_HAS_NO_NS_RECORDS As Long = 9606 '  DNS zone has no Name Server (NS) record.
'Private Const DNS_ERROR_ZONE_LOCKED As Long = 9607 '  DNS zone is locked.
'Private Const DNS_ERROR_ZONE_CREATION_FAILED As Long = 9608 '  DNS zone creation failed.
'Private Const DNS_ERROR_ZONE_ALREADY_EXISTS As Long = 9609 '  DNS zone already exists.
'Private Const DNS_ERROR_AUTOZONE_ALREADY_EXISTS As Long = 9610 '  DNS automatic zone already exists.
'Private Const DNS_ERROR_INVALID_ZONE_TYPE As Long = 9611 '  Invalid DNS zone type.
'Private Const DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP As Long = 9612 '  Secondary DNS zone requires master IP address.
'Private Const DNS_ERROR_ZONE_NOT_SECONDARY As Long = 9613 '  DNS zone not secondary.
'Private Const DNS_ERROR_NEED_SECONDARY_ADDRESSES As Long = 9614 '  Need secondary IP address.
'Private Const DNS_ERROR_WINS_INIT_FAILED As Long = 9615 '  WINS initialization failed.
'Private Const DNS_ERROR_NEED_WINS_SERVERS As Long = 9616 '  Need WINS servers.
'Private Const DNS_ERROR_NBSTAT_INIT_FAILED As Long = 9617 '  NBTSTAT initialization call failed.
'Private Const DNS_ERROR_SOA_DELETE_INVALID As Long = 9618 '  Invalid delete of start of authority (SOA)
'Private Const DNS_ERROR_FORWARDER_ALREADY_EXISTS As Long = 9619 '  A conditional forwarding zone already exists for that name.
'Private Const DNS_ERROR_ZONE_REQUIRES_MASTER_IP As Long = 9620 '  This zone must be configured with one or more master DNS server IP addresses.
'Private Const DNS_ERROR_ZONE_IS_SHUTDOWN As Long = 9621 '  The operation cannot be performed because this zone is shut down.
'Private Const DNS_ERROR_ZONE_LOCKED_FOR_SIGNING As Long = 9622 '  This operation cannot be performed because the zone is currently being signed. Please try again later.
'Private Const DNS_ERROR_PRIMARY_REQUIRES_DATAFILE As Long = 9651 '  Primary DNS zone requires datafile.
'Private Const DNS_ERROR_INVALID_DATAFILE_NAME As Long = 9652 '  Invalid datafile name for DNS zone.
'Private Const DNS_ERROR_DATAFILE_OPEN_FAILURE As Long = 9653 '  Failed to open datafile for DNS zone.
'Private Const DNS_ERROR_FILE_WRITEBACK_FAILED As Long = 9654 '  Failed to write datafile for DNS zone.
'Private Const DNS_ERROR_DATAFILE_PARSING As Long = 9655 '  Failure while reading datafile for DNS zone.
'Private Const DNS_ERROR_RECORD_DOES_NOT_EXIST As Long = 9701 '  DNS record does not exist.
'Private Const DNS_ERROR_RECORD_FORMAT As Long = 9702 '  DNS record format error.
'Private Const DNS_ERROR_NODE_CREATION_FAILED As Long = 9703 '  Node creation failure in DNS.
'Private Const DNS_ERROR_UNKNOWN_RECORD_TYPE As Long = 9704 '  Unknown DNS record type.
'Private Const DNS_ERROR_RECORD_TIMED_OUT As Long = 9705 '  DNS record timed out.
'Private Const DNS_ERROR_NAME_NOT_IN_ZONE As Long = 9706 '  Name not in DNS zone.
'Private Const DNS_ERROR_CNAME_LOOP As Long = 9707 '  CNAME loop detected.
'Private Const DNS_ERROR_NODE_IS_CNAME As Long = 9708 '  Node is a CNAME DNS record.
'Private Const DNS_ERROR_CNAME_COLLISION As Long = 9709 '  A CNAME record already exists for given name.
'Private Const DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT As Long = 9710 '  Record only at DNS zone root.
'Private Const DNS_ERROR_RECORD_ALREADY_EXISTS As Long = 9711 '  DNS record already exists.
'Private Const DNS_ERROR_SECONDARY_DATA As Long = 9712 '  Secondary DNS zone data error.
'Private Const DNS_ERROR_NO_CREATE_CACHE_DATA As Long = 9713 '  Could not create DNS cache data.
'Private Const DNS_ERROR_NAME_DOES_NOT_EXIST As Long = 9714 '  DNS name does not exist.
'Private Const DNS_WARNING_PTR_CREATE_FAILED As Long = 9715 '  Could not create pointer (PTR) record.
'Private Const DNS_WARNING_DOMAIN_UNDELETED As Long = 9716 '  DNS domain was undeleted.
'Private Const DNS_ERROR_DS_UNAVAILABLE As Long = 9717 '  The directory service is unavailable.
'Private Const DNS_ERROR_DS_ZONE_ALREADY_EXISTS As Long = 9718 '  DNS zone already exists in the directory service.
'Private Const DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE As Long = 9719 '  DNS server not creating or reading the boot file for the directory service integrated DNS zone.
'Private Const DNS_ERROR_NODE_IS_DNAME As Long = 9720 '  Node is a DNAME DNS record.
'Private Const DNS_ERROR_DNAME_COLLISION As Long = 9721 '  A DNAME record already exists for given name.
'Private Const DNS_ERROR_ALIAS_LOOP As Long = 9722 '  An alias loop has been detected with either CNAME or DNAME records.
'Private Const DNS_INFO_AXFR_COMPLETE As Long = 9751 '  DNS AXFR (zone transfer) complete.
'Private Const DNS_ERROR_AXFR As Long = 9752 '  DNS zone transfer failed.
'Private Const DNS_INFO_ADDED_LOCAL_WINS As Long = 9753 '  Added local WINS server.
'Private Const DNS_STATUS_CONTINUE_NEEDED As Long = 9801 '  Secure update call needs to continue update request.
'Private Const DNS_ERROR_NO_TCPIP As Long = 9851 '  TCP/IP network protocol not installed.
'Private Const DNS_ERROR_NO_DNS_SERVERS As Long = 9852 '  No DNS servers configured for local system.
'Private Const DNS_ERROR_DP_DOES_NOT_EXIST As Long = 9901 '  The specified directory partition does not exist.
'Private Const DNS_ERROR_DP_ALREADY_EXISTS As Long = 9902 '  The specified directory partition already exists.
'Private Const DNS_ERROR_DP_NOT_ENLISTED As Long = 9903 '  This DNS server is not enlisted in the specified directory partition.
'Private Const DNS_ERROR_DP_ALREADY_ENLISTED As Long = 9904 '  This DNS server is already enlisted in the specified directory partition.
'Private Const DNS_ERROR_DP_NOT_AVAILABLE As Long = 9905 '  The directory partition is not available at this time. Please wait a few minutes and try again.
'Private Const DNS_ERROR_DP_FSMO_ERROR As Long = 9906 '  The operation failed because the domain naming master FSMO role could not be reached. The domain controller holding the domain naming master FSMO role is down or unable to service the request or is not running Windows Server 2003 or later.
'Private Const DNS_ERROR_ZONESCOPE_ALREADY_EXISTS As Long = 9951 '  The scope already exists for the zone.
'Private Const DNS_ERROR_ZONESCOPE_DOES_NOT_EXIST As Long = 9952 '  The scope does not exist for the zone.
'Private Const DNS_ERROR_DEFAULT_ZONESCOPE As Long = 9953 '  The scope is the same as the default zone scope.
'Private Const DNS_ERROR_INVALID_ZONESCOPE_NAME As Long = 9954 '  The scope name contains invalid characters.
'Private Const DNS_ERROR_NOT_ALLOWED_WITH_ZONESCOPES As Long = 9955 '  Operation not allowed when the zone has scopes.
'Private Const DNS_ERROR_LOAD_ZONESCOPE_FAILED As Long = 9956 '  Failed to load zone scope.
'Private Const DNS_ERROR_ZONESCOPE_FILE_WRITEBACK_FAILED As Long = 9957 '  Failed to write data file for DNS zone scope. Please verify the file exists and is writable.
'Private Const DNS_ERROR_INVALID_SCOPE_NAME As Long = 9958 '  The scope name contains invalid characters.
'Private Const DNS_ERROR_SCOPE_DOES_NOT_EXIST As Long = 9959 '  The scope does not exist.
'Private Const DNS_ERROR_DEFAULT_SCOPE As Long = 9960 '  The scope is the same as the default scope.
'Private Const DNS_ERROR_INVALID_SCOPE_OPERATION As Long = 9961 '  The operation is invalid on the scope.
'Private Const DNS_ERROR_SCOPE_LOCKED As Long = 9962 '  The scope is locked.
'Private Const DNS_ERROR_SCOPE_ALREADY_EXISTS As Long = 9963 '  The scope already exists.
'Private Const WSAEINTR As Long = 10004 '  A blocking operation was interrupted by a call to WSACancelBlockingCall.
'Private Const WSAEBADF As Long = 10009 '  The file handle supplied is not valid.
'Private Const WSAEACCES As Long = 10013 '  An attempt was made to access a socket in a way forbidden by its access permissions.
'Private Const WSAEFAULT As Long = 10014 '  The system detected an invalid pointer address in attempting to use a pointer argument in a call.
'Private Const WSAEINVAL As Long = 10022 '  An invalid argument was supplied.
'Private Const WSAEMFILE As Long = 10024 '  Too many open sockets.
'Private Const WSAEWOULDBLOCK As Long = 10035 '  A non-blocking socket operation could not be completed immediately.
'Private Const WSAEINPROGRESS As Long = 10036 '  A blocking operation is currently executing.
'Private Const WSAEALREADY As Long = 10037 '  An operation was attempted on a non-blocking socket that already had an operation in progress.
'Private Const WSAENOTSOCK As Long = 10038 '  An operation was attempted on something that is not a socket.
'Private Const WSAEDESTADDRREQ As Long = 10039 '  A required address was omitted from an operation on a socket.
'Private Const WSAEMSGSIZE As Long = 10040 '  A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.
'Private Const WSAEPROTOTYPE As Long = 10041 '  A protocol was specified in the socket function call that does not support the semantics of the socket type requested.
'Private Const WSAENOPROTOOPT As Long = 10042 '  An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call.
'Private Const WSAEPROTONOSUPPORT As Long = 10043 '  The requested protocol has not been configured into the system, or no implementation for it exists.
'Private Const WSAESOCKTNOSUPPORT As Long = 10044 '  The support for the specified socket type does not exist in this address family.
'Private Const WSAEOPNOTSUPP As Long = 10045 '  The attempted operation is not supported for the type of object referenced.
'Private Const WSAEPFNOSUPPORT As Long = 10046 '  The protocol family has not been configured into the system or no implementation for it exists.
'Private Const WSAEAFNOSUPPORT As Long = 10047 '  An address incompatible with the requested protocol was used.
'Private Const WSAEADDRINUSE As Long = 10048 '  Only one usage of each socket address (protocol/network address/port) is normally permitted.
'Private Const WSAEADDRNOTAVAIL As Long = 10049 '  The requested address is not valid in its context.
'Private Const WSAENETDOWN As Long = 10050 '  A socket operation encountered a dead network.
'Private Const WSAENETUNREACH As Long = 10051 '  A socket operation was attempted to an unreachable network.
'Private Const WSAENETRESET As Long = 10052 '  The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress.
'Private Const WSAECONNABORTED As Long = 10053 '  An established connection was aborted by the software in your host machine.
'Private Const WSAECONNRESET As Long = 10054 '  An existing connection was forcibly closed by the remote host.
'Private Const WSAENOBUFS As Long = 10055 '  An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
'Private Const WSAEISCONN As Long = 10056 '  A connect request was made on an already connected socket.
'Private Const WSAENOTCONN As Long = 10057 '  A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
'Private Const WSAESHUTDOWN As Long = 10058 '  A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call.
'Private Const WSAETOOMANYREFS As Long = 10059 '  Too many references to some kernel object.
'Private Const WSAETIMEDOUT As Long = 10060 '  A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
'Private Const WSAECONNREFUSED As Long = 10061 '  No connection could be made because the target machine actively refused it.
'Private Const WSAELOOP As Long = 10062 '  Cannot translate name.
'Private Const WSAENAMETOOLONG As Long = 10063 '  Name component or name was too long.
'Private Const WSAEHOSTDOWN As Long = 10064 '  A socket operation failed because the destination host was down.
'Private Const WSAEHOSTUNREACH As Long = 10065 '  A socket operation was attempted to an unreachable host.
'Private Const WSAENOTEMPTY As Long = 10066 '  Cannot remove a directory that is not empty.
'Private Const WSAEPROCLIM As Long = 10067 '  A Windows Sockets implementation may have a limit on the number of applications that may use it simultaneously.
'Private Const WSAEUSERS As Long = 10068 '  Ran out of quota.
'Private Const WSAEDQUOT As Long = 10069 '  Ran out of disk quota.
'Private Const WSAESTALE As Long = 10070 '  File handle reference is no longer available.
'Private Const WSAEREMOTE As Long = 10071 '  Item is not available locally.
'Private Const WSASYSNOTREADY As Long = 10091 '  WSAStartup cannot function at this time because the underlying system it uses to provide network services is currently unavailable.
'Private Const WSAVERNOTSUPPORTED As Long = 10092 '  The Windows Sockets version requested is not supported.
'Private Const WSANOTINITIALISED As Long = 10093 '  Either the application has not called WSAStartup, or WSAStartup failed.
'Private Const WSAEDISCON As Long = 10101 '  Returned by WSARecv or WSARecvFrom to indicate the remote party has initiated a graceful shutdown sequence.
'Private Const WSAENOMORE As Long = 10102 '  No more results can be returned by WSALookupServiceNext.
'Private Const WSAECANCELLED As Long = 10103 '  A call to WSALookupServiceEnd was made while this call was still processing. The call has been canceled.
'Private Const WSAEINVALIDPROCTABLE As Long = 10104 '  The procedure call table is invalid.
'Private Const WSAEINVALIDPROVIDER As Long = 10105 '  The requested service provider is invalid.
'Private Const WSAEPROVIDERFAILEDINIT As Long = 10106 '  The requested service provider could not be loaded or initialized.
'Private Const WSASYSCALLFAILURE As Long = 10107 '  A system call has failed.
'Private Const WSASERVICE_NOT_FOUND As Long = 10108 '  No such service is known. The service cannot be found in the specified name space.
'Private Const WSATYPE_NOT_FOUND As Long = 10109 '  The specified class was not found.
'Private Const WSA_E_NO_MORE As Long = 10110 '  No more results can be returned by WSALookupServiceNext.
'Private Const WSA_E_CANCELLED As Long = 10111 '  A call to WSALookupServiceEnd was made while this call was still processing. The call has been canceled.
'Private Const WSAEREFUSED As Long = 10112 '  A database query failed because it was actively refused.
'Private Const WSAHOST_NOT_FOUND As Long = 11001 '  No such host is known.
'Private Const WSATRY_AGAIN As Long = 11002 '  This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
'Private Const WSANO_RECOVERY As Long = 11003 '  A non-recoverable error occurred during a database lookup.
'Private Const WSANO_DATA As Long = 11004 '  The requested name is valid, but no data of the requested type was found.
'Private Const WSA_QOS_RECEIVERS As Long = 11005 '  At least one reserve has arrived.
'Private Const WSA_QOS_SENDERS As Long = 11006 '  At least one path has arrived.
'Private Const WSA_QOS_NO_SENDERS As Long = 11007 '  There are no senders.
'Private Const WSA_QOS_NO_RECEIVERS As Long = 11008 '  There are no receivers.
'Private Const WSA_QOS_REQUEST_CONFIRMED As Long = 11009 '  Reserve has been confirmed.
'Private Const WSA_QOS_ADMISSION_FAILURE As Long = 11010 '  Error due to lack of resources.
'Private Const WSA_QOS_POLICY_FAILURE As Long = 11011 '  Rejected for administrative reasons - bad credentials.
'Private Const WSA_QOS_BAD_STYLE As Long = 11012 '  Unknown or conflicting style.
'Private Const WSA_QOS_BAD_OBJECT As Long = 11013 '  Problem with some part of the filterspec or providerspecific buffer in general.
'Private Const WSA_QOS_TRAFFIC_CTRL_ERROR As Long = 11014 '  Problem with some part of the flowspec.
'Private Const WSA_QOS_GENERIC_ERROR As Long = 11015 '  General QOS error.
'Private Const WSA_QOS_ESERVICETYPE As Long = 11016 '  An invalid or unrecognized service type was found in the flowspec.
'Private Const WSA_QOS_EFLOWSPEC As Long = 11017 '  An invalid or inconsistent flowspec was found in the QOS structure.
'Private Const WSA_QOS_EPROVSPECBUF As Long = 11018 '  Invalid QOS provider-specific buffer.
'Private Const WSA_QOS_EFILTERSTYLE As Long = 11019 '  An invalid QOS filter style was used.
'Private Const WSA_QOS_EFILTERTYPE As Long = 11020 '  An invalid QOS filter type was used.
'Private Const WSA_QOS_EFILTERCOUNT As Long = 11021 '  An incorrect number of QOS FILTERSPECs were specified in the FLOWDESCRIPTOR.
'Private Const WSA_QOS_EOBJLENGTH As Long = 11022 '  An object with an invalid ObjectLength field was specified in the QOS provider-specific buffer.
'Private Const WSA_QOS_EFLOWCOUNT As Long = 11023 '  An incorrect number of flow descriptors was specified in the QOS structure.
'Private Const WSA_QOS_EUNKOWNPSOBJ As Long = 11024 '  An unrecognized object was found in the QOS provider-specific buffer.
'Private Const WSA_QOS_EPOLICYOBJ As Long = 11025 '  An invalid policy object was found in the QOS provider-specific buffer.
'Private Const WSA_QOS_EFLOWDESC As Long = 11026 '  An invalid QOS flow descriptor was found in the flow descriptor list.
'Private Const WSA_QOS_EPSFLOWSPEC As Long = 11027 '  An invalid or inconsistent flowspec was found in the QOS provider specific buffer.
'Private Const WSA_QOS_EPSFILTERSPEC As Long = 11028 '  An invalid FILTERSPEC was found in the QOS provider-specific buffer.
'Private Const WSA_QOS_ESDMODEOBJ As Long = 11029 '  An invalid shape discard mode object was found in the QOS provider specific buffer.
'Private Const WSA_QOS_ESHAPERATEOBJ As Long = 11030 '  An invalid shaping rate object was found in the QOS provider-specific buffer.
'Private Const WSA_QOS_RESERVED_PETYPE As Long = 11031 '  A reserved policy element was found in the QOS provider-specific buffer.
'Private Const WSA_SECURE_HOST_NOT_FOUND As Long = 11032 '  No such host is known securely.
'Private Const WSA_IPSEC_NAME_POLICY_ERROR As Long = 11033 '  Name based IPSEC policy could not be added.
'Private Const ERROR_IPSEC_QM_POLICY_EXISTS As Long = 13000 '  The specified quick mode policy already exists.
'Private Const ERROR_IPSEC_QM_POLICY_NOT_FOUND As Long = 13001 '  The specified quick mode policy was not found.
'Private Const ERROR_IPSEC_QM_POLICY_IN_USE As Long = 13002 '  The specified quick mode policy is being used.
'Private Const ERROR_IPSEC_MM_POLICY_EXISTS As Long = 13003 '  The specified main mode policy already exists.
'Private Const ERROR_IPSEC_MM_POLICY_NOT_FOUND As Long = 13004 '  The specified main mode policy was not found
'Private Const ERROR_IPSEC_MM_POLICY_IN_USE As Long = 13005 '  The specified main mode policy is being used.
'Private Const ERROR_IPSEC_MM_FILTER_EXISTS As Long = 13006 '  The specified main mode filter already exists.
'Private Const ERROR_IPSEC_MM_FILTER_NOT_FOUND As Long = 13007 '  The specified main mode filter was not found.
'Private Const ERROR_IPSEC_TRANSPORT_FILTER_EXISTS As Long = 13008 '  The specified transport mode filter already exists.
'Private Const ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND As Long = 13009 '  The specified transport mode filter does not exist.
'Private Const ERROR_IPSEC_MM_AUTH_EXISTS As Long = 13010 '  The specified main mode authentication list exists.
'Private Const ERROR_IPSEC_MM_AUTH_NOT_FOUND As Long = 13011 '  The specified main mode authentication list was not found.
'Private Const ERROR_IPSEC_MM_AUTH_IN_USE As Long = 13012 '  The specified main mode authentication list is being used.
'Private Const ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND As Long = 13013 '  The specified default main mode policy was not found.
'Private Const ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND As Long = 13014 '  The specified default main mode authentication list was not found.
'Private Const ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND As Long = 13015 '  The specified default quick mode policy was not found.
'Private Const ERROR_IPSEC_TUNNEL_FILTER_EXISTS As Long = 13016 '  The specified tunnel mode filter exists.
'Private Const ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND As Long = 13017 '  The specified tunnel mode filter was not found.
'Private Const ERROR_IPSEC_MM_FILTER_PENDING_DELETION As Long = 13018 '  The Main Mode filter is pending deletion.
'Private Const ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION As Long = 13019 '  The transport filter is pending deletion.
'Private Const ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION As Long = 13020 '  The tunnel filter is pending deletion.
'Private Const ERROR_IPSEC_MM_POLICY_PENDING_DELETION As Long = 13021 '  The Main Mode policy is pending deletion.
'Private Const ERROR_IPSEC_MM_AUTH_PENDING_DELETION As Long = 13022 '  The Main Mode authentication bundle is pending deletion.
'Private Const ERROR_IPSEC_QM_POLICY_PENDING_DELETION As Long = 13023 '  The Quick Mode policy is pending deletion.
'Private Const WARNING_IPSEC_MM_POLICY_PRUNED As Long = 13024 '  The Main Mode policy was successfully added, but some of the requested offers are not supported.
'Private Const WARNING_IPSEC_QM_POLICY_PRUNED As Long = 13025 '  The Quick Mode policy was successfully added, but some of the requested offers are not supported.
'Private Const ERROR_IPSEC_IKE_NEG_STATUS_BEGIN As Long = 13800 '   ERROR_IPSEC_IKE_NEG_STATUS_BEGIN
'Private Const ERROR_IPSEC_IKE_AUTH_FAIL As Long = 13801 '  IKE authentication credentials are unacceptable
'Private Const ERROR_IPSEC_IKE_ATTRIB_FAIL As Long = 13802 '  IKE security attributes are unacceptable
'Private Const ERROR_IPSEC_IKE_NEGOTIATION_PENDING As Long = 13803 '  IKE Negotiation in progress
'Private Const ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR As Long = 13804 '  General processing error
'Private Const ERROR_IPSEC_IKE_TIMED_OUT As Long = 13805 '  Negotiation timed out
'Private Const ERROR_IPSEC_IKE_NO_CERT As Long = 13806 '  IKE failed to find valid machine certificate. Contact your Network Security Administrator about installing a valid certificate in the appropriate Certificate Store.
'Private Const ERROR_IPSEC_IKE_SA_DELETED As Long = 13807 '  IKE SA deleted by peer before establishment completed
'Private Const ERROR_IPSEC_IKE_SA_REAPED As Long = 13808 '  IKE SA deleted before establishment completed
'Private Const ERROR_IPSEC_IKE_MM_ACQUIRE_DROP As Long = 13809 '  Negotiation request sat in Queue too long
'Private Const ERROR_IPSEC_IKE_QM_ACQUIRE_DROP As Long = 13810 '  Negotiation request sat in Queue too long
'Private Const ERROR_IPSEC_IKE_QUEUE_DROP_MM As Long = 13811 '  Negotiation request sat in Queue too long
'Private Const ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM As Long = 13812 '  Negotiation request sat in Queue too long
'Private Const ERROR_IPSEC_IKE_DROP_NO_RESPONSE As Long = 13813 '  No response from peer
'Private Const ERROR_IPSEC_IKE_MM_DELAY_DROP As Long = 13814 '  Negotiation took too long
'Private Const ERROR_IPSEC_IKE_QM_DELAY_DROP As Long = 13815 '  Negotiation took too long
'Private Const ERROR_IPSEC_IKE_ERROR As Long = 13816 '  Unknown error occurred
'Private Const ERROR_IPSEC_IKE_CRL_FAILED As Long = 13817 '  Certificate Revocation Check failed
'Private Const ERROR_IPSEC_IKE_INVALID_KEY_USAGE As Long = 13818 '  Invalid certificate key usage
'Private Const ERROR_IPSEC_IKE_INVALID_CERT_TYPE As Long = 13819 '  Invalid certificate type
'Private Const ERROR_IPSEC_IKE_NO_PRIVATE_KEY As Long = 13820 '  IKE negotiation failed because the machine certificate used does not have a private key. IPsec certificates require a private key. Contact your Network Security administrator about replacing with a certificate that has a private key.
'Private Const ERROR_IPSEC_IKE_SIMULTANEOUS_REKEY As Long = 13821 '  Simultaneous rekeys were detected.
'Private Const ERROR_IPSEC_IKE_DH_FAIL As Long = 13822 '  Failure in Diffie-Hellman computation
'Private Const ERROR_IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED As Long = 13823 '  Don't know how to process critical payload
'Private Const ERROR_IPSEC_IKE_INVALID_HEADER As Long = 13824 '  Invalid header
'Private Const ERROR_IPSEC_IKE_NO_POLICY As Long = 13825 '  No policy configured
'Private Const ERROR_IPSEC_IKE_INVALID_SIGNATURE As Long = 13826 '  Failed to verify signature
'Private Const ERROR_IPSEC_IKE_KERBEROS_ERROR As Long = 13827 '  Failed to authenticate using Kerberos
'Private Const ERROR_IPSEC_IKE_NO_PUBLIC_KEY As Long = 13828 '  Peer's certificate did not have a public key
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR As Long = 13829 '  Error processing error payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_SA As Long = 13830 '  Error processing SA payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_PROP As Long = 13831 '  Error processing Proposal payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_TRANS As Long = 13832 '  Error processing Transform payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_KE As Long = 13833 '  Error processing KE payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_ID As Long = 13834 '  Error processing ID payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_CERT As Long = 13835 '  Error processing Cert payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ As Long = 13836 '  Error processing Certificate Request payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_HASH As Long = 13837 '  Error processing Hash payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_SIG As Long = 13838 '  Error processing Signature payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_NONCE As Long = 13839 '  Error processing Nonce payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY As Long = 13840 '  Error processing Notify payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_DELETE As Long = 13841 '  Error processing Delete Payload
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR As Long = 13842 '  Error processing VendorId payload
'Private Const ERROR_IPSEC_IKE_INVALID_PAYLOAD As Long = 13843 '  Invalid payload received
'Private Const ERROR_IPSEC_IKE_LOAD_SOFT_SA As Long = 13844 '  Soft SA loaded
'Private Const ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN As Long = 13845 '  Soft SA torn down
'Private Const ERROR_IPSEC_IKE_INVALID_COOKIE As Long = 13846 '  Invalid cookie received.
'Private Const ERROR_IPSEC_IKE_NO_PEER_CERT As Long = 13847 '  Peer failed to send valid machine certificate
'Private Const ERROR_IPSEC_IKE_PEER_CRL_FAILED As Long = 13848 '  Certification Revocation check of peer's certificate failed
'Private Const ERROR_IPSEC_IKE_POLICY_CHANGE As Long = 13849 '  New policy invalidated SAs formed with old policy
'Private Const ERROR_IPSEC_IKE_NO_MM_POLICY As Long = 13850 '  There is no available Main Mode IKE policy.
'Private Const ERROR_IPSEC_IKE_NOTCBPRIV As Long = 13851 '  Failed to enabled TCB privilege.
'Private Const ERROR_IPSEC_IKE_SECLOADFAIL As Long = 13852 '  Failed to load SECURITY.DLL.
'Private Const ERROR_IPSEC_IKE_FAILSSPINIT As Long = 13853 '  Failed to obtain security function table dispatch address from SSPI.
'Private Const ERROR_IPSEC_IKE_FAILQUERYSSP As Long = 13854 '  Failed to query Kerberos package to obtain max token size.
'Private Const ERROR_IPSEC_IKE_SRVACQFAIL As Long = 13855 '  Failed to obtain Kerberos server credentials for ISAKMP/ERROR_IPSEC_IKE service. Kerberos authentication will not function. The most likely reason for this is lack of domain membership. This is normal if your computer is a member of a workgroup.
'Private Const ERROR_IPSEC_IKE_SRVQUERYCRED As Long = 13856 '  Failed to determine SSPI principal name for ISAKMP/ERROR_IPSEC_IKE service (QueryCredentialsAttributes).
'Private Const ERROR_IPSEC_IKE_GETSPIFAIL As Long = 13857 '  Failed to obtain new SPI for the inbound SA from IPsec driver. The most common cause for this is that the driver does not have the correct filter. Check your policy to verify the filters.
'Private Const ERROR_IPSEC_IKE_INVALID_FILTER As Long = 13858 '  Given filter is invalid
'Private Const ERROR_IPSEC_IKE_OUT_OF_MEMORY As Long = 13859 '  Memory allocation failed.
'Private Const ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED As Long = 13860 '  Failed to add Security Association to IPsec Driver. The most common cause for this is if the IKE negotiation took too long to complete. If the problem persists, reduce the load on the faulting machine.
'Private Const ERROR_IPSEC_IKE_INVALID_POLICY As Long = 13861 '  Invalid policy
'Private Const ERROR_IPSEC_IKE_UNKNOWN_DOI As Long = 13862 '  Invalid DOI
'Private Const ERROR_IPSEC_IKE_INVALID_SITUATION As Long = 13863 '  Invalid situation
'Private Const ERROR_IPSEC_IKE_DH_FAILURE As Long = 13864 '  Diffie-Hellman failure
'Private Const ERROR_IPSEC_IKE_INVALID_GROUP As Long = 13865 '  Invalid Diffie-Hellman group
'Private Const ERROR_IPSEC_IKE_ENCRYPT As Long = 13866 '  Error encrypting payload
'Private Const ERROR_IPSEC_IKE_DECRYPT As Long = 13867 '  Error decrypting payload
'Private Const ERROR_IPSEC_IKE_POLICY_MATCH As Long = 13868 '  Policy match error
'Private Const ERROR_IPSEC_IKE_UNSUPPORTED_ID As Long = 13869 '  Unsupported ID
'Private Const ERROR_IPSEC_IKE_INVALID_HASH As Long = 13870 '  Hash verification failed
'Private Const ERROR_IPSEC_IKE_INVALID_HASH_ALG As Long = 13871 '  Invalid hash algorithm
'Private Const ERROR_IPSEC_IKE_INVALID_HASH_SIZE As Long = 13872 '  Invalid hash size
'Private Const ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG As Long = 13873 '  Invalid encryption algorithm
'Private Const ERROR_IPSEC_IKE_INVALID_AUTH_ALG As Long = 13874 '  Invalid authentication algorithm
'Private Const ERROR_IPSEC_IKE_INVALID_SIG As Long = 13875 '  Invalid certificate signature
'Private Const ERROR_IPSEC_IKE_LOAD_FAILED As Long = 13876 '  Load failed
'Private Const ERROR_IPSEC_IKE_RPC_DELETE As Long = 13877 '  Deleted via RPC call
'Private Const ERROR_IPSEC_IKE_BENIGN_REINIT As Long = 13878 '  Temporary state created to perform reinitialization. This is not a real failure.
'Private Const ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY As Long = 13879 '  The lifetime value received in the Responder Lifetime Notify is below the Windows 2000 configured minimum value. Please fix the policy on the peer machine.
'Private Const ERROR_IPSEC_IKE_INVALID_MAJOR_VERSION As Long = 13880 '  The recipient cannot handle version of IKE specified in the header.
'Private Const ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN As Long = 13881 '  Key length in certificate is too small for configured security requirements.
'Private Const ERROR_IPSEC_IKE_MM_LIMIT As Long = 13882 '  Max number of established MM SAs to peer exceeded.
'Private Const ERROR_IPSEC_IKE_NEGOTIATION_DISABLED As Long = 13883 '  IKE received a policy that disables negotiation.
'Private Const ERROR_IPSEC_IKE_QM_LIMIT As Long = 13884 '  Reached maximum quick mode limit for the main mode. New main mode will be started.
'Private Const ERROR_IPSEC_IKE_MM_EXPIRED As Long = 13885 '  Main mode SA lifetime expired or peer sent a main mode delete.
'Private Const ERROR_IPSEC_IKE_PEER_MM_ASSUMED_INVALID As Long = 13886 '  Main mode SA assumed to be invalid because peer stopped responding.
'Private Const ERROR_IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH As Long = 13887 '  Certificate doesn't chain to a trusted root in IPsec policy.
'Private Const ERROR_IPSEC_IKE_UNEXPECTED_MESSAGE_ID As Long = 13888 '  Received unexpected message ID.
'Private Const ERROR_IPSEC_IKE_INVALID_AUTH_PAYLOAD As Long = 13889 '  Received invalid authentication offers.
'Private Const ERROR_IPSEC_IKE_DOS_COOKIE_SENT As Long = 13890 '  Sent DoS cookie notify to initiator.
'Private Const ERROR_IPSEC_IKE_SHUTTING_DOWN As Long = 13891 '  IKE service is shutting down.
'Private Const ERROR_IPSEC_IKE_CGA_AUTH_FAILED As Long = 13892 '  Could not verify binding between CGA address and certificate.
'Private Const ERROR_IPSEC_IKE_PROCESS_ERR_NATOA As Long = 13893 '  Error processing NatOA payload.
'Private Const ERROR_IPSEC_IKE_INVALID_MM_FOR_QM As Long = 13894 '  Parameters of the main mode are invalid for this quick mode.
'Private Const ERROR_IPSEC_IKE_QM_EXPIRED As Long = 13895 '  Quick mode SA was expired by IPsec driver.
'Private Const ERROR_IPSEC_IKE_TOO_MANY_FILTERS As Long = 13896 '  Too many dynamically added IKEEXT filters were detected.
'Private Const ERROR_IPSEC_IKE_NEG_STATUS_END As Long = 13897 '   ERROR_IPSEC_IKE_NEG_STATUS_END
'Private Const ERROR_IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL As Long = 13898 '  NAP reauth succeeded and must delete the dummy NAP IKEv2 tunnel.
'Private Const ERROR_IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE As Long = 13899 '  Error in assigning inner IP address to initiator in tunnel mode.
'Private Const ERROR_IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING As Long = 13900 '  Require configuration payload missing.
'Private Const ERROR_IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING As Long = 13901 '  A negotiation running as the security principle who issued the connection is in progress
'Private Const ERROR_IPSEC_IKE_COEXISTENCE_SUPPRESS As Long = 13902 '  SA was deleted due to IKEv1/AuthIP co-existence suppress check.
'Private Const ERROR_IPSEC_IKE_RATELIMIT_DROP As Long = 13903 '  Incoming SA request was dropped due to peer IP address rate limiting.
'Private Const ERROR_IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE As Long = 13904 '  Peer does not support MOBIKE.
'Private Const ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE As Long = 13905 '  SA establishment is not authorized.
'Private Const ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_FAILURE As Long = 13906 '  SA establishment is not authorized because there is not a sufficiently strong PKINIT-based credential.
'Private Const ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY As Long = 13907 '  SA establishment is not authorized.  You may need to enter updated or different credentials such as a smartcard.
'Private Const ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE As Long = 13908 '  SA establishment is not authorized because there is not a sufficiently strong PKINIT-based credential. This might be related to certificate-to-account mapping failure for the SA.
'Private Const ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END As Long = 13909 '   ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END
'Private Const ERROR_IPSEC_BAD_SPI As Long = 13910 '  The SPI in the packet does not match a valid IPsec SA.
'Private Const ERROR_IPSEC_SA_LIFETIME_EXPIRED As Long = 13911 '  Packet was received on an IPsec SA whose lifetime has expired.
'Private Const ERROR_IPSEC_WRONG_SA As Long = 13912 '  Packet was received on an IPsec SA that does not match the packet characteristics.
'Private Const ERROR_IPSEC_REPLAY_CHECK_FAILED As Long = 13913 '  Packet sequence number replay check failed.
'Private Const ERROR_IPSEC_INVALID_PACKET As Long = 13914 '  IPsec header and/or trailer in the packet is invalid.
'Private Const ERROR_IPSEC_INTEGRITY_CHECK_FAILED As Long = 13915 '  IPsec integrity check failed.
'Private Const ERROR_IPSEC_CLEAR_TEXT_DROP As Long = 13916 '  IPsec dropped a clear text packet.
'Private Const ERROR_IPSEC_AUTH_FIREWALL_DROP As Long = 13917 '  IPsec dropped an incoming ESP packet in authenticated firewall mode. This drop is benign.
'Private Const ERROR_IPSEC_THROTTLE_DROP As Long = 13918 '  IPsec dropped a packet due to DoS throttling.
'Private Const ERROR_IPSEC_DOSP_BLOCK As Long = 13925 '  IPsec DoS Protection matched an explicit block rule.
'Private Const ERROR_IPSEC_DOSP_RECEIVED_MULTICAST As Long = 13926 '  IPsec DoS Protection received an IPsec specific multicast packet which is not allowed.
'Private Const ERROR_IPSEC_DOSP_INVALID_PACKET As Long = 13927 '  IPsec DoS Protection received an incorrectly formatted packet.
'Private Const ERROR_IPSEC_DOSP_STATE_LOOKUP_FAILED As Long = 13928 '  IPsec DoS Protection failed to look up state.
'Private Const ERROR_IPSEC_DOSP_MAX_ENTRIES As Long = 13929 '  IPsec DoS Protection failed to create state because the maximum number of entries allowed by policy has been reached.
'Private Const ERROR_IPSEC_DOSP_KEYMOD_NOT_ALLOWED As Long = 13930 '  IPsec DoS Protection received an IPsec negotiation packet for a keying module which is not allowed by policy.
'Private Const ERROR_IPSEC_DOSP_NOT_INSTALLED As Long = 13931 '  IPsec DoS Protection has not been enabled.
'Private Const ERROR_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES As Long = 13932 '  IPsec DoS Protection failed to create a per internal IP rate limit queue because the maximum number of queues allowed by policy has been reached.
'Private Const ERROR_SXS_SECTION_NOT_FOUND As Long = 14000 '  The requested section was not present in the activation context.
'Private Const ERROR_SXS_CANT_GEN_ACTCTX As Long = 14001 '  The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
'Private Const ERROR_SXS_INVALID_ACTCTXDATA_FORMAT As Long = 14002 '  The application binding data format is invalid.
'Private Const ERROR_SXS_ASSEMBLY_NOT_FOUND As Long = 14003 '  The referenced assembly is not installed on your system.
'Private Const ERROR_SXS_MANIFEST_FORMAT_ERROR As Long = 14004 '  The manifest file does not begin with the required tag and format information.
'Private Const ERROR_SXS_MANIFEST_PARSE_ERROR As Long = 14005 '  The manifest file contains one or more syntax errors.
'Private Const ERROR_SXS_ACTIVATION_CONTEXT_DISABLED As Long = 14006 '  The application attempted to activate a disabled activation context.
'Private Const ERROR_SXS_KEY_NOT_FOUND As Long = 14007 '  The requested lookup key was not found in any active activation context.
'Private Const ERROR_SXS_VERSION_CONFLICT As Long = 14008 '  A component version required by the application conflicts with another component version already active.
'Private Const ERROR_SXS_WRONG_SECTION_TYPE As Long = 14009 '  The type requested activation context section does not match the query API used.
'Private Const ERROR_SXS_THREAD_QUERIES_DISABLED As Long = 14010 '  Lack of system resources has required isolated activation to be disabled for the current thread of execution.
'Private Const ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET As Long = 14011 '  An attempt to set the process default activation context failed because the process default activation context was already set.
'Private Const ERROR_SXS_UNKNOWN_ENCODING_GROUP As Long = 14012 '  The encoding group identifier specified is not recognized.
'Private Const ERROR_SXS_UNKNOWN_ENCODING As Long = 14013 '  The encoding requested is not recognized.
'Private Const ERROR_SXS_INVALID_XML_NAMESPACE_URI As Long = 14014 '  The manifest contains a reference to an invalid URI.
'Private Const ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED As Long = 14015 '  The application manifest contains a reference to a dependent assembly which is not installed
'Private Const ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED As Long = 14016 '  The manifest for an assembly used by the application has a reference to a dependent assembly which is not installed
'Private Const ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE As Long = 14017 '  The manifest contains an attribute for the assembly identity which is not valid.
'Private Const ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE As Long = 14018 '  The manifest is missing the required default namespace specification on the assembly element.
'Private Const ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE As Long = 14019 '  The manifest has a default namespace specified on the assembly element but its value is not "urn:schemas-microsoft-com:asm.v1".
'Private Const ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT As Long = 14020 '  The private manifest probed has crossed a path with an unsupported reparse point.
'Private Const ERROR_SXS_DUPLICATE_DLL_NAME As Long = 14021 '  Two or more components referenced directly or indirectly by the application manifest have files by the same name.
'Private Const ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME As Long = 14022 '  Two or more components referenced directly or indirectly by the application manifest have window classes with the same name.
'Private Const ERROR_SXS_DUPLICATE_CLSID As Long = 14023 '  Two or more components referenced directly or indirectly by the application manifest have the same COM server CLSIDs.
'Private Const ERROR_SXS_DUPLICATE_IID As Long = 14024 '  Two or more components referenced directly or indirectly by the application manifest have proxies for the same COM interface IIDs.
'Private Const ERROR_SXS_DUPLICATE_TLBID As Long = 14025 '  Two or more components referenced directly or indirectly by the application manifest have the same COM type library TLBIDs.
'Private Const ERROR_SXS_DUPLICATE_PROGID As Long = 14026 '  Two or more components referenced directly or indirectly by the application manifest have the same COM ProgIDs.
'Private Const ERROR_SXS_DUPLICATE_ASSEMBLY_NAME As Long = 14027 '  Two or more components referenced directly or indirectly by the application manifest are different versions of the same component which is not permitted.
'Private Const ERROR_SXS_FILE_HASH_MISMATCH As Long = 14028 '  A component's file does not match the verification information present in the component manifest.
'Private Const ERROR_SXS_POLICY_PARSE_ERROR As Long = 14029 '  The policy manifest contains one or more syntax errors.
'Private Const ERROR_SXS_XML_E_MISSINGQUOTE As Long = 14030 '  Manifest Parse Error : A string literal was expected, but no opening quote character was found.
'Private Const ERROR_SXS_XML_E_COMMENTSYNTAX As Long = 14031 '  Manifest Parse Error : Incorrect syntax was used in a comment.
'Private Const ERROR_SXS_XML_E_BADSTARTNAMECHAR As Long = 14032 '  Manifest Parse Error : A name was started with an invalid character.
'Private Const ERROR_SXS_XML_E_BADNAMECHAR As Long = 14033 '  Manifest Parse Error : A name contained an invalid character.
'Private Const ERROR_SXS_XML_E_BADCHARINSTRING As Long = 14034 '  Manifest Parse Error : A string literal contained an invalid character.
'Private Const ERROR_SXS_XML_E_XMLDECLSYNTAX As Long = 14035 '  Manifest Parse Error : Invalid syntax for an xml declaration.
'Private Const ERROR_SXS_XML_E_BADCHARDATA As Long = 14036 '  Manifest Parse Error : An Invalid character was found in text content.
'Private Const ERROR_SXS_XML_E_MISSINGWHITESPACE As Long = 14037 '  Manifest Parse Error : Required white space was missing.
'Private Const ERROR_SXS_XML_E_EXPECTINGTAGEND As Long = 14038 '  Manifest Parse Error : The character '>' was expected.
'Private Const ERROR_SXS_XML_E_MISSINGSEMICOLON As Long = 14039 '  Manifest Parse Error : A semi colon character was expected.
'Private Const ERROR_SXS_XML_E_UNBALANCEDPAREN As Long = 14040 '  Manifest Parse Error : Unbalanced parentheses.
'Private Const ERROR_SXS_XML_E_INTERNALERROR As Long = 14041 '  Manifest Parse Error : Internal error.
'Private Const ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE As Long = 14042 '  Manifest Parse Error : Whitespace is not allowed at this location.
'Private Const ERROR_SXS_XML_E_INCOMPLETE_ENCODING As Long = 14043 '  Manifest Parse Error : End of file reached in invalid state for current encoding.
'Private Const ERROR_SXS_XML_E_MISSING_PAREN As Long = 14044 '  Manifest Parse Error : Missing parenthesis.
'Private Const ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE As Long = 14045 '  Manifest Parse Error : A single or double closing quote character (\' or \") is missing.
'Private Const ERROR_SXS_XML_E_MULTIPLE_COLONS As Long = 14046 '  Manifest Parse Error : Multiple colons are not allowed in a name.
'Private Const ERROR_SXS_XML_E_INVALID_DECIMAL As Long = 14047 '  Manifest Parse Error : Invalid character for decimal digit.
'Private Const ERROR_SXS_XML_E_INVALID_HEXIDECIMAL As Long = 14048 '  Manifest Parse Error : Invalid character for hexadecimal digit.
'Private Const ERROR_SXS_XML_E_INVALID_UNICODE As Long = 14049 '  Manifest Parse Error : Invalid unicode character value for this platform.
'Private Const ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK As Long = 14050 '  Manifest Parse Error : Expecting whitespace or '?'.
'Private Const ERROR_SXS_XML_E_UNEXPECTEDENDTAG As Long = 14051 '  Manifest Parse Error : End tag was not expected at this location.
'Private Const ERROR_SXS_XML_E_UNCLOSEDTAG As Long = 14052 '  Manifest Parse Error : The following tags were not closed: %1.
'Private Const ERROR_SXS_XML_E_DUPLICATEATTRIBUTE As Long = 14053 '  Manifest Parse Error : Duplicate attribute.
'Private Const ERROR_SXS_XML_E_MULTIPLEROOTS As Long = 14054 '  Manifest Parse Error : Only one top level element is allowed in an XML document.
'Private Const ERROR_SXS_XML_E_INVALIDATROOTLEVEL As Long = 14055 '  Manifest Parse Error : Invalid at the top level of the document.
'Private Const ERROR_SXS_XML_E_BADXMLDECL As Long = 14056 '  Manifest Parse Error : Invalid xml declaration.
'Private Const ERROR_SXS_XML_E_MISSINGROOT As Long = 14057 '  Manifest Parse Error : XML document must have a top level element.
'Private Const ERROR_SXS_XML_E_UNEXPECTEDEOF As Long = 14058 '  Manifest Parse Error : Unexpected end of file.
'Private Const ERROR_SXS_XML_E_BADPEREFINSUBSET As Long = 14059 '  Manifest Parse Error : Parameter entities cannot be used inside markup declarations in an internal subset.
'Private Const ERROR_SXS_XML_E_UNCLOSEDSTARTTAG As Long = 14060 '  Manifest Parse Error : Element was not closed.
'Private Const ERROR_SXS_XML_E_UNCLOSEDENDTAG As Long = 14061 '  Manifest Parse Error : End element was missing the character '>'.
'Private Const ERROR_SXS_XML_E_UNCLOSEDSTRING As Long = 14062 '  Manifest Parse Error : A string literal was not closed.
'Private Const ERROR_SXS_XML_E_UNCLOSEDCOMMENT As Long = 14063 '  Manifest Parse Error : A comment was not closed.
'Private Const ERROR_SXS_XML_E_UNCLOSEDDECL As Long = 14064 '  Manifest Parse Error : A declaration was not closed.
'Private Const ERROR_SXS_XML_E_UNCLOSEDCDATA As Long = 14065 '  Manifest Parse Error : A CDATA section was not closed.
'Private Const ERROR_SXS_XML_E_RESERVEDNAMESPACE As Long = 14066 '  Manifest Parse Error : The namespace prefix is not allowed to start with the reserved string "xml".
'Private Const ERROR_SXS_XML_E_INVALIDENCODING As Long = 14067 '  Manifest Parse Error : System does not support the specified encoding.
'Private Const ERROR_SXS_XML_E_INVALIDSWITCH As Long = 14068 '  Manifest Parse Error : Switch from current encoding to specified encoding not supported.
'Private Const ERROR_SXS_XML_E_BADXMLCASE As Long = 14069 '  Manifest Parse Error : The name 'xml' is reserved and must be lower case.
'Private Const ERROR_SXS_XML_E_INVALID_STANDALONE As Long = 14070 '  Manifest Parse Error : The standalone attribute must have the value 'yes' or 'no'.
'Private Const ERROR_SXS_XML_E_UNEXPECTED_STANDALONE As Long = 14071 '  Manifest Parse Error : The standalone attribute cannot be used in external entities.
'Private Const ERROR_SXS_XML_E_INVALID_VERSION As Long = 14072 '  Manifest Parse Error : Invalid version number.
'Private Const ERROR_SXS_XML_E_MISSINGEQUALS As Long = 14073 '  Manifest Parse Error : Missing equals sign between attribute and attribute value.
'Private Const ERROR_SXS_PROTECTION_RECOVERY_FAILED As Long = 14074 '  Assembly Protection Error : Unable to recover the specified assembly.
'Private Const ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT As Long = 14075 '  Assembly Protection Error : The public key for an assembly was too short to be allowed.
'Private Const ERROR_SXS_PROTECTION_CATALOG_NOT_VALID As Long = 14076 '  Assembly Protection Error : The catalog for an assembly is not valid, or does not match the assembly's manifest.
'Private Const ERROR_SXS_UNTRANSLATABLE_HRESULT As Long = 14077 '  An HRESULT could not be translated to a corresponding Win32 error code.
'Private Const ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING As Long = 14078 '  Assembly Protection Error : The catalog for an assembly is missing.
'Private Const ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE As Long = 14079 '  The supplied assembly identity is missing one or more attributes which must be present in this context.
'Private Const ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME As Long = 14080 '  The supplied assembly identity has one or more attribute names that contain characters not permitted in XML names.
'Private Const ERROR_SXS_ASSEMBLY_MISSING As Long = 14081 '  The referenced assembly could not be found.
'Private Const ERROR_SXS_CORRUPT_ACTIVATION_STACK As Long = 14082 '  The activation context activation stack for the running thread of execution is corrupt.
'Private Const ERROR_SXS_CORRUPTION As Long = 14083 '  The application isolation metadata for this process or thread has become corrupt.
'Private Const ERROR_SXS_EARLY_DEACTIVATION As Long = 14084 '  The activation context being deactivated is not the most recently activated one.
'Private Const ERROR_SXS_INVALID_DEACTIVATION As Long = 14085 '  The activation context being deactivated is not active for the current thread of execution.
'Private Const ERROR_SXS_MULTIPLE_DEACTIVATION As Long = 14086 '  The activation context being deactivated has already been deactivated.
'Private Const ERROR_SXS_PROCESS_TERMINATION_REQUESTED As Long = 14087 '  A component used by the isolation facility has requested to terminate the process.
'Private Const ERROR_SXS_RELEASE_ACTIVATION_CONTEXT As Long = 14088 '  A kernel mode component is releasing a reference on an activation context.
'Private Const ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY As Long = 14089 '  The activation context of system default assembly could not be generated.
'Private Const ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE As Long = 14090 '  The value of an attribute in an identity is not within the legal range.
'Private Const ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME As Long = 14091 '  The name of an attribute in an identity is not within the legal range.
'Private Const ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE As Long = 14092 '  An identity contains two definitions for the same attribute.
'Private Const ERROR_SXS_IDENTITY_PARSE_ERROR As Long = 14093 '  The identity string is malformed. This may be due to a trailing comma, more than two unnamed attributes, missing attribute name or missing attribute value.
'Private Const ERROR_MALFORMED_SUBSTITUTION_STRING As Long = 14094 '  A string containing localized substitutable content was malformed. Either a dollar sign ($) was followed by something other than a left parenthesis or another dollar sign or an substitution's right parenthesis was not found.
'Private Const ERROR_SXS_INCORRECT_PUBLIC_KEY_TOKEN As Long = 14095 '  The public key token does not correspond to the public key specified.
'Private Const ERROR_UNMAPPED_SUBSTITUTION_STRING As Long = 14096 '  A substitution string had no mapping.
'Private Const ERROR_SXS_ASSEMBLY_NOT_LOCKED As Long = 14097 '  The component must be locked before making the request.
'Private Const ERROR_SXS_COMPONENT_STORE_CORRUPT As Long = 14098 '  The component store has been corrupted.
'Private Const ERROR_ADVANCED_INSTALLER_FAILED As Long = 14099 '  An advanced installer failed during setup or servicing.
'Private Const ERROR_XML_ENCODING_MISMATCH As Long = 14100 '  The character encoding in the XML declaration did not match the encoding used in the document.
'Private Const ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT As Long = 14101 '  The identities of the manifests are identical but their contents are different.
'Private Const ERROR_SXS_IDENTITIES_DIFFERENT As Long = 14102 '  The component identities are different.
'Private Const ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT As Long = 14103 '  The assembly is not a deployment.
'Private Const ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY As Long = 14104 '  The file is not a part of the assembly.
'Private Const ERROR_SXS_MANIFEST_TOO_BIG As Long = 14105 '  The size of the manifest exceeds the maximum allowed.
'Private Const ERROR_SXS_SETTING_NOT_REGISTERED As Long = 14106 '  The setting is not registered.
'Private Const ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE As Long = 14107 '  One or more required members of the transaction are not present.
'Private Const ERROR_SMI_PRIMITIVE_INSTALLER_FAILED As Long = 14108 '  The SMI primitive installer failed during setup or servicing.
'Private Const ERROR_GENERIC_COMMAND_FAILED As Long = 14109 '  A generic command executable returned a result that indicates failure.
'Private Const ERROR_SXS_FILE_HASH_MISSING As Long = 14110 '  A component is missing file verification information in its manifest.
'Private Const ERROR_EVT_INVALID_CHANNEL_PATH As Long = 15000 '  The specified channel path is invalid.
'Private Const ERROR_EVT_INVALID_QUERY As Long = 15001 '  The specified query is invalid.
'Private Const ERROR_EVT_PUBLISHER_METADATA_NOT_FOUND As Long = 15002 '  The publisher metadata cannot be found in the resource.
'Private Const ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND As Long = 15003 '  The template for an event definition cannot be found in the resource (error = %1).
'Private Const ERROR_EVT_INVALID_PUBLISHER_NAME As Long = 15004 '  The specified publisher name is invalid.
'Private Const ERROR_EVT_INVALID_EVENT_DATA As Long = 15005 '  The event data raised by the publisher is not compatible with the event template definition in the publisher's manifest
'Private Const ERROR_EVT_CHANNEL_NOT_FOUND As Long = 15007 '  The specified channel could not be found. Check channel configuration.
'Private Const ERROR_EVT_MALFORMED_XML_TEXT As Long = 15008 '  The specified xml text was not well-formed. See Extended Error for more details.
'Private Const ERROR_EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL As Long = 15009 '  The caller is trying to subscribe to a direct channel which is not allowed. The events for a direct channel go directly to a logfile and cannot be subscribed to.
'Private Const ERROR_EVT_CONFIGURATION_ERROR As Long = 15010 '  Configuration error.
'Private Const ERROR_EVT_QUERY_RESULT_STALE As Long = 15011 '  The query result is stale / invalid. This may be due to the log being cleared or rolling over after the query result was created. Users should handle this code by releasing the query result object and reissuing the query.
'Private Const ERROR_EVT_QUERY_RESULT_INVALID_POSITION As Long = 15012 '  Query result is currently at an invalid position.
'Private Const ERROR_EVT_NON_VALIDATING_MSXML As Long = 15013 '  Registered MSXML doesn't support validation.
'Private Const ERROR_EVT_FILTER_ALREADYSCOPED As Long = 15014 '  An expression can only be followed by a change of scope operation if it itself evaluates to a node set and is not already part of some other change of scope operation.
'Private Const ERROR_EVT_FILTER_NOTELTSET As Long = 15015 '  Can't perform a step operation from a term that does not represent an element set.
'Private Const ERROR_EVT_FILTER_INVARG As Long = 15016 '  Left hand side arguments to binary operators must be either attributes, nodes or variables and right hand side arguments must be constants.
'Private Const ERROR_EVT_FILTER_INVTEST As Long = 15017 '  A step operation must involve either a node test or, in the case of a predicate, an algebraic expression against which to test each node in the node set identified by the preceeding node set can be evaluated.
'Private Const ERROR_EVT_FILTER_INVTYPE As Long = 15018 '  This data type is currently unsupported.
'Private Const ERROR_EVT_FILTER_PARSEERR As Long = 15019 '  A syntax error occurred at position %1!d!
'Private Const ERROR_EVT_FILTER_UNSUPPORTEDOP As Long = 15020 '  This operator is unsupported by this implementation of the filter.
'Private Const ERROR_EVT_FILTER_UNEXPECTEDTOKEN As Long = 15021 '  The token encountered was unexpected.
'Private Const ERROR_EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL As Long = 15022 '  The requested operation cannot be performed over an enabled direct channel. The channel must first be disabled before performing the requested operation.
'Private Const ERROR_EVT_INVALID_CHANNEL_PROPERTY_VALUE As Long = 15023 '  Channel property %1!s! contains invalid value. The value has invalid type, is outside of valid range, can't be updated or is not supported by this type of channel.
'Private Const ERROR_EVT_INVALID_PUBLISHER_PROPERTY_VALUE As Long = 15024 '  Publisher property %1!s! contains invalid value. The value has invalid type, is outside of valid range, can't be updated or is not supported by this type of publisher.
'Private Const ERROR_EVT_CHANNEL_CANNOT_ACTIVATE As Long = 15025 '  The channel fails to activate.
'Private Const ERROR_EVT_FILTER_TOO_COMPLEX As Long = 15026 '  The xpath expression exceeded supported complexity. Please symplify it or split it into two or more simple expressions.
'Private Const ERROR_EVT_MESSAGE_NOT_FOUND As Long = 15027 '  the message resource is present but the message is not found in the string/message table
'Private Const ERROR_EVT_MESSAGE_ID_NOT_FOUND As Long = 15028 '  The message id for the desired message could not be found.
'Private Const ERROR_EVT_UNRESOLVED_VALUE_INSERT As Long = 15029 '  The substitution string for insert index (%1) could not be found.
'Private Const ERROR_EVT_UNRESOLVED_PARAMETER_INSERT As Long = 15030 '  The description string for parameter reference (%1) could not be found.
'Private Const ERROR_EVT_MAX_INSERTS_REACHED As Long = 15031 '  The maximum number of replacements has been reached.
'Private Const ERROR_EVT_EVENT_DEFINITION_NOT_FOUND As Long = 15032 '  The event definition could not be found for event id (%1).
'Private Const ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND As Long = 15033 '  The locale specific resource for the desired message is not present.
'Private Const ERROR_EVT_VERSION_TOO_OLD As Long = 15034 '  The resource is too old to be compatible.
'Private Const ERROR_EVT_VERSION_TOO_NEW As Long = 15035 '  The resource is too new to be compatible.
'Private Const ERROR_EVT_CANNOT_OPEN_CHANNEL_OF_QUERY As Long = 15036 '  The channel at index %1!d! of the query can't be opened.
'Private Const ERROR_EVT_PUBLISHER_DISABLED As Long = 15037 '  The publisher has been disabled and its resource is not available. This usually occurs when the publisher is in the process of being uninstalled or upgraded.
'Private Const ERROR_EVT_FILTER_OUT_OF_RANGE As Long = 15038 '  Attempted to create a numeric type that is outside of its valid range.
'Private Const ERROR_EC_SUBSCRIPTION_CANNOT_ACTIVATE As Long = 15080 '  The subscription fails to activate.
'Private Const ERROR_EC_LOG_DISABLED As Long = 15081 '  The log of the subscription is in disabled state, and can not be used to forward events to. The log must first be enabled before the subscription can be activated.
'Private Const ERROR_EC_CIRCULAR_FORWARDING As Long = 15082 '  When forwarding events from local machine to itself, the query of the subscription can't contain target log of the subscription.
'Private Const ERROR_EC_CREDSTORE_FULL As Long = 15083 '  The credential store that is used to save credentials is full.
'Private Const ERROR_EC_CRED_NOT_FOUND As Long = 15084 '  The credential used by this subscription can't be found in credential store.
'Private Const ERROR_EC_NO_ACTIVE_CHANNEL As Long = 15085 '  No active channel is found for the query.
'Private Const ERROR_MUI_FILE_NOT_FOUND As Long = 15100 '  The resource loader failed to find MUI file.
'Private Const ERROR_MUI_INVALID_FILE As Long = 15101 '  The resource loader failed to load MUI file because the file fail to pass validation.
'Private Const ERROR_MUI_INVALID_RC_CONFIG As Long = 15102 '  The RC Manifest is corrupted with garbage data or unsupported version or missing required item.
'Private Const ERROR_MUI_INVALID_LOCALE_NAME As Long = 15103 '  The RC Manifest has invalid culture name.
'Private Const ERROR_MUI_INVALID_ULTIMATEFALLBACK_NAME As Long = 15104 '  The RC Manifest has invalid ultimatefallback name.
'Private Const ERROR_MUI_FILE_NOT_LOADED As Long = 15105 '  The resource loader cache doesn't have loaded MUI entry.
'Private Const ERROR_RESOURCE_ENUM_USER_STOP As Long = 15106 '  User stopped resource enumeration.
'Private Const ERROR_MUI_INTLSETTINGS_UILANG_NOT_INSTALLED As Long = 15107 '  UI language installation failed.
'Private Const ERROR_MUI_INTLSETTINGS_INVALID_LOCALE_NAME As Long = 15108 '  Locale installation failed.
'Private Const ERROR_MRM_RUNTIME_NO_DEFAULT_OR_NEUTRAL_RESOURCE As Long = 15110 '  A resource does not have default or neutral value.
'Private Const ERROR_MRM_INVALID_PRICONFIG As Long = 15111 '  Invalid PRI config file.
'Private Const ERROR_MRM_INVALID_FILE_TYPE As Long = 15112 '  Invalid file type.
'Private Const ERROR_MRM_UNKNOWN_QUALIFIER As Long = 15113 '  Unknown qualifier.
'Private Const ERROR_MRM_INVALID_QUALIFIER_VALUE As Long = 15114 '  Invalid qualifier value.
'Private Const ERROR_MRM_NO_CANDIDATE As Long = 15115 '  No Candidate found.
'Private Const ERROR_MRM_NO_MATCH_OR_DEFAULT_CANDIDATE As Long = 15116 '  The ResourceMap or NamedResource has an item that does not have default or neutral resource..
'Private Const ERROR_MRM_RESOURCE_TYPE_MISMATCH As Long = 15117 '  Invalid ResourceCandidate type.
'Private Const ERROR_MRM_DUPLICATE_MAP_NAME As Long = 15118 '  Duplicate Resource Map.
'Private Const ERROR_MRM_DUPLICATE_ENTRY As Long = 15119 '  Duplicate Entry.
'Private Const ERROR_MRM_INVALID_RESOURCE_IDENTIFIER As Long = 15120 '  Invalid Resource Identifier.
'Private Const ERROR_MRM_FILEPATH_TOO_LONG As Long = 15121 '  Filepath too long.
'Private Const ERROR_MRM_UNSUPPORTED_DIRECTORY_TYPE As Long = 15122 '  Unsupported directory type.
'Private Const ERROR_MRM_INVALID_PRI_FILE As Long = 15126 '  Invalid PRI File.
'Private Const ERROR_MRM_NAMED_RESOURCE_NOT_FOUND As Long = 15127 '  NamedResource Not Found.
'Private Const ERROR_MRM_MAP_NOT_FOUND As Long = 15135 '  ResourceMap Not Found.
'Private Const ERROR_MRM_UNSUPPORTED_PROFILE_TYPE As Long = 15136 '  Unsupported MRT profile type.
'Private Const ERROR_MRM_INVALID_QUALIFIER_OPERATOR As Long = 15137 '  Invalid qualifier operator.
'Private Const ERROR_MRM_INDETERMINATE_QUALIFIER_VALUE As Long = 15138 '  Unable to determine qualifier value or qualifier value has not been set.
'Private Const ERROR_MRM_AUTOMERGE_ENABLED As Long = 15139 '  Automerge is enabled in the PRI file.
'Private Const ERROR_MRM_TOO_MANY_RESOURCES As Long = 15140 '  Too many resources defined for package.
'Private Const ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_MERGE As Long = 15141 '  Resource File can not be used for merge operation.
'Private Const ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_LOAD_UNLOAD_PRI_FILE As Long = 15142 '  Load/UnloadPriFiles cannot be used with resource packages.
'Private Const ERROR_MRM_NO_CURRENT_VIEW_ON_THREAD As Long = 15143 '  Resource Contexts may not be created on threads that do not have a CoreWindow.
'Private Const ERROR_DIFFERENT_PROFILE_RESOURCE_MANAGER_EXIST As Long = 15144 '  The singleton Resource Manager with different profile is already created.
'Private Const ERROR_OPERATION_NOT_ALLOWED_FROM_SYSTEM_COMPONENT As Long = 15145 '  The system component cannot operate given API operation
'Private Const ERROR_MRM_DIRECT_REF_TO_NON_DEFAULT_RESOURCE As Long = 15146 '  The resource is a direct reference to a non-default resource candidate.
'Private Const ERROR_MRM_GENERATION_COUNT_MISMATCH As Long = 15147 '  Resource Map has been re-generated and the query string is not valid anymore.
'Private Const ERROR_MCA_INVALID_CAPABILITIES_STRING As Long = 15200 '  The monitor returned a DDC/CI capabilities string that did not comply with the ACCESS.bus 3.0, DDC/CI 1.1 or MCCS 2 Revision 1 specification.
'Private Const ERROR_MCA_INVALID_VCP_VERSION As Long = 15201 '  The monitor's VCP Version (0xDF) VCP code returned an invalid version value.
'Private Const ERROR_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION As Long = 15202 '  The monitor does not comply with the MCCS specification it claims to support.
'Private Const ERROR_MCA_MCCS_VERSION_MISMATCH As Long = 15203 '  The MCCS version in a monitor's mccs_ver capability does not match the MCCS version the monitor reports when the VCP Version (0xDF) VCP code is used.
'Private Const ERROR_MCA_UNSUPPORTED_MCCS_VERSION As Long = 15204 '  The Monitor Configuration API only works with monitors that support the MCCS 1.0 specification, MCCS 2.0 specification or the MCCS 2.0 Revision 1 specification.
'Private Const ERROR_MCA_INTERNAL_ERROR As Long = 15205 '  An internal Monitor Configuration API error occurred.
'Private Const ERROR_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED As Long = 15206 '  The monitor returned an invalid monitor technology type. CRT, Plasma and LCD (TFT) are examples of monitor technology types. This error implies that the monitor violated the MCCS 2.0 or MCCS 2.0 Revision 1 specification.
'Private Const ERROR_MCA_UNSUPPORTED_COLOR_TEMPERATURE As Long = 15207 '  The caller of SetMonitorColorTemperature specified a color temperature that the current monitor did not support. This error implies that the monitor violated the MCCS 2.0 or MCCS 2.0 Revision 1 specification.
'Private Const ERROR_AMBIGUOUS_SYSTEM_DEVICE As Long = 15250 '  The requested system device cannot be identified due to multiple indistinguishable devices potentially matching the identification criteria.
'Private Const ERROR_SYSTEM_DEVICE_NOT_FOUND As Long = 15299 '  The requested system device cannot be found.
'Private Const ERROR_HASH_NOT_SUPPORTED As Long = 15300 '  Hash generation for the specified hash version and hash type is not enabled on the server.
'Private Const ERROR_HASH_NOT_PRESENT As Long = 15301 '  The hash requested from the server is not available or no longer valid.
'Private Const ERROR_SECONDARY_IC_PROVIDER_NOT_REGISTERED As Long = 15321 '  The secondary interrupt controller instance that manages the specified interrupt is not registered.
'Private Const ERROR_GPIO_CLIENT_INFORMATION_INVALID As Long = 15322 '  The information supplied by the GPIO client driver is invalid.
'Private Const ERROR_GPIO_VERSION_NOT_SUPPORTED As Long = 15323 '  The version specified by the GPIO client driver is not supported.
'Private Const ERROR_GPIO_INVALID_REGISTRATION_PACKET As Long = 15324 '  The registration packet supplied by the GPIO client driver is not valid.
'Private Const ERROR_GPIO_OPERATION_DENIED As Long = 15325 '  The requested operation is not suppported for the specified handle.
'Private Const ERROR_GPIO_INCOMPATIBLE_CONNECT_MODE As Long = 15326 '  The requested connect mode conflicts with an existing mode on one or more of the specified pins.
'Private Const ERROR_GPIO_INTERRUPT_ALREADY_UNMASKED As Long = 15327 '  The interrupt requested to be unmasked is not masked.
'Private Const ERROR_CANNOT_SWITCH_RUNLEVEL As Long = 15400 '  The requested run level switch cannot be completed successfully.
'Private Const ERROR_INVALID_RUNLEVEL_SETTING As Long = 15401 '  The service has an invalid run level setting. The run level for a servicemust not be higher than the run level of its dependent services.
'Private Const ERROR_RUNLEVEL_SWITCH_TIMEOUT As Long = 15402 '  The requested run level switch cannot be completed successfully sinceone or more services will not stop or restart within the specified timeout.
'Private Const ERROR_RUNLEVEL_SWITCH_AGENT_TIMEOUT As Long = 15403 '  A run level switch agent did not respond within the specified timeout.
'Private Const ERROR_RUNLEVEL_SWITCH_IN_PROGRESS As Long = 15404 '  A run level switch is currently in progress.
'Private Const ERROR_SERVICES_FAILED_AUTOSTART As Long = 15405 '  One or more services failed to start during the service startup phase of a run level switch.
'Private Const ERROR_COM_TASK_STOP_PENDING As Long = 15501 '  The task stop request cannot be completed immediately sincetask needs more time to shutdown.
'Private Const ERROR_INSTALL_OPEN_PACKAGE_FAILED As Long = 15600 '  Package could not be opened.
'Private Const ERROR_INSTALL_PACKAGE_NOT_FOUND As Long = 15601 '  Package was not found.
'Private Const ERROR_INSTALL_INVALID_PACKAGE As Long = 15602 '  Package data is invalid.
'Private Const ERROR_INSTALL_RESOLVE_DEPENDENCY_FAILED As Long = 15603 '  Package failed updates, dependency or conflict validation.
'Private Const ERROR_INSTALL_OUT_OF_DISK_SPACE As Long = 15604 '  There is not enough disk space on your computer. Please free up some space and try again.
'Private Const ERROR_INSTALL_NETWORK_FAILURE As Long = 15605 '  There was a problem downloading your product.
'Private Const ERROR_INSTALL_REGISTRATION_FAILURE As Long = 15606 '  Package could not be registered.
'Private Const ERROR_INSTALL_DEREGISTRATION_FAILURE As Long = 15607 '  Package could not be unregistered.
'Private Const ERROR_INSTALL_CANCEL As Long = 15608 '  User cancelled the install request.
'Private Const ERROR_INSTALL_FAILED As Long = 15609 '  Install failed. Please contact your software vendor.
'Private Const ERROR_REMOVE_FAILED As Long = 15610 '  Removal failed. Please contact your software vendor.
'Private Const ERROR_PACKAGE_ALREADY_EXISTS As Long = 15611 '  The provided package is already installed, and reinstallation of the package was blocked. Check the AppXDeployment-Server event log for details.
'Private Const ERROR_NEEDS_REMEDIATION As Long = 15612 '  The application cannot be started. Try reinstalling the application to fix the problem.
'Private Const ERROR_INSTALL_PREREQUISITE_FAILED As Long = 15613 '  A Prerequisite for an install could not be satisfied.
'Private Const ERROR_PACKAGE_REPOSITORY_CORRUPTED As Long = 15614 '  The package repository is corrupted.
'Private Const ERROR_INSTALL_POLICY_FAILURE As Long = 15615 '  To install this application you need either a Windows developer license or a sideloading-enabled system.
'Private Const ERROR_PACKAGE_UPDATING As Long = 15616 '  The application cannot be started because it is currently updating.
'Private Const ERROR_DEPLOYMENT_BLOCKED_BY_POLICY As Long = 15617 '  The package deployment operation is blocked by policy. Please contact your system administrator.
'Private Const ERROR_PACKAGES_IN_USE As Long = 15618 '  The package could not be installed because resources it modifies are currently in use.
'Private Const ERROR_RECOVERY_FILE_CORRUPT As Long = 15619 '  The package could not be recovered because necessary data for recovery have been corrupted.
'Private Const ERROR_INVALID_STAGED_SIGNATURE As Long = 15620 '  The signature is invalid. To register in developer mode, AppxSignature.p7x and AppxBlockMap.xml must be valid or should not be present.
'Private Const ERROR_DELETING_EXISTING_APPLICATIONDATA_STORE_FAILED As Long = 15621 '  An error occurred while deleting the package's previously existing application data.
'Private Const ERROR_INSTALL_PACKAGE_DOWNGRADE As Long = 15622 '  The package could not be installed because a higher version of this package is already installed.
'Private Const ERROR_SYSTEM_NEEDS_REMEDIATION As Long = 15623 '  An error in a system binary was detected. Try refreshing the PC to fix the problem.
'Private Const ERROR_APPX_INTEGRITY_FAILURE_CLR_NGEN As Long = 15624 '  A corrupted CLR NGEN binary was detected on the system.
'Private Const ERROR_RESILIENCY_FILE_CORRUPT As Long = 15625 '  The operation could not be resumed because necessary data for recovery have been corrupted.
'Private Const ERROR_INSTALL_FIREWALL_SERVICE_NOT_RUNNING As Long = 15626 '  The package could not be installed because the Windows Firewall service is not running. Enable the Windows Firewall service and try again.
'Private Const APPMODEL_ERROR_NO_PACKAGE As Long = 15700 '  The process has no package identity.
'Private Const APPMODEL_ERROR_PACKAGE_RUNTIME_CORRUPT As Long = 15701 '  The package runtime information is corrupted.
'Private Const APPMODEL_ERROR_PACKAGE_IDENTITY_CORRUPT As Long = 15702 '  The package identity is corrupted.
'Private Const APPMODEL_ERROR_NO_APPLICATION As Long = 15703 '  The process has no application identity.
'Private Const APPMODEL_ERROR_DYNAMIC_PROPERTY_READ_FAILED As Long = 15704 '  One or more AppModel Runtime group policy values could not be read. Please contact your system administrator with the contents of your AppModel Runtime event log.
'Private Const APPMODEL_ERROR_DYNAMIC_PROPERTY_INVALID As Long = 15705 '  One or more AppModel Runtime group policy values are invalid. Please contact your system administrator with the contents of your AppModel Runtime event log.
'Private Const ERROR_STATE_LOAD_STORE_FAILED As Long = 15800 '  Loading the state store failed.
'Private Const ERROR_STATE_GET_VERSION_FAILED As Long = 15801 '  Retrieving the state version for the application failed.
'Private Const ERROR_STATE_SET_VERSION_FAILED As Long = 15802 '  Setting the state version for the application failed.
'Private Const ERROR_STATE_STRUCTURED_RESET_FAILED As Long = 15803 '  Resetting the structured state of the application failed.
'Private Const ERROR_STATE_OPEN_CONTAINER_FAILED As Long = 15804 '  State Manager failed to open the container.
'Private Const ERROR_STATE_CREATE_CONTAINER_FAILED As Long = 15805 '  State Manager failed to create the container.
'Private Const ERROR_STATE_DELETE_CONTAINER_FAILED As Long = 15806 '  State Manager failed to delete the container.
'Private Const ERROR_STATE_READ_SETTING_FAILED As Long = 15807 '  State Manager failed to read the setting.
'Private Const ERROR_STATE_WRITE_SETTING_FAILED As Long = 15808 '  State Manager failed to write the setting.
'Private Const ERROR_STATE_DELETE_SETTING_FAILED As Long = 15809 '  State Manager failed to delete the setting.
'Private Const ERROR_STATE_QUERY_SETTING_FAILED As Long = 15810 '  State Manager failed to query the setting.
'Private Const ERROR_STATE_READ_COMPOSITE_SETTING_FAILED As Long = 15811 '  State Manager failed to read the composite setting.
'Private Const ERROR_STATE_WRITE_COMPOSITE_SETTING_FAILED As Long = 15812 '  State Manager failed to write the composite setting.
'Private Const ERROR_STATE_ENUMERATE_CONTAINER_FAILED As Long = 15813 '  State Manager failed to enumerate the containers.
'Private Const ERROR_STATE_ENUMERATE_SETTINGS_FAILED As Long = 15814 '  State Manager failed to enumerate the settings.
'Private Const ERROR_STATE_COMPOSITE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED As Long = 15815 '  The size of the state manager composite setting value has exceeded the limit.
'Private Const ERROR_STATE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED As Long = 15816 '  The size of the state manager setting value has exceeded the limit.
'Private Const ERROR_STATE_SETTING_NAME_SIZE_LIMIT_EXCEEDED As Long = 15817 '  The length of the state manager setting name has exceeded the limit.
'Private Const ERROR_STATE_CONTAINER_NAME_SIZE_LIMIT_EXCEEDED As Long = 15818 '  The length of the state manager container name has exceeded the limit.
'Private Const ERROR_API_UNAVAILABLE As Long = 15841 '  This API cannot be used in the context of the caller's application type.
'Private Const STORE_ERROR_UNLICENSED As Long = 15861 '  This PC does not have a valid license for the application or product.
'Private Const STORE_ERROR_UNLICENSED_USER As Long = 15862 '  The authenticated user does not have a valid license for the application or product.
'Private Const STORE_ERROR_PENDING_COM_TRANSACTION As Long = 15863 '  The commerce transaction associated with this license is still pending verification.
'Private Const STORE_ERROR_LICENSE_REVOKED As Long = 15864 '  The license has been revoked for this user.
'Private Const E_UNEXPECTED As Long = &H8000FFFF '  Catastrophic failure
'Private Const E_NOTIMPL As Long = &H80004001 '  Not implemented
'Private Const E_OUTOFMEMORY As Long = &H8007000E '  Ran out of memory
'Private Const E_INVALIDARG As Long = &H80070057 '  One or more arguments are invalid
'Private Const E_NOINTERFACE As Long = &H80004002 '  No such interface supported
'Private Const E_POINTER As Long = &H80004003 '  Invalid pointer
'Private Const E_HANDLE As Long = &H80070006 '  Invalid handle
'Private Const E_ABORT As Long = &H80004004 '  Operation aborted
'Private Const E_FAIL As Long = &H80004005 '  Unspecified error
'Private Const E_ACCESSDENIED As Long = &H80070005 '  General access denied error
'Private Const E_NOTIMPL2 As Long = &H80000001 '  Not implemented
'Private Const E_OUTOFMEMORY2 As Long = &H80000002 '  Ran out of memory
'Private Const E_INVALIDARG2 As Long = &H80000003 '  One or more arguments are invalid
'Private Const E_NOINTERFACE2 As Long = &H80000004 '  No such interface supported
'Private Const E_POINTER2 As Long = &H80000005 '  Invalid pointer
'Private Const E_HANDLE2 As Long = &H80000006 '  Invalid handle
'Private Const E_ABORT2 As Long = &H80000007 '  Operation aborted
'Private Const E_FAIL2 As Long = &H80000008 '  Unspecified error
'Private Const E_ACCESSDENIED2 As Long = &H80000009 '  General access denied error
'Private Const E_PENDING As Long = &H8000000A '  The data necessary to complete this operation is not yet available.
'Private Const E_BOUNDS As Long = &H8000000B '  The operation attempted to access data outside the valid range
'Private Const E_CHANGED_STATE As Long = &H8000000C '  A concurrent or interleaved operation changed the state of the object, invalidating this operation.
'Private Const E_ILLEGAL_STATE_CHANGE As Long = &H8000000D '  An illegal state change was requested.
'Private Const E_ILLEGAL_METHOD_CALL As Long = &H8000000E '  A method was called at an unexpected time.
'Private Const RO_E_METADATA_NAME_NOT_FOUND As Long = &H8000000F '  Typename or Namespace was not found in metadata file.
'Private Const RO_E_METADATA_NAME_IS_NAMESPACE As Long = &H80000010 '  Name is an existing namespace rather than a typename.
'Private Const RO_E_METADATA_INVALID_TYPE_FORMAT As Long = &H80000011 '  Typename has an invalid format.
'Private Const RO_E_INVALID_METADATA_FILE As Long = &H80000012 '  Metadata file is invalid or corrupted.
'Private Const RO_E_CLOSED As Long = &H80000013 '  The object has been closed.
'Private Const RO_E_EXCLUSIVE_WRITE As Long = &H80000014 '  Only one thread may access the object during a write operation.
'Private Const RO_E_CHANGE_NOTIFICATION_IN_PROGRESS As Long = &H80000015 '  Operation is prohibited during change notification.
'Private Const RO_E_ERROR_STRING_NOT_FOUND As Long = &H80000016 '  The text associated with this error code could not be found.
'Private Const E_STRING_NOT_NULL_TERMINATED As Long = &H80000017 '  String not null terminated.
'Private Const E_ILLEGAL_DELEGATE_ASSIGNMENT As Long = &H80000018 '  A delegate was assigned when not allowed.
'Private Const E_ASYNC_OPERATION_NOT_STARTED As Long = &H80000019 '  An async operation was not properly started.
'Private Const E_APPLICATION_EXITING As Long = &H8000001A '  The application is exiting and cannot service this request
'Private Const E_APPLICATION_VIEW_EXITING As Long = &H8000001B '  The application view is exiting and cannot service this request
'Private Const RO_E_MUST_BE_AGILE As Long = &H8000001C '  The object must support the IAgileObject interface
'Private Const RO_E_UNSUPPORTED_FROM_MTA As Long = &H8000001D '  Activating a single-threaded class from MTA is not supported
'Private Const RO_E_COMMITTED As Long = &H8000001E '  The object has been committed.
'Private Const RO_E_BLOCKED_CROSS_ASTA_CALL As Long = &H8000001F '  A COM call to an ASTA was blocked because the call chain originated in or passed through another ASTA. This call pattern is deadlock-prone and disallowed by apartment call control.
'Private Const CO_E_INIT_TLS As Long = &H80004006 '  Thread local storage failure
'Private Const CO_E_INIT_SHARED_ALLOCATOR As Long = &H80004007 '  Get shared memory allocator failure
'Private Const CO_E_INIT_MEMORY_ALLOCATOR As Long = &H80004008 '  Get memory allocator failure
'Private Const CO_E_INIT_CLASS_CACHE As Long = &H80004009 '  Unable to initialize class cache
'Private Const CO_E_INIT_RPC_CHANNEL As Long = &H8000400A '  Unable to initialize RPC services
'Private Const CO_E_INIT_TLS_SET_CHANNEL_CONTROL As Long = &H8000400B '  Cannot set thread local storage channel control
'Private Const CO_E_INIT_TLS_CHANNEL_CONTROL As Long = &H8000400C '  Could not allocate thread local storage channel control
'Private Const CO_E_INIT_UNACCEPTED_USER_ALLOCATOR As Long = &H8000400D '  The user supplied memory allocator is unacceptable
'Private Const CO_E_INIT_SCM_MUTEX_EXISTS As Long = &H8000400E '  The OLE service mutex already exists
'Private Const CO_E_INIT_SCM_FILE_MAPPING_EXISTS As Long = &H8000400F '  The OLE service file mapping already exists
'Private Const CO_E_INIT_SCM_MAP_VIEW_OF_FILE As Long = &H80004010 '  Unable to map view of file for OLE service
'Private Const CO_E_INIT_SCM_EXEC_FAILURE As Long = &H80004011 '  Failure attempting to launch OLE service
'Private Const CO_E_INIT_ONLY_SINGLE_THREADED As Long = &H80004012 '  There was an attempt to call CoInitialize a second time while single threaded
'Private Const CO_E_CANT_REMOTE As Long = &H80004013 '  A Remote activation was necessary but was not allowed
'Private Const CO_E_BAD_SERVER_NAME As Long = &H80004014 '  A Remote activation was necessary but the server name provided was invalid
'Private Const CO_E_WRONG_SERVER_IDENTITY As Long = &H80004015 '  The class is configured to run as a security id different from the caller
'Private Const CO_E_OLE1DDE_DISABLED As Long = &H80004016 '  Use of Ole1 services requiring DDE windows is disabled
'Private Const CO_E_RUNAS_SYNTAX As Long = &H80004017 '  A RunAs specification must be \ or simply 
'Private Const CO_E_CREATEPROCESS_FAILURE As Long = &H80004018 '  The server process could not be started. The pathname may be incorrect.
'Private Const CO_E_RUNAS_CREATEPROCESS_FAILURE As Long = &H80004019 '  The server process could not be started as the configured identity. The pathname may be incorrect or unavailable.
'Private Const CO_E_RUNAS_LOGON_FAILURE As Long = &H8000401A '  The server process could not be started because the configured identity is incorrect. Check the username and password.
'Private Const CO_E_LAUNCH_PERMSSION_DENIED As Long = &H8000401B '  The client is not allowed to launch this server.
'Private Const CO_E_START_SERVICE_FAILURE As Long = &H8000401C '  The service providing this server could not be started.
'Private Const CO_E_REMOTE_COMMUNICATION_FAILURE As Long = &H8000401D '  This computer was unable to communicate with the computer providing the server.
'Private Const CO_E_SERVER_START_TIMEOUT As Long = &H8000401E '  The server did not respond after being launched.
'Private Const CO_E_CLSREG_INCONSISTENT As Long = &H8000401F '  The registration information for this server is inconsistent or incomplete.
'Private Const CO_E_IIDREG_INCONSISTENT As Long = &H80004020 '  The registration information for this interface is inconsistent or incomplete.
'Private Const CO_E_NOT_SUPPORTED As Long = &H80004021 '  The operation attempted is not supported.
'Private Const CO_E_RELOAD_DLL As Long = &H80004022 '  A dll must be loaded.
'Private Const CO_E_MSI_ERROR As Long = &H80004023 '  A Microsoft Software Installer error was encountered.
'Private Const CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT As Long = &H80004024 '  The specified activation could not occur in the client context as specified.
'Private Const CO_E_SERVER_PAUSED As Long = &H80004025 '  Activations on the server are paused.
'Private Const CO_E_SERVER_NOT_PAUSED As Long = &H80004026 '  Activations on the server are not paused.
'Private Const CO_E_CLASS_DISABLED As Long = &H80004027 '  The component or application containing the component has been disabled.
'Private Const CO_E_CLRNOTAVAILABLE As Long = &H80004028 '  The common language runtime is not available
'Private Const CO_E_ASYNC_WORK_REJECTED As Long = &H80004029 '  The thread-pool rejected the submitted asynchronous work.
'Private Const CO_E_SERVER_INIT_TIMEOUT As Long = &H8000402A '  The server started, but did not finish initializing in a timely fashion.
'Private Const CO_E_NO_SECCTX_IN_ACTIVATE As Long = &H8000402B '  Unable to complete the call since there is no COM+ security context inside IObjectControl.Activate.
'Private Const CO_E_TRACKER_CONFIG As Long = &H80004030 '  The provided tracker configuration is invalid
'Private Const CO_E_THREADPOOL_CONFIG As Long = &H80004031 '  The provided thread pool configuration is invalid
'Private Const CO_E_SXS_CONFIG As Long = &H80004032 '  The provided side-by-side configuration is invalid
'Private Const CO_E_MALFORMED_SPN As Long = &H80004033 '  The server principal name (SPN) obtained during security negotiation is malformed.
'Private Const CO_E_UNREVOKED_REGISTRATION_ON_APARTMENT_SHUTDOWN As Long = &H80004034 '  The caller failed to revoke a per-apartment registration before apartment shutdown.
'Private Const CO_E_PREMATURE_STUB_RUNDOWN As Long = &H80004035 '  The object has been rundown by the stub manager while there are external clients.
'Private Const OLE_E_OLEVERB As Long = &H80040000 '  Invalid OLEVERB structure
'Private Const OLE_E_ADVF As Long = &H80040001 '  Invalid advise flags
'Private Const OLE_E_ENUM_NOMORE As Long = &H80040002 '  Can't enumerate any more, because the associated data is missing
'Private Const OLE_E_ADVISENOTSUPPORTED As Long = &H80040003 '  This implementation doesn't take advises
'Private Const OLE_E_NOCONNECTION As Long = &H80040004 '  There is no connection for this connection ID
'Private Const OLE_E_NOTRUNNING As Long = &H80040005 '  Need to run the object to perform this operation
'Private Const OLE_E_NOCACHE As Long = &H80040006 '  There is no cache to operate on
'Private Const OLE_E_BLANK As Long = &H80040007 '  Uninitialized object
'Private Const OLE_E_CLASSDIFF As Long = &H80040008 '  Linked object's source class has changed
'Private Const OLE_E_CANT_GETMONIKER As Long = &H80040009 '  Not able to get the moniker of the object
'Private Const OLE_E_CANT_BINDTOSOURCE As Long = &H8004000A '  Not able to bind to the source
'Private Const OLE_E_STATIC As Long = &H8004000B '  Object is static; operation not allowed
'Private Const OLE_E_PROMPTSAVECANCELLED As Long = &H8004000C '  User canceled out of save dialog
'Private Const OLE_E_INVALIDRECT As Long = &H8004000D '  Invalid rectangle
'Private Const OLE_E_WRONGCOMPOBJ As Long = &H8004000E '  compobj.dll is too old for the ole2.dll initialized
'Private Const OLE_E_INVALIDHWND As Long = &H8004000F '  Invalid window handle
'Private Const OLE_E_NOT_INPLACEACTIVE As Long = &H80040010 '  Object is not in any of the inplace active states
'Private Const OLE_E_CANTCONVERT As Long = &H80040011 '  Not able to convert object
'Private Const OLE_E_NOSTORAGE As Long = &H80040012 '  Not able to perform the operation because object is not given storage yet
'Private Const DV_E_FORMATETC As Long = &H80040064 '  Invalid FORMATETC structure
'Private Const DV_E_DVTARGETDEVICE As Long = &H80040065 '  Invalid DVTARGETDEVICE structure
'Private Const DV_E_STGMEDIUM As Long = &H80040066 '  Invalid STDGMEDIUM structure
'Private Const DV_E_STATDATA As Long = &H80040067 '  Invalid STATDATA structure
'Private Const DV_E_LINDEX As Long = &H80040068 '  Invalid lindex
'Private Const DV_E_TYMED As Long = &H80040069 '  Invalid tymed
'Private Const DV_E_CLIPFORMAT As Long = &H8004006A '  Invalid clipboard format
'Private Const DV_E_DVASPECT As Long = &H8004006B '  Invalid aspect(s)
'Private Const DV_E_DVTARGETDEVICE_SIZE As Long = &H8004006C '  tdSize parameter of the DVTARGETDEVICE structure is invalid
'Private Const DV_E_NOIVIEWOBJECT As Long = &H8004006D '  Object doesn't support IViewObject interface
'Private Const DRAGDROP_E_NOTREGISTERED As Long = &H80040100 '  Trying to revoke a drop target that has not been registered
'Private Const DRAGDROP_E_ALREADYREGISTERED As Long = &H80040101 '  This window has already been registered as a drop target
'Private Const DRAGDROP_E_INVALIDHWND As Long = &H80040102 '  Invalid window handle
'Private Const DRAGDROP_E_CONCURRENT_DRAG_ATTEMPTED As Long = &H80040103 '  A drag operation is already in progress
'Private Const CLASS_E_NOAGGREGATION As Long = &H80040110 '  Class does not support aggregation (or class object is remote)
'Private Const CLASS_E_CLASSNOTAVAILABLE As Long = &H80040111 '  ClassFactory cannot supply requested class
'Private Const CLASS_E_NOTLICENSED As Long = &H80040112 '  Class is not licensed for use
'Private Const VIEW_E_DRAW As Long = &H80040140 '  Error drawing view
'Private Const REGDB_E_READREGDB As Long = &H80040150 '  Could not read key from registry
'Private Const REGDB_E_WRITEREGDB As Long = &H80040151 '  Could not write key to registry
'Private Const REGDB_E_KEYMISSING As Long = &H80040152 '  Could not find the key in the registry
'Private Const REGDB_E_INVALIDVALUE As Long = &H80040153 '  Invalid value for registry
'Private Const REGDB_E_CLASSNOTREG As Long = &H80040154 '  Class not registered
'Private Const REGDB_E_IIDNOTREG As Long = &H80040155 '  Interface not registered
'Private Const REGDB_E_BADTHREADINGMODEL As Long = &H80040156 '  Threading model entry is not valid
'Private Const CAT_E_CATIDNOEXIST As Long = &H80040160 '  CATID does not exist
'Private Const CAT_E_NODESCRIPTION As Long = &H80040161 '  Description not found
'Private Const CS_E_PACKAGE_NOTFOUND As Long = &H80040164 '  No package in the software installation data in the Active Directory meets this criteria.
'Private Const CS_E_NOT_DELETABLE As Long = &H80040165 '  Deleting this will break the referential integrity of the software installation data in the Active Directory.
'Private Const CS_E_CLASS_NOTFOUND As Long = &H80040166 '  The CLSID was not found in the software installation data in the Active Directory.
'Private Const CS_E_INVALID_VERSION As Long = &H80040167 '  The software installation data in the Active Directory is corrupt.
'Private Const CS_E_NO_CLASSSTORE As Long = &H80040168 '  There is no software installation data in the Active Directory.
'Private Const CS_E_OBJECT_NOTFOUND As Long = &H80040169 '  There is no software installation data object in the Active Directory.
'Private Const CS_E_OBJECT_ALREADY_EXISTS As Long = &H8004016A '  The software installation data object in the Active Directory already exists.
'Private Const CS_E_INVALID_PATH As Long = &H8004016B '  The path to the software installation data in the Active Directory is not correct.
'Private Const CS_E_NETWORK_ERROR As Long = &H8004016C '  A network error interrupted the operation.
'Private Const CS_E_ADMIN_LIMIT_EXCEEDED As Long = &H8004016D '  The size of this object exceeds the maximum size set by the Administrator.
'Private Const CS_E_SCHEMA_MISMATCH As Long = &H8004016E '  The schema for the software installation data in the Active Directory does not match the required schema.
'Private Const CS_E_INTERNAL_ERROR As Long = &H8004016F '  An error occurred in the software installation data in the Active Directory.
'Private Const CACHE_E_NOCACHE_UPDATED As Long = &H80040170 '  Cache not updated
'Private Const OLEOBJ_E_NOVERBS As Long = &H80040180 '  No verbs for OLE object
'Private Const OLEOBJ_E_INVALIDVERB As Long = &H80040181 '  Invalid verb for OLE object
'Private Const INPLACE_E_NOTUNDOABLE As Long = &H800401A0 '  Undo is not available
'Private Const INPLACE_E_NOTOOLSPACE As Long = &H800401A1 '  Space for tools is not available
'Private Const CONVERT10_E_OLESTREAM_GET As Long = &H800401C0 '  OLESTREAM Get method failed
'Private Const CONVERT10_E_OLESTREAM_PUT As Long = &H800401C1 '  OLESTREAM Put method failed
'Private Const CONVERT10_E_OLESTREAM_FMT As Long = &H800401C2 '  Contents of the OLESTREAM not in correct format
'Private Const CONVERT10_E_OLESTREAM_BITMAP_TO_DIB As Long = &H800401C3 '  There was an error in a Windows GDI call while converting the bitmap to a DIB
'Private Const CONVERT10_E_STG_FMT As Long = &H800401C4 '  Contents of the IStorage not in correct format
'Private Const CONVERT10_E_STG_NO_STD_STREAM As Long = &H800401C5 '  Contents of IStorage is missing one of the standard streams
'Private Const CONVERT10_E_STG_DIB_TO_BITMAP As Long = &H800401C6 '  There was an error in a Windows GDI call while converting the DIB to a bitmap.
'Private Const CLIPBRD_E_CANT_OPEN As Long = &H800401D0 '  OpenClipboard Failed
'Private Const CLIPBRD_E_CANT_EMPTY As Long = &H800401D1 '  EmptyClipboard Failed
'Private Const CLIPBRD_E_CANT_SET As Long = &H800401D2 '  SetClipboard Failed
'Private Const CLIPBRD_E_BAD_DATA As Long = &H800401D3 '  Data on clipboard is invalid
'Private Const CLIPBRD_E_CANT_CLOSE As Long = &H800401D4 '  CloseClipboard Failed
'Private Const MK_E_CONNECTMANUALLY As Long = &H800401E0 '  Moniker needs to be connected manually
'Private Const MK_E_EXCEEDEDDEADLINE As Long = &H800401E1 '  Operation exceeded deadline
'Private Const MK_E_NEEDGENERIC As Long = &H800401E2 '  Moniker needs to be generic
'Private Const MK_E_UNAVAILABLE As Long = &H800401E3 '  Operation unavailable
'Private Const MK_E_SYNTAX As Long = &H800401E4 '  Invalid syntax
'Private Const MK_E_NOOBJECT As Long = &H800401E5 '  No object for moniker
'Private Const MK_E_INVALIDEXTENSION As Long = &H800401E6 '  Bad extension for file
'Private Const MK_E_INTERMEDIATEINTERFACENOTSUPPORTED As Long = &H800401E7 '  Intermediate operation failed
'Private Const MK_E_NOTBINDABLE As Long = &H800401E8 '  Moniker is not bindable
'Private Const MK_E_NOTBOUND As Long = &H800401E9 '  Moniker is not bound
'Private Const MK_E_CANTOPENFILE As Long = &H800401EA '  Moniker cannot open file
'Private Const MK_E_MUSTBOTHERUSER As Long = &H800401EB '  User input required for operation to succeed
'Private Const MK_E_NOINVERSE As Long = &H800401EC '  Moniker class has no inverse
'Private Const MK_E_NOSTORAGE As Long = &H800401ED '  Moniker does not refer to storage
'Private Const MK_E_NOPREFIX As Long = &H800401EE '  No common prefix
'Private Const MK_E_ENUMERATION_FAILED As Long = &H800401EF '  Moniker could not be enumerated
'Private Const CO_E_NOTINITIALIZED As Long = &H800401F0 '  CoInitialize has not been called.
'Private Const CO_E_ALREADYINITIALIZED As Long = &H800401F1 '  CoInitialize has already been called.
'Private Const CO_E_CANTDETERMINECLASS As Long = &H800401F2 '  Class of object cannot be determined
'Private Const CO_E_CLASSSTRING As Long = &H800401F3 '  Invalid class string
'Private Const CO_E_IIDSTRING As Long = &H800401F4 '  Invalid interface string
'Private Const CO_E_APPNOTFOUND As Long = &H800401F5 '  Application not found
'Private Const CO_E_APPSINGLEUSE As Long = &H800401F6 '  Application cannot be run more than once
'Private Const CO_E_ERRORINAPP As Long = &H800401F7 '  Some error in application program
'Private Const CO_E_DLLNOTFOUND As Long = &H800401F8 '  DLL for class not found
'Private Const CO_E_ERRORINDLL As Long = &H800401F9 '  Error in the DLL
'Private Const CO_E_WRONGOSFORAPP As Long = &H800401FA '  Wrong OS or OS version for application
'Private Const CO_E_OBJNOTREG As Long = &H800401FB '  Object is not registered
'Private Const CO_E_OBJISREG As Long = &H800401FC '  Object is already registered
'Private Const CO_E_OBJNOTCONNECTED As Long = &H800401FD '  Object is not connected to server
'Private Const CO_E_APPDIDNTREG As Long = &H800401FE '  Application was launched but it didn't register a class factory
'Private Const CO_E_RELEASED As Long = &H800401FF '  Object has been released
'Private Const EVENT_S_SOME_SUBSCRIBERS_FAILED As Long = &H40200   '  An event was able to invoke some but not all of the subscribers
'Private Const EVENT_E_ALL_SUBSCRIBERS_FAILED As Long = &H80040201 '  An event was unable to invoke any of the subscribers
'Private Const EVENT_S_NOSUBSCRIBERS As Long = &H40202   '  An event was delivered but there were no subscribers
'Private Const EVENT_E_QUERYSYNTAX As Long = &H80040203 '  A syntax error occurred trying to evaluate a query string
'Private Const EVENT_E_QUERYFIELD As Long = &H80040204 '  An invalid field name was used in a query string
'Private Const EVENT_E_INTERNALEXCEPTION As Long = &H80040205 '  An unexpected exception was raised
'Private Const EVENT_E_INTERNALERROR As Long = &H80040206 '  An unexpected internal error was detected
'Private Const EVENT_E_INVALID_PER_USER_SID As Long = &H80040207 '  The owner SID on a per-user subscription doesn't exist
'Private Const EVENT_E_USER_EXCEPTION As Long = &H80040208 '  A user-supplied component or subscriber raised an exception
'Private Const EVENT_E_TOO_MANY_METHODS As Long = &H80040209 '  An interface has too many methods to fire events from
'Private Const EVENT_E_MISSING_EVENTCLASS As Long = &H8004020A '  A subscription cannot be stored unless its event class already exists
'Private Const EVENT_E_NOT_ALL_REMOVED As Long = &H8004020B '  Not all the objects requested could be removed
'Private Const EVENT_E_COMPLUS_NOT_INSTALLED As Long = &H8004020C '  COM+ is required for this operation, but is not installed
'Private Const EVENT_E_CANT_MODIFY_OR_DELETE_UNCONFIGURED_OBJECT As Long = &H8004020D '  Cannot modify or delete an object that was not added using the COM+ Admin SDK
'Private Const EVENT_E_CANT_MODIFY_OR_DELETE_CONFIGURED_OBJECT As Long = &H8004020E '  Cannot modify or delete an object that was added using the COM+ Admin SDK
'Private Const EVENT_E_INVALID_EVENT_CLASS_PARTITION As Long = &H8004020F '  The event class for this subscription is in an invalid partition
'Private Const EVENT_E_PER_USER_SID_NOT_LOGGED_ON As Long = &H80040210 '  The owner of the PerUser subscription is not logged on to the system specified
'Private Const TPC_E_INVALID_PROPERTY As Long = &H80040241 '  TabletPC inking error code. The property was not found, or supported by the recognizer
'Private Const TPC_E_NO_DEFAULT_TABLET As Long = &H80040212 '  TabletPC inking error code. No default tablet
'Private Const TPC_E_UNKNOWN_PROPERTY As Long = &H8004021B '  TabletPC inking error code. Unknown property specified
'Private Const TPC_E_INVALID_INPUT_RECT As Long = &H80040219 '  TabletPC inking error code. An invalid input rectangle was specified
'Private Const TPC_E_INVALID_STROKE As Long = &H80040222 '  TabletPC inking error code. The stroke object was deleted
'Private Const TPC_E_INITIALIZE_FAIL As Long = &H80040223 '  TabletPC inking error code. Initialization failure
'Private Const TPC_E_NOT_RELEVANT As Long = &H80040232 '  TabletPC inking error code. The data required for the operation was not supplied
'Private Const TPC_E_INVALID_PACKET_DESCRIPTION As Long = &H80040233 '  TabletPC inking error code. Invalid packet description
'Private Const TPC_E_RECOGNIZER_NOT_REGISTERED As Long = &H80040235 '  TabletPC inking error code. There are no handwriting recognizers registered
'Private Const TPC_E_INVALID_RIGHTS As Long = &H80040236 '  TabletPC inking error code. User does not have the necessary rights to read recognizer information
'Private Const TPC_E_OUT_OF_ORDER_CALL As Long = &H80040237 '  TabletPC inking error code. API calls were made in an incorrect order
'Private Const TPC_E_QUEUE_FULL As Long = &H80040238 '  TabletPC inking error code. Queue is full
'Private Const TPC_E_INVALID_CONFIGURATION As Long = &H80040239 '  TabletPC inking error code. RtpEnabled called multiple times
'Private Const TPC_E_INVALID_DATA_FROM_RECOGNIZER As Long = &H8004023A '  TabletPC inking error code. A recognizer returned invalid data
'Private Const TPC_S_TRUNCATED As Long = &H40252   '  TabletPC inking error code. String was truncated
'Private Const TPC_S_INTERRUPTED As Long = &H40253   '  TabletPC inking error code. Recognition or training was interrupted
'Private Const TPC_S_NO_DATA_TO_PROCESS As Long = &H40254   '  TabletPC inking error code. No personalization update to the recognizer because no training data found
'Private Const XACT_E_ALREADYOTHERSINGLEPHASE As Long = &H8004D000 '  Another single phase resource manager has already been enlisted in this transaction.
'Private Const XACT_E_CANTRETAIN As Long = &H8004D001 '  A retaining commit or abort is not supported
'Private Const XACT_E_COMMITFAILED As Long = &H8004D002 '  The transaction failed to commit for an unknown reason. The transaction was aborted.
'Private Const XACT_E_COMMITPREVENTED As Long = &H8004D003 '  Cannot call commit on this transaction object because the calling application did not initiate the transaction.
'Private Const XACT_E_HEURISTICABORT As Long = &H8004D004 '  Instead of committing, the resource heuristically aborted.
'Private Const XACT_E_HEURISTICCOMMIT As Long = &H8004D005 '  Instead of aborting, the resource heuristically committed.
'Private Const XACT_E_HEURISTICDAMAGE As Long = &H8004D006 '  Some of the states of the resource were committed while others were aborted, likely because of heuristic decisions.
'Private Const XACT_E_HEURISTICDANGER As Long = &H8004D007 '  Some of the states of the resource may have been committed while others may have been aborted, likely because of heuristic decisions.
'Private Const XACT_E_ISOLATIONLEVEL As Long = &H8004D008 '  The requested isolation level is not valid or supported.
'Private Const XACT_E_NOASYNC As Long = &H8004D009 '  The transaction manager doesn't support an asynchronous operation for this method.
'Private Const XACT_E_NOENLIST As Long = &H8004D00A '  Unable to enlist in the transaction.
'Private Const XACT_E_NOISORETAIN As Long = &H8004D00B '  The requested semantics of retention of isolation across retaining commit and abort boundaries cannot be supported by this transaction implementation, or isoFlags was not equal to zero.
'Private Const XACT_E_NORESOURCE As Long = &H8004D00C '  There is no resource presently associated with this enlistment
'Private Const XACT_E_NOTCURRENT As Long = &H8004D00D '  The transaction failed to commit due to the failure of optimistic concurrency control in at least one of the resource managers.
'Private Const XACT_E_NOTRANSACTION As Long = &H8004D00E '  The transaction has already been implicitly or explicitly committed or aborted
'Private Const XACT_E_NOTSUPPORTED As Long = &H8004D00F '  An invalid combination of flags was specified
'Private Const XACT_E_UNKNOWNRMGRID As Long = &H8004D010 '  The resource manager id is not associated with this transaction or the transaction manager.
'Private Const XACT_E_WRONGSTATE As Long = &H8004D011 '  This method was called in the wrong state
'Private Const XACT_E_WRONGUOW As Long = &H8004D012 '  The indicated unit of work does not match the unit of work expected by the resource manager.
'Private Const XACT_E_XTIONEXISTS As Long = &H8004D013 '  An enlistment in a transaction already exists.
'Private Const XACT_E_NOIMPORTOBJECT As Long = &H8004D014 '  An import object for the transaction could not be found.
'Private Const XACT_E_INVALIDCOOKIE As Long = &H8004D015 '  The transaction cookie is invalid.
'Private Const XACT_E_INDOUBT As Long = &H8004D016 '  The transaction status is in doubt. A communication failure occurred, or a transaction manager or resource manager has failed
'Private Const XACT_E_NOTIMEOUT As Long = &H8004D017 '  A time-out was specified, but time-outs are not supported.
'Private Const XACT_E_ALREADYINPROGRESS As Long = &H8004D018 '  The requested operation is already in progress for the transaction.
'Private Const XACT_E_ABORTED As Long = &H8004D019 '  The transaction has already been aborted.
'Private Const XACT_E_LOGFULL As Long = &H8004D01A '  The Transaction Manager returned a log full error.
'Private Const XACT_E_TMNOTAVAILABLE As Long = &H8004D01B '  The Transaction Manager is not available.
'Private Const XACT_E_CONNECTION_DOWN As Long = &H8004D01C '  A connection with the transaction manager was lost.
'Private Const XACT_E_CONNECTION_DENIED As Long = &H8004D01D '  A request to establish a connection with the transaction manager was denied.
'Private Const XACT_E_REENLISTTIMEOUT As Long = &H8004D01E '  Resource manager reenlistment to determine transaction status timed out.
'Private Const XACT_E_TIP_CONNECT_FAILED As Long = &H8004D01F '  This transaction manager failed to establish a connection with another TIP transaction manager.
'Private Const XACT_E_TIP_PROTOCOL_ERROR As Long = &H8004D020 '  This transaction manager encountered a protocol error with another TIP transaction manager.
'Private Const XACT_E_TIP_PULL_FAILED As Long = &H8004D021 '  This transaction manager could not propagate a transaction from another TIP transaction manager.
'Private Const XACT_E_DEST_TMNOTAVAILABLE As Long = &H8004D022 '  The Transaction Manager on the destination machine is not available.
'Private Const XACT_E_TIP_DISABLED As Long = &H8004D023 '  The Transaction Manager has disabled its support for TIP.
'Private Const XACT_E_NETWORK_TX_DISABLED As Long = &H8004D024 '  The transaction manager has disabled its support for remote/network transactions.
'Private Const XACT_E_PARTNER_NETWORK_TX_DISABLED As Long = &H8004D025 '  The partner transaction manager has disabled its support for remote/network transactions.
'Private Const XACT_E_XA_TX_DISABLED As Long = &H8004D026 '  The transaction manager has disabled its support for XA transactions.
'Private Const XACT_E_UNABLE_TO_READ_DTC_CONFIG As Long = &H8004D027 '  MSDTC was unable to read its configuration information.
'Private Const XACT_E_UNABLE_TO_LOAD_DTC_PROXY As Long = &H8004D028 '  MSDTC was unable to load the dtc proxy dll.
'Private Const XACT_E_ABORTING As Long = &H8004D029 '  The local transaction has aborted.
'Private Const XACT_E_PUSH_COMM_FAILURE As Long = &H8004D02A '  The MSDTC transaction manager was unable to push the transaction to the destination transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers.
'Private Const XACT_E_PULL_COMM_FAILURE As Long = &H8004D02B '  The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers.
'Private Const XACT_E_LU_TX_DISABLED As Long = &H8004D02C '  The MSDTC transaction manager has disabled its support for SNA LU 6.2 transactions.
'Private Const XACT_E_CLERKNOTFOUND As Long = &H8004D080 '   XACT_E_CLERKNOTFOUND
'Private Const XACT_E_CLERKEXISTS As Long = &H8004D081 '   XACT_E_CLERKEXISTS
'Private Const XACT_E_RECOVERYINPROGRESS As Long = &H8004D082 '   XACT_E_RECOVERYINPROGRESS
'Private Const XACT_E_TRANSACTIONCLOSED As Long = &H8004D083 '   XACT_E_TRANSACTIONCLOSED
'Private Const XACT_E_INVALIDLSN As Long = &H8004D084 '   XACT_E_INVALIDLSN
'Private Const XACT_E_REPLAYREQUEST As Long = &H8004D085 '   XACT_E_REPLAYREQUEST
'Private Const XACT_E_CONNECTION_REQUEST_DENIED As Long = &H8004D100 '  The request to connect to the specified transaction coordinator was denied.
'Private Const XACT_E_TOOMANY_ENLISTMENTS As Long = &H8004D101 '  The maximum number of enlistments for the specified transaction has been reached.
'Private Const XACT_E_DUPLICATE_GUID As Long = &H8004D102 '  A resource manager with the same identifier is already registered with the specified transaction coordinator.
'Private Const XACT_E_NOTSINGLEPHASE As Long = &H8004D103 '  The prepare request given was not eligible for single phase optimizations.
'Private Const XACT_E_RECOVERYALREADYDONE As Long = &H8004D104 '  RecoveryComplete has already been called for the given resource manager.
'Private Const XACT_E_PROTOCOL As Long = &H8004D105 '  The interface call made was incorrect for the current state of the protocol.
'Private Const XACT_E_RM_FAILURE As Long = &H8004D106 '  xa_open call failed for the XA resource.
'Private Const XACT_E_RECOVERY_FAILED As Long = &H8004D107 '  xa_recover call failed for the XA resource.
'Private Const XACT_E_LU_NOT_FOUND As Long = &H8004D108 '  The Logical Unit of Work specified cannot be found.
'Private Const XACT_E_DUPLICATE_LU As Long = &H8004D109 '  The specified Logical Unit of Work already exists.
'Private Const XACT_E_LU_NOT_CONNECTED As Long = &H8004D10A '  Subordinate creation failed. The specified Logical Unit of Work was not connected.
'Private Const XACT_E_DUPLICATE_TRANSID As Long = &H8004D10B '  A transaction with the given identifier already exists.
'Private Const XACT_E_LU_BUSY As Long = &H8004D10C '  The resource is in use.
'Private Const XACT_E_LU_NO_RECOVERY_PROCESS As Long = &H8004D10D '  The LU Recovery process is down.
'Private Const XACT_E_LU_DOWN As Long = &H8004D10E '  The remote session was lost.
'Private Const XACT_E_LU_RECOVERING As Long = &H8004D10F '  The resource is currently recovering.
'Private Const XACT_E_LU_RECOVERY_MISMATCH As Long = &H8004D110 '  There was a mismatch in driving recovery.
'Private Const XACT_E_RM_UNAVAILABLE As Long = &H8004D111 '  An error occurred with the XA resource.
'Private Const XACT_S_ASYNC As Long = &H4D000   '  An asynchronous operation was specified. The operation has begun, but its outcome is not known yet.
'Private Const XACT_S_DEFECT As Long = &H4D001   '   XACT_S_DEFECT
'Private Const XACT_S_READONLY As Long = &H4D002   '  The method call succeeded because the transaction was read-only.
'Private Const XACT_S_SOMENORETAIN As Long = &H4D003   '  The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics
'Private Const XACT_S_OKINFORM As Long = &H4D004   '  No changes were made during this call, but the sink wants another chance to look if any other sinks make further changes.
'Private Const XACT_S_MADECHANGESCONTENT As Long = &H4D005   '  The sink is content and wishes the transaction to proceed. Changes were made to one or more resources during this call.
'Private Const XACT_S_MADECHANGESINFORM As Long = &H4D006   '  The sink is for the moment and wishes the transaction to proceed, but if other changes are made following this return by other event sinks then this sink wants another chance to look
'Private Const XACT_S_ALLNORETAIN As Long = &H4D007   '  The transaction was successfully aborted. However, the abort was non-retaining.
'Private Const XACT_S_ABORTING As Long = &H4D008   '  An abort operation was already in progress.
'Private Const XACT_S_SINGLEPHASE As Long = &H4D009   '  The resource manager has performed a single-phase commit of the transaction.
'Private Const XACT_S_LOCALLY_OK As Long = &H4D00A   '  The local transaction has not aborted.
'Private Const XACT_S_LASTRESOURCEMANAGER As Long = &H4D010   '  The resource manager has requested to be the coordinator (last resource manager) for the transaction.
'Private Const CONTEXT_E_ABORTED As Long = &H8004E002 '  The root transaction wanted to commit, but transaction aborted
'Private Const CONTEXT_E_ABORTING As Long = &H8004E003 '  You made a method call on a COM+ component that has a transaction that has already aborted or in the process of aborting.
'Private Const CONTEXT_E_NOCONTEXT As Long = &H8004E004 '  There is no MTS object context
'Private Const CONTEXT_E_WOULD_DEADLOCK As Long = &H8004E005 '  The component is configured to use synchronization and this method call would cause a deadlock to occur.
'Private Const CONTEXT_E_SYNCH_TIMEOUT As Long = &H8004E006 '  The component is configured to use synchronization and a thread has timed out waiting to enter the context.
'Private Const CONTEXT_E_OLDREF As Long = &H8004E007 '  You made a method call on a COM+ component that has a transaction that has already committed or aborted.
'Private Const CONTEXT_E_ROLENOTFOUND As Long = &H8004E00C '  The specified role was not configured for the application
'Private Const CONTEXT_E_TMNOTAVAILABLE As Long = &H8004E00F '  COM+ was unable to talk to the Microsoft Distributed Transaction Coordinator
'Private Const CO_E_ACTIVATIONFAILED As Long = &H8004E021 '  An unexpected error occurred during COM+ Activation.
'Private Const CO_E_ACTIVATIONFAILED_EVENTLOGGED As Long = &H8004E022 '  COM+ Activation failed. Check the event log for more information
'Private Const CO_E_ACTIVATIONFAILED_CATALOGERROR As Long = &H8004E023 '  COM+ Activation failed due to a catalog or configuration error.
'Private Const CO_E_ACTIVATIONFAILED_TIMEOUT As Long = &H8004E024 '  COM+ activation failed because the activation could not be completed in the specified amount of time.
'Private Const CO_E_INITIALIZATIONFAILED As Long = &H8004E025 '  COM+ Activation failed because an initialization function failed. Check the event log for more information.
'Private Const CONTEXT_E_NOJIT As Long = &H8004E026 '  The requested operation requires that JIT be in the current context and it is not
'Private Const CONTEXT_E_NOTRANSACTION As Long = &H8004E027 '  The requested operation requires that the current context have a Transaction, and it does not
'Private Const CO_E_THREADINGMODEL_CHANGED As Long = &H8004E028 '  The components threading model has changed after install into a COM+ Application. Please re-install component.
'Private Const CO_E_NOIISINTRINSICS As Long = &H8004E029 '  IIS intrinsics not available. Start your work with IIS.
'Private Const CO_E_NOCOOKIES As Long = &H8004E02A '  An attempt to write a cookie failed.
'Private Const CO_E_DBERROR As Long = &H8004E02B '  An attempt to use a database generated a database specific error.
'Private Const CO_E_NOTPOOLED As Long = &H8004E02C '  The COM+ component you created must use object pooling to work.
'Private Const CO_E_NOTCONSTRUCTED As Long = &H8004E02D '  The COM+ component you created must use object construction to work correctly.
'Private Const CO_E_NOSYNCHRONIZATION As Long = &H8004E02E '  The COM+ component requires synchronization, and it is not configured for it.
'Private Const CO_E_ISOLEVELMISMATCH As Long = &H8004E02F '  The TxIsolation Level property for the COM+ component being created is stronger than the TxIsolationLevel for the "root" component for the transaction. The creation failed.
'Private Const CO_E_CALL_OUT_OF_TX_SCOPE_NOT_ALLOWED As Long = &H8004E030 '  The component attempted to make a cross-context call between invocations of EnterTransactionScopeand ExitTransactionScope. This is not allowed. Cross-context calls cannot be made while inside of a transaction scope.
'Private Const CO_E_EXIT_TRANSACTION_SCOPE_NOT_CALLED As Long = &H8004E031 '  The component made a call to EnterTransactionScope, but did not make a corresponding call to ExitTransactionScope before returning.
'Private Const OLE_S_USEREG As Long = &H40000   '  Use the registry database to provide the requested information
'Private Const OLE_S_STATIC As Long = &H40001   '  Success, but static
'Private Const OLE_S_MAC_CLIPFORMAT As Long = &H40002   '  Macintosh clipboard format
'Private Const DRAGDROP_S_DROP As Long = &H40100   '  Successful drop took place
'Private Const DRAGDROP_S_CANCEL As Long = &H40101   '  Drag-drop operation canceled
'Private Const DRAGDROP_S_USEDEFAULTCURSORS As Long = &H40102   '  Use the default cursor
'Private Const DATA_S_SAMEFORMATETC As Long = &H40130   '  Data has same FORMATETC
'Private Const VIEW_S_ALREADY_FROZEN As Long = &H40140   '  View is already frozen
'Private Const CACHE_S_FORMATETC_NOTSUPPORTED As Long = &H40170   '  FORMATETC not supported
'Private Const CACHE_S_SAMECACHE As Long = &H40171   '  Same cache
'Private Const CACHE_S_SOMECACHES_NOTUPDATED As Long = &H40172   '  Some cache(s) not updated
'Private Const OLEOBJ_S_INVALIDVERB As Long = &H40180   '  Invalid verb for OLE object
'Private Const OLEOBJ_S_CANNOT_DOVERB_NOW As Long = &H40181   '  Verb number is valid but verb cannot be done now
'Private Const OLEOBJ_S_INVALIDHWND As Long = &H40182   '  Invalid window handle passed
'Private Const INPLACE_S_TRUNCATED As Long = &H401A0   '  Message is too long; some of it had to be truncated before displaying
'Private Const CONVERT10_S_NO_PRESENTATION As Long = &H401C0   '  Unable to convert OLESTREAM to IStorage
'Private Const MK_S_REDUCED_TO_SELF As Long = &H401E2   '  Moniker reduced to itself
'Private Const MK_S_ME As Long = &H401E4   '  Common prefix is this moniker
'Private Const MK_S_HIM As Long = &H401E5   '  Common prefix is input moniker
'Private Const MK_S_US As Long = &H401E6   '  Common prefix is both monikers
'Private Const MK_S_MONIKERALREADYREGISTERED As Long = &H401E7   '  Moniker is already registered in running object table
'Private Const SCHED_S_TASK_READY As Long = &H41300   '  The task is ready to run at its next scheduled time.
'Private Const SCHED_S_TASK_RUNNING As Long = &H41301   '  The task is currently running.
'Private Const SCHED_S_TASK_DISABLED As Long = &H41302   '  The task will not run at the scheduled times because it has been disabled.
'Private Const SCHED_S_TASK_HAS_NOT_RUN As Long = &H41303   '  The task has not yet run.
'Private Const SCHED_S_TASK_NO_MORE_RUNS As Long = &H41304   '  There are no more runs scheduled for this task.
'Private Const SCHED_S_TASK_NOT_SCHEDULED As Long = &H41305   '  One or more of the properties that are needed to run this task on a schedule have not been set.
'Private Const SCHED_S_TASK_TERMINATED As Long = &H41306   '  The last run of the task was terminated by the user.
'Private Const SCHED_S_TASK_NO_VALID_TRIGGERS As Long = &H41307   '  Either the task has no triggers or the existing triggers are disabled or not set.
'Private Const SCHED_S_EVENT_TRIGGER As Long = &H41308   '  Event triggers don't have set run times.
'Private Const SCHED_E_TRIGGER_NOT_FOUND As Long = &H80041309 '  Trigger not found.
'Private Const SCHED_E_TASK_NOT_READY As Long = &H8004130A '  One or more of the properties that are needed to run this task have not been set.
'Private Const SCHED_E_TASK_NOT_RUNNING As Long = &H8004130B '  There is no running instance of the task.
'Private Const SCHED_E_SERVICE_NOT_INSTALLED As Long = &H8004130C '  The Task Scheduler Service is not installed on this computer.
'Private Const SCHED_E_CANNOT_OPEN_TASK As Long = &H8004130D '  The task object could not be opened.
'Private Const SCHED_E_INVALID_TASK As Long = &H8004130E '  The object is either an invalid task object or is not a task object.
'Private Const SCHED_E_ACCOUNT_INFORMATION_NOT_SET As Long = &H8004130F '  No account information could be found in the Task Scheduler security database for the task indicated.
'Private Const SCHED_E_ACCOUNT_NAME_NOT_FOUND As Long = &H80041310 '  Unable to establish existence of the account specified.
'Private Const SCHED_E_ACCOUNT_DBASE_CORRUPT As Long = &H80041311 '  Corruption was detected in the Task Scheduler security database; the database has been reset.
'Private Const SCHED_E_NO_SECURITY_SERVICES As Long = &H80041312 '  Task Scheduler security services are available only on Windows NT.
'Private Const SCHED_E_UNKNOWN_OBJECT_VERSION As Long = &H80041313 '  The task object version is either unsupported or invalid.
'Private Const SCHED_E_UNSUPPORTED_ACCOUNT_OPTION As Long = &H80041314 '  The task has been configured with an unsupported combination of account settings and run time options.
'Private Const SCHED_E_SERVICE_NOT_RUNNING As Long = &H80041315 '  The Task Scheduler Service is not running.
'Private Const SCHED_E_UNEXPECTEDNODE As Long = &H80041316 '  The task XML contains an unexpected node.
'Private Const SCHED_E_NAMESPACE As Long = &H80041317 '  The task XML contains an element or attribute from an unexpected namespace.
'Private Const SCHED_E_INVALIDVALUE As Long = &H80041318 '  The task XML contains a value which is incorrectly formatted or out of range.
'Private Const SCHED_E_MISSINGNODE As Long = &H80041319 '  The task XML is missing a required element or attribute.
'Private Const SCHED_E_MALFORMEDXML As Long = &H8004131A '  The task XML is malformed.
'Private Const SCHED_S_SOME_TRIGGERS_FAILED As Long = &H4131B   '  The task is registered, but not all specified triggers will start the task, check task scheduler event log for detailed information.
'Private Const SCHED_S_BATCH_LOGON_PROBLEM As Long = &H4131C   '  The task is registered, but may fail to start. Batch logon privilege needs to be enabled for the task principal.
'Private Const SCHED_E_TOO_MANY_NODES As Long = &H8004131D '  The task XML contains too many nodes of the same type.
'Private Const SCHED_E_PAST_END_BOUNDARY As Long = &H8004131E '  The task cannot be started after the trigger's end boundary.
'Private Const SCHED_E_ALREADY_RUNNING As Long = &H8004131F '  An instance of this task is already running.
'Private Const SCHED_E_USER_NOT_LOGGED_ON As Long = &H80041320 '  The task will not run because the user is not logged on.
'Private Const SCHED_E_INVALID_TASK_HASH As Long = &H80041321 '  The task image is corrupt or has been tampered with.
'Private Const SCHED_E_SERVICE_NOT_AVAILABLE As Long = &H80041322 '  The Task Scheduler service is not available.
'Private Const SCHED_E_SERVICE_TOO_BUSY As Long = &H80041323 '  The Task Scheduler service is too busy to handle your request. Please try again later.
'Private Const SCHED_E_TASK_ATTEMPTED As Long = &H80041324 '  The Task Scheduler service attempted to run the task, but the task did not run due to one of the constraints in the task definition.
'Private Const SCHED_S_TASK_QUEUED As Long = &H41325   '  The Task Scheduler service has asked the task to run.
'Private Const SCHED_E_TASK_DISABLED As Long = &H80041326 '  The task is disabled.
'Private Const SCHED_E_TASK_NOT_V1_COMPAT As Long = &H80041327 '  The task has properties that are not compatible with previous versions of Windows.
'Private Const SCHED_E_START_ON_DEMAND As Long = &H80041328 '  The task settings do not allow the task to start on demand.
'Private Const SCHED_E_TASK_NOT_UBPM_COMPAT As Long = &H80041329 '  The combination of properties that task is using is not compatible with the scheduling engine.
'Private Const SCHED_E_DEPRECATED_FEATURE_USED As Long = &H80041330 '  The task definition uses a deprecated feature.
'Private Const CO_E_CLASS_CREATE_FAILED As Long = &H80080001 '  Attempt to create a class object failed
'Private Const CO_E_SCM_ERROR As Long = &H80080002 '  OLE service could not bind object
'Private Const CO_E_SCM_RPC_FAILURE As Long = &H80080003 '  RPC communication failed with OLE service
'Private Const CO_E_BAD_PATH As Long = &H80080004 '  Bad path to object
'Private Const CO_E_SERVER_EXEC_FAILURE As Long = &H80080005 '  Server execution failed
'Private Const CO_E_OBJSRV_RPC_FAILURE As Long = &H80080006 '  OLE service could not communicate with the object server
'Private Const MK_E_NO_NORMALIZED As Long = &H80080007 '  Moniker path could not be normalized
'Private Const CO_E_SERVER_STOPPING As Long = &H80080008 '  Object server is stopping when OLE service contacts it
'Private Const MEM_E_INVALID_ROOT As Long = &H80080009 '  An invalid root block pointer was specified
'Private Const MEM_E_INVALID_LINK As Long = &H80080010 '  An allocation chain contained an invalid link pointer
'Private Const MEM_E_INVALID_SIZE As Long = &H80080011 '  The requested allocation size was too large
'Private Const CO_S_NOTALLINTERFACES As Long = &H80012   '  Not all the requested interfaces were available
'Private Const CO_S_MACHINENAMENOTFOUND As Long = &H80013   '  The specified machine name was not found in the cache.
'Private Const CO_E_MISSING_DISPLAYNAME As Long = &H80080015 '  The activation requires a display name to be present under the CLSID key.
'Private Const CO_E_RUNAS_VALUE_MUST_BE_AAA As Long = &H80080016 '  The activation requires that the RunAs value for the application is Activate As Activator.
'Private Const CO_E_ELEVATION_DISABLED As Long = &H80080017 '  The class is not configured to support Elevated activation.
'Private Const APPX_E_PACKAGING_INTERNAL As Long = &H80080200 '  Appx packaging API has encountered an internal error.
'Private Const APPX_E_INTERLEAVING_NOT_ALLOWED As Long = &H80080201 '  The file is not a valid Appx package because its contents are interleaved.
'Private Const APPX_E_RELATIONSHIPS_NOT_ALLOWED As Long = &H80080202 '  The file is not a valid Appx package because it contains OPC relationships.
'Private Const APPX_E_MISSING_REQUIRED_FILE As Long = &H80080203 '  The file is not a valid Appx package because it is missing a manifest or block map, or missing a signature file when the code integrity file is present.
'Private Const APPX_E_INVALID_MANIFEST As Long = &H80080204 '  The Appx package's manifest is invalid.
'Private Const APPX_E_INVALID_BLOCKMAP As Long = &H80080205 '  The Appx package's block map is invalid.
'Private Const APPX_E_CORRUPT_CONTENT As Long = &H80080206 '  The Appx package's content cannot be read because it is corrupt.
'Private Const APPX_E_BLOCK_HASH_INVALID As Long = &H80080207 '  The computed hash value of the block does not match the one stored in the block map.
'Private Const APPX_E_REQUESTED_RANGE_TOO_LARGE As Long = &H80080208 '  The requested byte range is over 4GB when translated to byte range of blocks.
'Private Const APPX_E_INVALID_SIP_CLIENT_DATA As Long = &H80080209 '  The SIP_SUBJECTINFO structure used to sign the package didn't contain the required data.
'Private Const BT_E_SPURIOUS_ACTIVATION As Long = &H80080300 '  The background task activation is spurious.
'Private Const DISP_E_UNKNOWNINTERFACE As Long = &H80020001 '  Unknown interface.
'Private Const DISP_E_MEMBERNOTFOUND As Long = &H80020003 '  Member not found.
'Private Const DISP_E_PARAMNOTFOUND As Long = &H80020004 '  Parameter not found.
'Private Const DISP_E_TYPEMISMATCH As Long = &H80020005 '  Type mismatch.
'Private Const DISP_E_UNKNOWNNAME As Long = &H80020006 '  Unknown name.
'Private Const DISP_E_NONAMEDARGS As Long = &H80020007 '  No named arguments.
'Private Const DISP_E_BADVARTYPE As Long = &H80020008 '  Bad variable type.
'Private Const DISP_E_EXCEPTION As Long = &H80020009 '  Exception occurred.
'Private Const DISP_E_OVERFLOW As Long = &H8002000A '  Out of present range.
'Private Const DISP_E_BADINDEX As Long = &H8002000B '  Invalid index.
'Private Const DISP_E_UNKNOWNLCID As Long = &H8002000C '  Unknown language.
'Private Const DISP_E_ARRAYISLOCKED As Long = &H8002000D '  Memory is locked.
'Private Const DISP_E_BADPARAMCOUNT As Long = &H8002000E '  Invalid number of parameters.
'Private Const DISP_E_PARAMNOTOPTIONAL As Long = &H8002000F '  Parameter not optional.
'Private Const DISP_E_BADCALLEE As Long = &H80020010 '  Invalid callee.
'Private Const DISP_E_NOTACOLLECTION As Long = &H80020011 '  Does not support a collection.
'Private Const DISP_E_DIVBYZERO As Long = &H80020012 '  Division by zero.
'Private Const DISP_E_BUFFERTOOSMALL As Long = &H80020013 '  Buffer too small
'Private Const TYPE_E_BUFFERTOOSMALL As Long = &H80028016 '  Buffer too small.
'Private Const TYPE_E_FIELDNOTFOUND As Long = &H80028017 '  Field name not defined in the record.
'Private Const TYPE_E_INVDATAREAD As Long = &H80028018 '  Old format or invalid type library.
'Private Const TYPE_E_UNSUPFORMAT As Long = &H80028019 '  Old format or invalid type library.
'Private Const TYPE_E_REGISTRYACCESS As Long = &H8002801C '  Error accessing the OLE registry.
'Private Const TYPE_E_LIBNOTREGISTERED As Long = &H8002801D '  Library not registered.
'Private Const TYPE_E_UNDEFINEDTYPE As Long = &H80028027 '  Bound to unknown type.
'Private Const TYPE_E_QUALIFIEDNAMEDISALLOWED As Long = &H80028028 '  Qualified name disallowed.
'Private Const TYPE_E_INVALIDSTATE As Long = &H80028029 '  Invalid forward reference, or reference to uncompiled type.
'Private Const TYPE_E_WRONGTYPEKIND As Long = &H8002802A '  Type mismatch.
'Private Const TYPE_E_ELEMENTNOTFOUND As Long = &H8002802B '  Element not found.
'Private Const TYPE_E_AMBIGUOUSNAME As Long = &H8002802C '  Ambiguous name.
'Private Const TYPE_E_NAMECONFLICT As Long = &H8002802D '  Name already exists in the library.
'Private Const TYPE_E_UNKNOWNLCID As Long = &H8002802E '  Unknown LCID.
'Private Const TYPE_E_DLLFUNCTIONNOTFOUND As Long = &H8002802F '  Function not defined in specified DLL.
'Private Const TYPE_E_BADMODULEKIND As Long = &H800288BD '  Wrong module kind for the operation.
'Private Const TYPE_E_SIZETOOBIG As Long = &H800288C5 '  Size may not exceed 64K.
'Private Const TYPE_E_DUPLICATEID As Long = &H800288C6 '  Duplicate ID in inheritance hierarchy.
'Private Const TYPE_E_INVALIDID As Long = &H800288CF '  Incorrect inheritance depth in standard OLE hmember.
'Private Const TYPE_E_TYPEMISMATCH As Long = &H80028CA0 '  Type mismatch.
'Private Const TYPE_E_OUTOFBOUNDS As Long = &H80028CA1 '  Invalid number of arguments.
'Private Const TYPE_E_IOERROR As Long = &H80028CA2 '  I/O Error.
'Private Const TYPE_E_CANTCREATETMPFILE As Long = &H80028CA3 '  Error creating unique tmp file.
'Private Const TYPE_E_CANTLOADLIBRARY As Long = &H80029C4A '  Error loading type library/DLL.
'Private Const TYPE_E_INCONSISTENTPROPFUNCS As Long = &H80029C83 '  Inconsistent property functions.
'Private Const TYPE_E_CIRCULARTYPE As Long = &H80029C84 '  Circular dependency between types/modules.
'Private Const STG_E_INVALIDFUNCTION As Long = &H80030001 '  Unable to perform requested operation.
'Private Const STG_E_FILENOTFOUND As Long = &H80030002 '  %1 could not be found.
'Private Const STG_E_PATHNOTFOUND As Long = &H80030003 '  The path %1 could not be found.
'Private Const STG_E_TOOMANYOPENFILES As Long = &H80030004 '  There are insufficient resources to open another file.
'Private Const STG_E_ACCESSDENIED As Long = &H80030005 '  Access Denied.
'Private Const STG_E_INVALIDHANDLE As Long = &H80030006 '  Attempted an operation on an invalid object.
'Private Const STG_E_INSUFFICIENTMEMORY As Long = &H80030008 '  There is insufficient memory available to complete operation.
'Private Const STG_E_INVALIDPOINTER As Long = &H80030009 '  Invalid pointer error.
'Private Const STG_E_NOMOREFILES As Long = &H80030012 '  There are no more entries to return.
'Private Const STG_E_DISKISWRITEPROTECTED As Long = &H80030013 '  Disk is write-protected.
'Private Const STG_E_SEEKERROR As Long = &H80030019 '  An error occurred during a seek operation.
'Private Const STG_E_WRITEFAULT As Long = &H8003001D '  A disk error occurred during a write operation.
'Private Const STG_E_READFAULT As Long = &H8003001E '  A disk error occurred during a read operation.
'Private Const STG_E_SHAREVIOLATION As Long = &H80030020 '  A share violation has occurred.
'Private Const STG_E_LOCKVIOLATION As Long = &H80030021 '  A lock violation has occurred.
'Private Const STG_E_FILEALREADYEXISTS As Long = &H80030050 '  %1 already exists.
'Private Const STG_E_INVALIDPARAMETER As Long = &H80030057 '  Invalid parameter error.
'Private Const STG_E_MEDIUMFULL As Long = &H80030070 '  There is insufficient disk space to complete operation.
'Private Const STG_E_PROPSETMISMATCHED As Long = &H800300F0 '  Illegal write of non-simple property to simple property set.
'Private Const STG_E_ABNORMALAPIEXIT As Long = &H800300FA '  An API call exited abnormally.
'Private Const STG_E_INVALIDHEADER As Long = &H800300FB '  The file %1 is not a valid compound file.
'Private Const STG_E_INVALIDNAME As Long = &H800300FC '  The name %1 is not valid.
'Private Const STG_E_UNKNOWN As Long = &H800300FD '  An unexpected error occurred.
'Private Const STG_E_UNIMPLEMENTEDFUNCTION As Long = &H800300FE '  That function is not implemented.
'Private Const STG_E_INVALIDFLAG As Long = &H800300FF '  Invalid flag error.
'Private Const STG_E_INUSE As Long = &H80030100 '  Attempted to use an object that is busy.
'Private Const STG_E_NOTCURRENT As Long = &H80030101 '  The storage has been changed since the last commit.
'Private Const STG_E_REVERTED As Long = &H80030102 '  Attempted to use an object that has ceased to exist.
'Private Const STG_E_CANTSAVE As Long = &H80030103 '  Can't save.
'Private Const STG_E_OLDFORMAT As Long = &H80030104 '  The compound file %1 was produced with an incompatible version of storage.
'Private Const STG_E_OLDDLL As Long = &H80030105 '  The compound file %1 was produced with a newer version of storage.
'Private Const STG_E_SHAREREQUIRED As Long = &H80030106 '  Share.exe or equivalent is required for operation.
'Private Const STG_E_NOTFILEBASEDSTORAGE As Long = &H80030107 '  Illegal operation called on non-file based storage.
'Private Const STG_E_EXTANTMARSHALLINGS As Long = &H80030108 '  Illegal operation called on object with extant marshallings.
'Private Const STG_E_DOCFILECORRUPT As Long = &H80030109 '  The docfile has been corrupted.
'Private Const STG_E_BADBASEADDRESS As Long = &H80030110 '  OLE32.DLL has been loaded at the wrong address.
'Private Const STG_E_DOCFILETOOLARGE As Long = &H80030111 '  The compound file is too large for the current implementation
'Private Const STG_E_NOTSIMPLEFORMAT As Long = &H80030112 '  The compound file was not created with the STGM_SIMPLE flag
'Private Const STG_E_INCOMPLETE As Long = &H80030201 '  The file download was aborted abnormally. The file is incomplete.
'Private Const STG_E_TERMINATED As Long = &H80030202 '  The file download has been terminated.
'Private Const STG_S_CONVERTED As Long = &H30200   '  The underlying file was converted to compound file format.
'Private Const STG_S_BLOCK As Long = &H30201   '  The storage operation should block until more data is available.
'Private Const STG_S_RETRYNOW As Long = &H30202   '  The storage operation should retry immediately.
'Private Const STG_S_MONITORING As Long = &H30203   '  The notified event sink will not influence the storage operation.
'Private Const STG_S_MULTIPLEOPENS As Long = &H30204   '  Multiple opens prevent consolidated. (commit succeeded).
'Private Const STG_S_CONSOLIDATIONFAILED As Long = &H30205   '  Consolidation of the storage file failed. (commit succeeded).
'Private Const STG_S_CANNOTCONSOLIDATE As Long = &H30206   '  Consolidation of the storage file is inappropriate. (commit succeeded).
'Private Const STG_E_STATUS_COPY_PROTECTION_FAILURE As Long = &H80030305 '  Generic Copy Protection Error.
'Private Const STG_E_CSS_AUTHENTICATION_FAILURE As Long = &H80030306 '  Copy Protection Error - DVD CSS Authentication failed.
'Private Const STG_E_CSS_KEY_NOT_PRESENT As Long = &H80030307 '  Copy Protection Error - The given sector does not have a valid CSS key.
'Private Const STG_E_CSS_KEY_NOT_ESTABLISHED As Long = &H80030308 '  Copy Protection Error - DVD session key not established.
'Private Const STG_E_CSS_SCRAMBLED_SECTOR As Long = &H80030309 '  Copy Protection Error - The read failed because the sector is encrypted.
'Private Const STG_E_CSS_REGION_MISMATCH As Long = &H8003030A '  Copy Protection Error - The current DVD's region does not correspond to the region setting of the drive.
'Private Const STG_E_RESETS_EXHAUSTED As Long = &H8003030B '  Copy Protection Error - The drive's region setting may be permanent or the number of user resets has been exhausted.
'Private Const RPC_E_CALL_REJECTED As Long = &H80010001 '  Call was rejected by callee.
'Private Const RPC_E_CALL_CANCELED As Long = &H80010002 '  Call was canceled by the message filter.
'Private Const RPC_E_CANTPOST_INSENDCALL As Long = &H80010003 '  The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.
'Private Const RPC_E_CANTCALLOUT_INASYNCCALL As Long = &H80010004 '  The caller is dispatching an asynchronous call and cannot make an outgoing call on behalf of this call.
'Private Const RPC_E_CANTCALLOUT_INEXTERNALCALL As Long = &H80010005 '  It is illegal to call out while inside message filter.
'Private Const RPC_E_CONNECTION_TERMINATED As Long = &H80010006 '  The connection terminated or is in a bogus state and cannot be used any more. Other connections are still valid.
'Private Const RPC_E_SERVER_DIED As Long = &H80010007 '  The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call may have executed.
'Private Const RPC_E_CLIENT_DIED As Long = &H80010008 '  The caller (client) disappeared while the callee (server) was processing a call.
'Private Const RPC_E_INVALID_DATAPACKET As Long = &H80010009 '  The data packet with the marshalled parameter data is incorrect.
'Private Const RPC_E_CANTTRANSMIT_CALL As Long = &H8001000A '  The call was not transmitted properly; the message queue was full and was not emptied after yielding.
'Private Const RPC_E_CLIENT_CANTMARSHAL_DATA As Long = &H8001000B '  The client (caller) cannot marshall the parameter data - low memory, etc.
'Private Const RPC_E_CLIENT_CANTUNMARSHAL_DATA As Long = &H8001000C '  The client (caller) cannot unmarshall the return data - low memory, etc.
'Private Const RPC_E_SERVER_CANTMARSHAL_DATA As Long = &H8001000D '  The server (callee) cannot marshall the return data - low memory, etc.
'Private Const RPC_E_SERVER_CANTUNMARSHAL_DATA As Long = &H8001000E '  The server (callee) cannot unmarshall the parameter data - low memory, etc.
'Private Const RPC_E_INVALID_DATA As Long = &H8001000F '  Received data is invalid; could be server or client data.
'Private Const RPC_E_INVALID_PARAMETER As Long = &H80010010 '  A particular parameter is invalid and cannot be (un)marshalled.
'Private Const RPC_E_CANTCALLOUT_AGAIN As Long = &H80010011 '  There is no second outgoing call on same channel in DDE conversation.
'Private Const RPC_E_SERVER_DIED_DNE As Long = &H80010012 '  The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute.
'Private Const RPC_E_SYS_CALL_FAILED As Long = &H80010100 '  System call failed.
'Private Const RPC_E_OUT_OF_RESOURCES As Long = &H80010101 '  Could not allocate some required resource (memory, events, ...)
'Private Const RPC_E_ATTEMPTED_MULTITHREAD As Long = &H80010102 '  Attempted to make calls on more than one thread in single threaded mode.
'Private Const RPC_E_NOT_REGISTERED As Long = &H80010103 '  The requested interface is not registered on the server object.
'Private Const RPC_E_FAULT As Long = &H80010104 '  RPC could not call the server or could not return the results of calling the server.
'Private Const RPC_E_SERVERFAULT As Long = &H80010105 '  The server threw an exception.
'Private Const RPC_E_CHANGED_MODE As Long = &H80010106 '  Cannot change thread mode after it is set.
'Private Const RPC_E_INVALIDMETHOD As Long = &H80010107 '  The method called does not exist on the server.
'Private Const RPC_E_DISCONNECTED As Long = &H80010108 '  The object invoked has disconnected from its clients.
'Private Const RPC_E_RETRY As Long = &H80010109 '  The object invoked chose not to process the call now. Try again later.
'Private Const RPC_E_SERVERCALL_RETRYLATER As Long = &H8001010A '  The message filter indicated that the application is busy.
'Private Const RPC_E_SERVERCALL_REJECTED As Long = &H8001010B '  The message filter rejected the call.
'Private Const RPC_E_INVALID_CALLDATA As Long = &H8001010C '  A call control interfaces was called with invalid data.
'Private Const RPC_E_CANTCALLOUT_ININPUTSYNCCALL As Long = &H8001010D '  An outgoing call cannot be made since the application is dispatching an input-synchronous call.
'Private Const RPC_E_WRONG_THREAD As Long = &H8001010E '  The application called an interface that was marshalled for a different thread.
'Private Const RPC_E_THREAD_NOT_INIT As Long = &H8001010F '  CoInitialize has not been called on the current thread.
'Private Const RPC_E_VERSION_MISMATCH As Long = &H80010110 '  The version of OLE on the client and server machines does not match.
'Private Const RPC_E_INVALID_HEADER As Long = &H80010111 '  OLE received a packet with an invalid header.
'Private Const RPC_E_INVALID_EXTENSION As Long = &H80010112 '  OLE received a packet with an invalid extension.
'Private Const RPC_E_INVALID_IPID As Long = &H80010113 '  The requested object or interface does not exist.
'Private Const RPC_E_INVALID_OBJECT As Long = &H80010114 '  The requested object does not exist.
'Private Const RPC_S_CALLPENDING As Long = &H80010115 '  OLE has sent a request and is waiting for a reply.
'Private Const RPC_S_WAITONTIMER As Long = &H80010116 '  OLE is waiting before retrying a request.
'Private Const RPC_E_CALL_COMPLETE As Long = &H80010117 '  Call context cannot be accessed after call completed.
'Private Const RPC_E_UNSECURE_CALL As Long = &H80010118 '  Impersonate on unsecure calls is not supported.
'Private Const RPC_E_TOO_LATE As Long = &H80010119 '  Security must be initialized before any interfaces are marshalled or unmarshalled. It cannot be changed once initialized.
'Private Const RPC_E_NO_GOOD_SECURITY_PACKAGES As Long = &H8001011A '  No security packages are installed on this machine or the user is not logged on or there are no compatible security packages between the client and server.
'Private Const RPC_E_ACCESS_DENIED As Long = &H8001011B '  Access is denied.
'Private Const RPC_E_REMOTE_DISABLED As Long = &H8001011C '  Remote calls are not allowed for this process.
'Private Const RPC_E_INVALID_OBJREF As Long = &H8001011D '  The marshaled interface data packet (OBJREF) has an invalid or unknown format.
'Private Const RPC_E_NO_CONTEXT As Long = &H8001011E '  No context is associated with this call. This happens for some custom marshalled calls and on the client side of the call.
'Private Const RPC_E_TIMEOUT As Long = &H8001011F '  This operation returned because the timeout period expired.
'Private Const RPC_E_NO_SYNC As Long = &H80010120 '  There are no synchronize objects to wait on.
'Private Const RPC_E_FULLSIC_REQUIRED As Long = &H80010121 '  Full subject issuer chain SSL principal name expected from the server.
'Private Const RPC_E_INVALID_STD_NAME As Long = &H80010122 '  Principal name is not a valid MSSTD name.
'Private Const CO_E_FAILEDTOIMPERSONATE As Long = &H80010123 '  Unable to impersonate DCOM client
'Private Const CO_E_FAILEDTOGETSECCTX As Long = &H80010124 '  Unable to obtain server's security context
'Private Const CO_E_FAILEDTOOPENTHREADTOKEN As Long = &H80010125 '  Unable to open the access token of the current thread
'Private Const CO_E_FAILEDTOGETTOKENINFO As Long = &H80010126 '  Unable to obtain user info from an access token
'Private Const CO_E_TRUSTEEDOESNTMATCHCLIENT As Long = &H80010127 '  The client who called IAccessControl::IsAccessPermitted was not the trustee provided to the method
'Private Const CO_E_FAILEDTOQUERYCLIENTBLANKET As Long = &H80010128 '  Unable to obtain the client's security blanket
'Private Const CO_E_FAILEDTOSETDACL As Long = &H80010129 '  Unable to set a discretionary ACL into a security descriptor
'Private Const CO_E_ACCESSCHECKFAILED As Long = &H8001012A '  The system function, AccessCheck, returned false
'Private Const CO_E_NETACCESSAPIFAILED As Long = &H8001012B '  Either NetAccessDel or NetAccessAdd returned an error code.
'Private Const CO_E_WRONGTRUSTEENAMESYNTAX As Long = &H8001012C '  One of the trustee strings provided by the user did not conform to the \ syntax and it was not the "*" string
'Private Const CO_E_INVALIDSID As Long = &H8001012D '  One of the security identifiers provided by the user was invalid
'Private Const CO_E_CONVERSIONFAILED As Long = &H8001012E '  Unable to convert a wide character trustee string to a multibyte trustee string
'Private Const CO_E_NOMATCHINGSIDFOUND As Long = &H8001012F '  Unable to find a security identifier that corresponds to a trustee string provided by the user
'Private Const CO_E_LOOKUPACCSIDFAILED As Long = &H80010130 '  The system function, LookupAccountSID, failed
'Private Const CO_E_NOMATCHINGNAMEFOUND As Long = &H80010131 '  Unable to find a trustee name that corresponds to a security identifier provided by the user
'Private Const CO_E_LOOKUPACCNAMEFAILED As Long = &H80010132 '  The system function, LookupAccountName, failed
'Private Const CO_E_SETSERLHNDLFAILED As Long = &H80010133 '  Unable to set or reset a serialization handle
'Private Const CO_E_FAILEDTOGETWINDIR As Long = &H80010134 '  Unable to obtain the Windows directory
'Private Const CO_E_PATHTOOLONG As Long = &H80010135 '  Path too long
'Private Const CO_E_FAILEDTOGENUUID As Long = &H80010136 '  Unable to generate a uuid.
'Private Const CO_E_FAILEDTOCREATEFILE As Long = &H80010137 '  Unable to create file
'Private Const CO_E_FAILEDTOCLOSEHANDLE As Long = &H80010138 '  Unable to close a serialization handle or a file handle.
'Private Const CO_E_EXCEEDSYSACLLIMIT As Long = &H80010139 '  The number of ACEs in an ACL exceeds the system limit.
'Private Const CO_E_ACESINWRONGORDER As Long = &H8001013A '  Not all the DENY_ACCESS ACEs are arranged in front of the GRANT_ACCESS ACEs in the stream.
'Private Const CO_E_INCOMPATIBLESTREAMVERSION As Long = &H8001013B '  The version of ACL format in the stream is not supported by this implementation of IAccessControl
'Private Const CO_E_FAILEDTOOPENPROCESSTOKEN As Long = &H8001013C '  Unable to open the access token of the server process
'Private Const CO_E_DECODEFAILED As Long = &H8001013D '  Unable to decode the ACL in the stream provided by the user
'Private Const CO_E_ACNOTINITIALIZED As Long = &H8001013F '  The COM IAccessControl object is not initialized
'Private Const CO_E_CANCEL_DISABLED As Long = &H80010140 '  Call Cancellation is disabled
'Private Const RPC_E_UNEXPECTED As Long = &H8001FFFF '  An internal error occurred.
'Private Const ERROR_AUDITING_DISABLED As Long = &HC0090001 '  The specified event is currently not being audited.
'Private Const ERROR_ALL_SIDS_FILTERED As Long = &HC0090002 '  The SID filtering operation removed all SIDs.
'Private Const ERROR_BIZRULES_NOT_ENABLED As Long = &HC0090003 '  Business rule scripts are disabled for the calling application.
'Private Const NTE_BAD_UID As Long = &H80090001 '  Bad UID.
'Private Const NTE_BAD_HASH As Long = &H80090002 '  Bad Hash.
'Private Const NTE_BAD_KEY As Long = &H80090003 '  Bad Key.
'Private Const NTE_BAD_LEN As Long = &H80090004 '  Bad Length.
'Private Const NTE_BAD_DATA As Long = &H80090005 '  Bad Data.
'Private Const NTE_BAD_SIGNATURE As Long = &H80090006 '  Invalid Signature.
'Private Const NTE_BAD_VER As Long = &H80090007 '  Bad Version of provider.
'Private Const NTE_BAD_ALGID As Long = &H80090008 '  Invalid algorithm specified.
'Private Const NTE_BAD_FLAGS As Long = &H80090009 '  Invalid flags specified.
'Private Const NTE_BAD_TYPE As Long = &H8009000A '  Invalid type specified.
'Private Const NTE_BAD_KEY_STATE As Long = &H8009000B '  Key not valid for use in specified state.
'Private Const NTE_BAD_HASH_STATE As Long = &H8009000C '  Hash not valid for use in specified state.
'Private Const NTE_NO_KEY As Long = &H8009000D '  Key does not exist.
'Private Const NTE_NO_MEMORY As Long = &H8009000E '  Insufficient memory available for the operation.
'Private Const NTE_EXISTS As Long = &H8009000F '  Object already exists.
'Private Const NTE_PERM As Long = &H80090010 '  Access denied.
'Private Const NTE_NOT_FOUND As Long = &H80090011 '  Object was not found.
'Private Const NTE_DOUBLE_ENCRYPT As Long = &H80090012 '  Data already encrypted.
'Private Const NTE_BAD_PROVIDER As Long = &H80090013 '  Invalid provider specified.
'Private Const NTE_BAD_PROV_TYPE As Long = &H80090014 '  Invalid provider type specified.
'Private Const NTE_BAD_PUBLIC_KEY As Long = &H80090015 '  Provider's public key is invalid.
'Private Const NTE_BAD_KEYSET As Long = &H80090016 '  Keyset does not exist
'Private Const NTE_PROV_TYPE_NOT_DEF As Long = &H80090017 '  Provider type not defined.
'Private Const NTE_PROV_TYPE_ENTRY_BAD As Long = &H80090018 '  Provider type as registered is invalid.
'Private Const NTE_KEYSET_NOT_DEF As Long = &H80090019 '  The keyset is not defined.
'Private Const NTE_KEYSET_ENTRY_BAD As Long = &H8009001A '  Keyset as registered is invalid.
'Private Const NTE_PROV_TYPE_NO_MATCH As Long = &H8009001B '  Provider type does not match registered value.
'Private Const NTE_SIGNATURE_FILE_BAD As Long = &H8009001C '  The digital signature file is corrupt.
'Private Const NTE_PROVIDER_DLL_FAIL As Long = &H8009001D '  Provider DLL failed to initialize correctly.
'Private Const NTE_PROV_DLL_NOT_FOUND As Long = &H8009001E '  Provider DLL could not be found.
'Private Const NTE_BAD_KEYSET_PARAM As Long = &H8009001F '  The Keyset parameter is invalid.
'Private Const NTE_FAIL As Long = &H80090020 '  An internal error occurred.
'Private Const NTE_SYS_ERR As Long = &H80090021 '  A base error occurred.
'Private Const NTE_SILENT_CONTEXT As Long = &H80090022 '  Provider could not perform the action since the context was acquired as silent.
'Private Const NTE_TOKEN_KEYSET_STORAGE_FULL As Long = &H80090023 '  The security token does not have storage space available for an additional container.
'Private Const NTE_TEMPORARY_PROFILE As Long = &H80090024 '  The profile for the user is a temporary profile.
'Private Const NTE_FIXEDPARAMETER As Long = &H80090025 '  The key parameters could not be set because the CSP uses fixed parameters.
'Private Const NTE_INVALID_HANDLE As Long = &H80090026 '  The supplied handle is invalid.
'Private Const NTE_INVALID_PARAMETER As Long = &H80090027 '  The parameter is incorrect.
'Private Const NTE_BUFFER_TOO_SMALL As Long = &H80090028 '  The buffer supplied to a function was too small.
'Private Const NTE_NOT_SUPPORTED As Long = &H80090029 '  The requested operation is not supported.
'Private Const NTE_NO_MORE_ITEMS As Long = &H8009002A '  No more data is available.
'Private Const NTE_BUFFERS_OVERLAP As Long = &H8009002B '  The supplied buffers overlap incorrectly.
'Private Const NTE_DECRYPTION_FAILURE As Long = &H8009002C '  The specified data could not be decrypted.
'Private Const NTE_INTERNAL_ERROR As Long = &H8009002D '  An internal consistency check failed.
'Private Const NTE_UI_REQUIRED As Long = &H8009002E '  This operation requires input from the user.
'Private Const NTE_HMAC_NOT_SUPPORTED As Long = &H8009002F '  The cryptographic provider does not support HMAC.
'Private Const NTE_DEVICE_NOT_READY As Long = &H80090030 '  The device that is required by this cryptographic provider is not ready for use.
'Private Const NTE_AUTHENTICATION_IGNORED As Long = &H80090031 '  The dictionary attack mitigation is triggered and the provided authorization was ignored by the provider.
'Private Const NTE_VALIDATION_FAILED As Long = &H80090032 '  The validation of the provided data failed the integrity or signature validation.
'Private Const NTE_INCORRECT_PASSWORD As Long = &H80090033 '  Incorrect password.
'Private Const NTE_ENCRYPTION_FAILURE As Long = &H80090034 '  Encryption failed.
'Private Const NTE_DEVICE_NOT_FOUND As Long = &H80090035 '  The device that is required by this cryptographic provider is not found on this platform.
'Private Const SEC_E_INSUFFICIENT_MEMORY As Long = &H80090300 '  Not enough memory is available to complete this request
'Private Const SEC_E_INVALID_HANDLE As Long = &H80090301 '  The handle specified is invalid
'Private Const SEC_E_UNSUPPORTED_FUNCTION As Long = &H80090302 '  The function requested is not supported
'Private Const SEC_E_TARGET_UNKNOWN As Long = &H80090303 '  The specified target is unknown or unreachable
'Private Const SEC_E_INTERNAL_ERROR As Long = &H80090304 '  The Local Security Authority cannot be contacted
'Private Const SEC_E_SECPKG_NOT_FOUND As Long = &H80090305 '  The requested security package does not exist
'Private Const SEC_E_NOT_OWNER As Long = &H80090306 '  The caller is not the owner of the desired credentials
'Private Const SEC_E_CANNOT_INSTALL As Long = &H80090307 '  The security package failed to initialize, and cannot be installed
'Private Const SEC_E_INVALID_TOKEN As Long = &H80090308 '  The token supplied to the function is invalid
'Private Const SEC_E_CANNOT_PACK As Long = &H80090309 '  The security package is not able to marshall the logon buffer, so the logon attempt has failed
'Private Const SEC_E_QOP_NOT_SUPPORTED As Long = &H8009030A '  The per-message Quality of Protection is not supported by the security package
'Private Const SEC_E_NO_IMPERSONATION As Long = &H8009030B '  The security context does not allow impersonation of the client
'Private Const SEC_E_LOGON_DENIED As Long = &H8009030C '  The logon attempt failed
'Private Const SEC_E_UNKNOWN_CREDENTIALS As Long = &H8009030D '  The credentials supplied to the package were not recognized
'Private Const SEC_E_NO_CREDENTIALS As Long = &H8009030E '  No credentials are available in the security package
'Private Const SEC_E_MESSAGE_ALTERED As Long = &H8009030F '  The message or signature supplied for verification has been altered
'Private Const SEC_E_OUT_OF_SEQUENCE As Long = &H80090310 '  The message supplied for verification is out of sequence
'Private Const SEC_E_NO_AUTHENTICATING_AUTHORITY As Long = &H80090311 '  No authority could be contacted for authentication.
'Private Const SEC_I_CONTINUE_NEEDED As Long = &H90312   '  The function completed successfully, but must be called again to complete the context
'Private Const SEC_I_COMPLETE_NEEDED As Long = &H90313   '  The function completed successfully, but CompleteToken must be called
'Private Const SEC_I_COMPLETE_AND_CONTINUE As Long = &H90314   '  The function completed successfully, but both CompleteToken and this function must be called to complete the context
'Private Const SEC_I_LOCAL_LOGON As Long = &H90315   '  The logon was completed, but no network authority was available. The logon was made using locally known information
'Private Const SEC_E_BAD_PKGID As Long = &H80090316 '  The requested security package does not exist
'Private Const SEC_E_CONTEXT_EXPIRED As Long = &H80090317 '  The context has expired and can no longer be used.
'Private Const SEC_I_CONTEXT_EXPIRED As Long = &H90317   '  The context has expired and can no longer be used.
'Private Const SEC_E_INCOMPLETE_MESSAGE As Long = &H80090318 '  The supplied message is incomplete. The signature was not verified.
'Private Const SEC_E_INCOMPLETE_CREDENTIALS As Long = &H80090320 '  The credentials supplied were not complete, and could not be verified. The context could not be initialized.
'Private Const SEC_E_BUFFER_TOO_SMALL As Long = &H80090321 '  The buffers supplied to a function was too small.
'Private Const SEC_I_INCOMPLETE_CREDENTIALS As Long = &H90320   '  The credentials supplied were not complete, and could not be verified. Additional information can be returned from the context.
'Private Const SEC_I_RENEGOTIATE As Long = &H90321   '  The context data must be renegotiated with the peer.
'Private Const SEC_E_WRONG_PRINCIPAL As Long = &H80090322 '  The target principal name is incorrect.
'Private Const SEC_I_NO_LSA_CONTEXT As Long = &H90323   '  There is no LSA mode context associated with this context.
'Private Const SEC_E_TIME_SKEW As Long = &H80090324 '  The clocks on the client and server machines are skewed.
'Private Const SEC_E_UNTRUSTED_ROOT As Long = &H80090325 '  The certificate chain was issued by an authority that is not trusted.
'Private Const SEC_E_ILLEGAL_MESSAGE As Long = &H80090326 '  The message received was unexpected or badly formatted.
'Private Const SEC_E_CERT_UNKNOWN As Long = &H80090327 '  An unknown error occurred while processing the certificate.
'Private Const SEC_E_CERT_EXPIRED As Long = &H80090328 '  The received certificate has expired.
'Private Const SEC_E_ENCRYPT_FAILURE As Long = &H80090329 '  The specified data could not be encrypted.
'Private Const SEC_E_DECRYPT_FAILURE As Long = &H80090330 '  The specified data could not be decrypted.
'Private Const SEC_E_ALGORITHM_MISMATCH As Long = &H80090331 '  The client and server cannot communicate, because they do not possess a common algorithm.
'Private Const SEC_E_SECURITY_QOS_FAILED As Long = &H80090332 '  The security context could not be established due to a failure in the requested quality of service (e.g. mutual authentication or delegation).
'Private Const SEC_E_UNFINISHED_CONTEXT_DELETED As Long = &H80090333 '  A security context was deleted before the context was completed. This is considered a logon failure.
'Private Const SEC_E_NO_TGT_REPLY As Long = &H80090334 '  The client is trying to negotiate a context and the server requires user-to-user but didn't send a TGT reply.
'Private Const SEC_E_NO_IP_ADDRESSES As Long = &H80090335 '  Unable to accomplish the requested task because the local machine does not have any IP addresses.
'Private Const SEC_E_WRONG_CREDENTIAL_HANDLE As Long = &H80090336 '  The supplied credential handle does not match the credential associated with the security context.
'Private Const SEC_E_CRYPTO_SYSTEM_INVALID As Long = &H80090337 '  The crypto system or checksum function is invalid because a required function is unavailable.
'Private Const SEC_E_MAX_REFERRALS_EXCEEDED As Long = &H80090338 '  The number of maximum ticket referrals has been exceeded.
'Private Const SEC_E_MUST_BE_KDC As Long = &H80090339 '  The local machine must be a Kerberos KDC (domain controller) and it is not.
'Private Const SEC_E_STRONG_CRYPTO_NOT_SUPPORTED As Long = &H8009033A '  The other end of the security negotiation is requires strong crypto but it is not supported on the local machine.
'Private Const SEC_E_TOO_MANY_PRINCIPALS As Long = &H8009033B '  The KDC reply contained more than one principal name.
'Private Const SEC_E_NO_PA_DATA As Long = &H8009033C '  Expected to find PA data for a hint of what etype to use, but it was not found.
'Private Const SEC_E_PKINIT_NAME_MISMATCH As Long = &H8009033D '  The client certificate does not contain a valid UPN, or does not match the client name in the logon request. Please contact your administrator.
'Private Const SEC_E_SMARTCARD_LOGON_REQUIRED As Long = &H8009033E '  Smartcard logon is required and was not used.
'Private Const SEC_E_SHUTDOWN_IN_PROGRESS As Long = &H8009033F '  A system shutdown is in progress.
'Private Const SEC_E_KDC_INVALID_REQUEST As Long = &H80090340 '  An invalid request was sent to the KDC.
'Private Const SEC_E_KDC_UNABLE_TO_REFER As Long = &H80090341 '  The KDC was unable to generate a referral for the service requested.
'Private Const SEC_E_KDC_UNKNOWN_ETYPE As Long = &H80090342 '  The encryption type requested is not supported by the KDC.
'Private Const SEC_E_UNSUPPORTED_PREAUTH As Long = &H80090343 '  An unsupported preauthentication mechanism was presented to the Kerberos package.
'Private Const SEC_E_DELEGATION_REQUIRED As Long = &H80090345 '  The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation.
'Private Const SEC_E_BAD_BINDINGS As Long = &H80090346 '  Client's supplied SSPI channel bindings were incorrect.
'Private Const SEC_E_MULTIPLE_ACCOUNTS As Long = &H80090347 '  The received certificate was mapped to multiple accounts.
'Private Const SEC_E_NO_KERB_KEY As Long = &H80090348 '   SEC_E_NO_KERB_KEY
'Private Const SEC_E_CERT_WRONG_USAGE As Long = &H80090349 '  The certificate is not valid for the requested usage.
'Private Const SEC_E_DOWNGRADE_DETECTED As Long = &H80090350 '  The system cannot contact a domain controller to service the authentication request. Please try again later.
'Private Const SEC_E_SMARTCARD_CERT_REVOKED As Long = &H80090351 '  The smartcard certificate used for authentication has been revoked. Please contact your system administrator. There may be additional information in the event log.
'Private Const SEC_E_ISSUING_CA_UNTRUSTED As Long = &H80090352 '  An untrusted certificate authority was detected while processing the smartcard certificate used for authentication. Please contact your system administrator.
'Private Const SEC_E_REVOCATION_OFFLINE_C As Long = &H80090353 '  The revocation status of the smartcard certificate used for authentication could not be determined. Please contact your system administrator.
'Private Const SEC_E_PKINIT_CLIENT_FAILURE As Long = &H80090354 '  The smartcard certificate used for authentication was not trusted. Please contact your system administrator.
'Private Const SEC_E_SMARTCARD_CERT_EXPIRED As Long = &H80090355 '  The smartcard certificate used for authentication has expired. Please contact your system administrator.
'Private Const SEC_E_NO_S4U_PROT_SUPPORT As Long = &H80090356 '  The Kerberos subsystem encountered an error. A service for user protocol request was made against a domain controller which does not support service for user.
'Private Const SEC_E_CROSSREALM_DELEGATION_FAILURE As Long = &H80090357 '  An attempt was made by this server to make a Kerberos constrained delegation request for a target outside of the server's realm. This is not supported, and indicates a misconfiguration on this server's allowed to delegate to list. Please contact your administrator.
'Private Const SEC_E_REVOCATION_OFFLINE_KDC As Long = &H80090358 '  The revocation status of the domain controller certificate used for smartcard authentication could not be determined. There is additional information in the system event log. Please contact your system administrator.
'Private Const SEC_E_ISSUING_CA_UNTRUSTED_KDC As Long = &H80090359 '  An untrusted certificate authority was detected while processing the domain controller certificate used for authentication. There is additional information in the system event log. Please contact your system administrator.
'Private Const SEC_E_KDC_CERT_EXPIRED As Long = &H8009035A '  The domain controller certificate used for smartcard logon has expired. Please contact your system administrator with the contents of your system event log.
'Private Const SEC_E_KDC_CERT_REVOKED As Long = &H8009035B '  The domain controller certificate used for smartcard logon has been revoked. Please contact your system administrator with the contents of your system event log.
'Private Const SEC_I_SIGNATURE_NEEDED As Long = &H9035C   '  A signature operation must be performed before the user can authenticate.
'Private Const SEC_E_INVALID_PARAMETER As Long = &H8009035D '  One or more of the parameters passed to the function was invalid.
'Private Const SEC_E_DELEGATION_POLICY As Long = &H8009035E '  Client policy does not allow credential delegation to target server.
'Private Const SEC_E_POLICY_NLTM_ONLY As Long = &H8009035F '  Client policy does not allow credential delegation to target server with NLTM only authentication.
'Private Const SEC_I_NO_RENEGOTIATION As Long = &H90360   '  The recipient rejected the renegotiation request.
'Private Const SEC_E_NO_CONTEXT As Long = &H80090361 '  The required security context does not exist.
'Private Const SEC_E_PKU2U_CERT_FAILURE As Long = &H80090362 '  The PKU2U protocol encountered an error while attempting to utilize the associated certificates.
'Private Const SEC_E_MUTUAL_AUTH_FAILED As Long = &H80090363 '  The identity of the server computer could not be verified.
'Private Const SEC_I_MESSAGE_FRAGMENT As Long = &H90364   '  The returned buffer is only a fragment of the message.  More fragments need to be returned.
'Private Const SEC_E_ONLY_HTTPS_ALLOWED As Long = &H80090365 '  Only https scheme is allowed.
'Private Const SEC_I_CONTINUE_NEEDED_MESSAGE_OK As Long = &H90366   '  The function completed successfully, but must be called again to complete the context.  Early start can be used.
'Private Const SEC_E_APPLICATION_PROTOCOL_MISMATCH As Long = &H80090367 '  No common application protocol exists between the client and the server. Application protocol negotiation failed.
'Private Const CRYPT_E_MSG_ERROR As Long = &H80091001 '  An error occurred while performing an operation on a cryptographic message.
'Private Const CRYPT_E_UNKNOWN_ALGO As Long = &H80091002 '  Unknown cryptographic algorithm.
'Private Const CRYPT_E_OID_FORMAT As Long = &H80091003 '  The object identifier is poorly formatted.
'Private Const CRYPT_E_INVALID_MSG_TYPE As Long = &H80091004 '  Invalid cryptographic message type.
'Private Const CRYPT_E_UNEXPECTED_ENCODING As Long = &H80091005 '  Unexpected cryptographic message encoding.
'Private Const CRYPT_E_AUTH_ATTR_MISSING As Long = &H80091006 '  The cryptographic message does not contain an expected authenticated attribute.
'Private Const CRYPT_E_HASH_VALUE As Long = &H80091007 '  The hash value is not correct.
'Private Const CRYPT_E_INVALID_INDEX As Long = &H80091008 '  The index value is not valid.
'Private Const CRYPT_E_ALREADY_DECRYPTED As Long = &H80091009 '  The content of the cryptographic message has already been decrypted.
'Private Const CRYPT_E_NOT_DECRYPTED As Long = &H8009100A '  The content of the cryptographic message has not been decrypted yet.
'Private Const CRYPT_E_RECIPIENT_NOT_FOUND As Long = &H8009100B '  The enveloped-data message does not contain the specified recipient.
'Private Const CRYPT_E_CONTROL_TYPE As Long = &H8009100C '  Invalid control type.
'Private Const CRYPT_E_ISSUER_SERIALNUMBER As Long = &H8009100D '  Invalid issuer and/or serial number.
'Private Const CRYPT_E_SIGNER_NOT_FOUND As Long = &H8009100E '  Cannot find the original signer.
'Private Const CRYPT_E_ATTRIBUTES_MISSING As Long = &H8009100F '  The cryptographic message does not contain all of the requested attributes.
'Private Const CRYPT_E_STREAM_MSG_NOT_READY As Long = &H80091010 '  The streamed cryptographic message is not ready to return data.
'Private Const CRYPT_E_STREAM_INSUFFICIENT_DATA As Long = &H80091011 '  The streamed cryptographic message requires more data to complete the decode operation.
'Private Const CRYPT_I_NEW_PROTECTION_REQUIRED As Long = &H91012   '  The protected data needs to be re-protected.
'Private Const CRYPT_E_BAD_LEN As Long = &H80092001 '  The length specified for the output data was insufficient.
'Private Const CRYPT_E_BAD_ENCODE As Long = &H80092002 '  An error occurred during encode or decode operation.
'Private Const CRYPT_E_FILE_ERROR As Long = &H80092003 '  An error occurred while reading or writing to a file.
'Private Const CRYPT_E_NOT_FOUND As Long = &H80092004 '  Cannot find object or property.
'Private Const CRYPT_E_EXISTS As Long = &H80092005 '  The object or property already exists.
'Private Const CRYPT_E_NO_PROVIDER As Long = &H80092006 '  No provider was specified for the store or object.
'Private Const CRYPT_E_SELF_SIGNED As Long = &H80092007 '  The specified certificate is self signed.
'Private Const CRYPT_E_DELETED_PREV As Long = &H80092008 '  The previous certificate or CRL context was deleted.
'Private Const CRYPT_E_NO_MATCH As Long = &H80092009 '  Cannot find the requested object.
'Private Const CRYPT_E_UNEXPECTED_MSG_TYPE As Long = &H8009200A '  The certificate does not have a property that references a private key.
'Private Const CRYPT_E_NO_KEY_PROPERTY As Long = &H8009200B '  Cannot find the certificate and private key for decryption.
'Private Const CRYPT_E_NO_DECRYPT_CERT As Long = &H8009200C '  Cannot find the certificate and private key to use for decryption.
'Private Const CRYPT_E_BAD_MSG As Long = &H8009200D '  Not a cryptographic message or the cryptographic message is not formatted correctly.
'Private Const CRYPT_E_NO_SIGNER As Long = &H8009200E '  The signed cryptographic message does not have a signer for the specified signer index.
'Private Const CRYPT_E_PENDING_CLOSE As Long = &H8009200F '  Final closure is pending until additional frees or closes.
'Private Const CRYPT_E_REVOKED As Long = &H80092010 '  The certificate is revoked.
'Private Const CRYPT_E_NO_REVOCATION_DLL As Long = &H80092011 '  No Dll or exported function was found to verify revocation.
'Private Const CRYPT_E_NO_REVOCATION_CHECK As Long = &H80092012 '  The revocation function was unable to check revocation for the certificate.
'Private Const CRYPT_E_REVOCATION_OFFLINE As Long = &H80092013 '  The revocation function was unable to check revocation because the revocation server was offline.
'Private Const CRYPT_E_NOT_IN_REVOCATION_DATABASE As Long = &H80092014 '  The certificate is not in the revocation server's database.
'Private Const CRYPT_E_INVALID_NUMERIC_STRING As Long = &H80092020 '  The string contains a non-numeric character.
'Private Const CRYPT_E_INVALID_PRINTABLE_STRING As Long = &H80092021 '  The string contains a non-printable character.
'Private Const CRYPT_E_INVALID_IA5_STRING As Long = &H80092022 '  The string contains a character not in the 7 bit ASCII character set.
'Private Const CRYPT_E_INVALID_X500_STRING As Long = &H80092023 '  The string contains an invalid X500 name attribute key, oid, value or delimiter.
'Private Const CRYPT_E_NOT_CHAR_STRING As Long = &H80092024 '  The dwValueType for the CERT_NAME_VALUE is not one of the character strings. Most likely it is either a CERT_RDN_ENCODED_BLOB or CERT_RDN_OCTET_STRING.
'Private Const CRYPT_E_FILERESIZED As Long = &H80092025 '  The Put operation cannot continue. The file needs to be resized. However, there is already a signature present. A complete signing operation must be done.
'Private Const CRYPT_E_SECURITY_SETTINGS As Long = &H80092026 '  The cryptographic operation failed due to a local security option setting.
'Private Const CRYPT_E_NO_VERIFY_USAGE_DLL As Long = &H80092027 '  No DLL or exported function was found to verify subject usage.
'Private Const CRYPT_E_NO_VERIFY_USAGE_CHECK As Long = &H80092028 '  The called function was unable to do a usage check on the subject.
'Private Const CRYPT_E_VERIFY_USAGE_OFFLINE As Long = &H80092029 '  Since the server was offline, the called function was unable to complete the usage check.
'Private Const CRYPT_E_NOT_IN_CTL As Long = &H8009202A '  The subject was not found in a Certificate Trust List (CTL).
'Private Const CRYPT_E_NO_TRUSTED_SIGNER As Long = &H8009202B '  None of the signers of the cryptographic message or certificate trust list is trusted.
'Private Const CRYPT_E_MISSING_PUBKEY_PARA As Long = &H8009202C '  The public key's algorithm parameters are missing.
'Private Const CRYPT_E_OBJECT_LOCATOR_OBJECT_NOT_FOUND As Long = &H8009202D '  An object could not be located using the object locator infrastructure with the given name.
'Private Const CRYPT_E_OSS_ERROR As Long = &H80093000 '  OSS Certificate encode/decode error code baseSee asn1code.h for a definition of the OSS runtime errors. The OSS error values are offset by CRYPT_E_OSS_ERROR.
'Private Const OSS_MORE_BUF As Long = &H80093001 '  OSS ASN.1 Error: Output Buffer is too small.
'Private Const OSS_NEGATIVE_UINTEGER As Long = &H80093002 '  OSS ASN.1 Error: Signed integer is encoded as a unsigned integer.
'Private Const OSS_PDU_RANGE As Long = &H80093003 '  OSS ASN.1 Error: Unknown ASN.1 data type.
'Private Const OSS_MORE_INPUT As Long = &H80093004 '  OSS ASN.1 Error: Output buffer is too small, the decoded data has been truncated.
'Private Const OSS_DATA_ERROR As Long = &H80093005 '  OSS ASN.1 Error: Invalid data.
'Private Const OSS_BAD_ARG As Long = &H80093006 '  OSS ASN.1 Error: Invalid argument.
'Private Const OSS_BAD_VERSION As Long = &H80093007 '  OSS ASN.1 Error: Encode/Decode version mismatch.
'Private Const OSS_OUT_MEMORY As Long = &H80093008 '  OSS ASN.1 Error: Out of memory.
'Private Const OSS_PDU_MISMATCH As Long = &H80093009 '  OSS ASN.1 Error: Encode/Decode Error.
'Private Const OSS_LIMITED As Long = &H8009300A '  OSS ASN.1 Error: Internal Error.
'Private Const OSS_BAD_PTR As Long = &H8009300B '  OSS ASN.1 Error: Invalid data.
'Private Const OSS_BAD_TIME As Long = &H8009300C '  OSS ASN.1 Error: Invalid data.
'Private Const OSS_INDEFINITE_NOT_SUPPORTED As Long = &H8009300D '  OSS ASN.1 Error: Unsupported BER indefinite-length encoding.
'Private Const OSS_MEM_ERROR As Long = &H8009300E '  OSS ASN.1 Error: Access violation.
'Private Const OSS_BAD_TABLE As Long = &H8009300F '  OSS ASN.1 Error: Invalid data.
'Private Const OSS_TOO_LONG As Long = &H80093010 '  OSS ASN.1 Error: Invalid data.
'Private Const OSS_CONSTRAINT_VIOLATED As Long = &H80093011 '  OSS ASN.1 Error: Invalid data.
'Private Const OSS_FATAL_ERROR As Long = &H80093012 '  OSS ASN.1 Error: Internal Error.
'Private Const OSS_ACCESS_SERIALIZATION_ERROR As Long = &H80093013 '  OSS ASN.1 Error: Multi-threading conflict.
'Private Const OSS_NULL_TBL As Long = &H80093014 '  OSS ASN.1 Error: Invalid data.
'Private Const OSS_NULL_FCN As Long = &H80093015 '  OSS ASN.1 Error: Invalid data.
'Private Const OSS_BAD_ENCRULES As Long = &H80093016 '  OSS ASN.1 Error: Invalid data.
'Private Const OSS_UNAVAIL_ENCRULES As Long = &H80093017 '  OSS ASN.1 Error: Encode/Decode function not implemented.
'Private Const OSS_CANT_OPEN_TRACE_WINDOW As Long = &H80093018 '  OSS ASN.1 Error: Trace file error.
'Private Const OSS_UNIMPLEMENTED As Long = &H80093019 '  OSS ASN.1 Error: Function not implemented.
'Private Const OSS_OID_DLL_NOT_LINKED As Long = &H8009301A '  OSS ASN.1 Error: Program link error.
'Private Const OSS_CANT_OPEN_TRACE_FILE As Long = &H8009301B '  OSS ASN.1 Error: Trace file error.
'Private Const OSS_TRACE_FILE_ALREADY_OPEN As Long = &H8009301C '  OSS ASN.1 Error: Trace file error.
'Private Const OSS_TABLE_MISMATCH As Long = &H8009301D '  OSS ASN.1 Error: Invalid data.
'Private Const OSS_TYPE_NOT_SUPPORTED As Long = &H8009301E '  OSS ASN.1 Error: Invalid data.
'Private Const OSS_REAL_DLL_NOT_LINKED As Long = &H8009301F '  OSS ASN.1 Error: Program link error.
'Private Const OSS_REAL_CODE_NOT_LINKED As Long = &H80093020 '  OSS ASN.1 Error: Program link error.
'Private Const OSS_OUT_OF_RANGE As Long = &H80093021 '  OSS ASN.1 Error: Program link error.
'Private Const OSS_COPIER_DLL_NOT_LINKED As Long = &H80093022 '  OSS ASN.1 Error: Program link error.
'Private Const OSS_CONSTRAINT_DLL_NOT_LINKED As Long = &H80093023 '  OSS ASN.1 Error: Program link error.
'Private Const OSS_COMPARATOR_DLL_NOT_LINKED As Long = &H80093024 '  OSS ASN.1 Error: Program link error.
'Private Const OSS_COMPARATOR_CODE_NOT_LINKED As Long = &H80093025 '  OSS ASN.1 Error: Program link error.
'Private Const OSS_MEM_MGR_DLL_NOT_LINKED As Long = &H80093026 '  OSS ASN.1 Error: Program link error.
'Private Const OSS_PDV_DLL_NOT_LINKED As Long = &H80093027 '  OSS ASN.1 Error: Program link error.
'Private Const OSS_PDV_CODE_NOT_LINKED As Long = &H80093028 '  OSS ASN.1 Error: Program link error.
'Private Const OSS_API_DLL_NOT_LINKED As Long = &H80093029 '  OSS ASN.1 Error: Program link error.
'Private Const OSS_BERDER_DLL_NOT_LINKED As Long = &H8009302A '  OSS ASN.1 Error: Program link error.
'Private Const OSS_PER_DLL_NOT_LINKED As Long = &H8009302B '  OSS ASN.1 Error: Program link error.
'Private Const OSS_OPEN_TYPE_ERROR As Long = &H8009302C '  OSS ASN.1 Error: Program link error.
'Private Const OSS_MUTEX_NOT_CREATED As Long = &H8009302D '  OSS ASN.1 Error: System resource error.
'Private Const OSS_CANT_CLOSE_TRACE_FILE As Long = &H8009302E '  OSS ASN.1 Error: Trace file error.
'Private Const CRYPT_E_ASN1_ERROR As Long = &H80093100 '  ASN1 Certificate encode/decode error code base. The ASN1 error values are offset by CRYPT_E_ASN1_ERROR.
'Private Const CRYPT_E_ASN1_INTERNAL As Long = &H80093101 '  ASN1 internal encode or decode error.
'Private Const CRYPT_E_ASN1_EOD As Long = &H80093102 '  ASN1 unexpected end of data.
'Private Const CRYPT_E_ASN1_CORRUPT As Long = &H80093103 '  ASN1 corrupted data.
'Private Const CRYPT_E_ASN1_LARGE As Long = &H80093104 '  ASN1 value too large.
'Private Const CRYPT_E_ASN1_CONSTRAINT As Long = &H80093105 '  ASN1 constraint violated.
'Private Const CRYPT_E_ASN1_MEMORY As Long = &H80093106 '  ASN1 out of memory.
'Private Const CRYPT_E_ASN1_OVERFLOW As Long = &H80093107 '  ASN1 buffer overflow.
'Private Const CRYPT_E_ASN1_BADPDU As Long = &H80093108 '  ASN1 function not supported for this PDU.
'Private Const CRYPT_E_ASN1_BADARGS As Long = &H80093109 '  ASN1 bad arguments to function call.
'Private Const CRYPT_E_ASN1_BADREAL As Long = &H8009310A '  ASN1 bad real value.
'Private Const CRYPT_E_ASN1_BADTAG As Long = &H8009310B '  ASN1 bad tag value met.
'Private Const CRYPT_E_ASN1_CHOICE As Long = &H8009310C '  ASN1 bad choice value.
'Private Const CRYPT_E_ASN1_RULE As Long = &H8009310D '  ASN1 bad encoding rule.
'Private Const CRYPT_E_ASN1_UTF8 As Long = &H8009310E '  ASN1 bad unicode (UTF8).
'Private Const CRYPT_E_ASN1_PDU_TYPE As Long = &H80093133 '  ASN1 bad PDU type.
'Private Const CRYPT_E_ASN1_NYI As Long = &H80093134 '  ASN1 not yet implemented.
'Private Const CRYPT_E_ASN1_EXTENDED As Long = &H80093201 '  ASN1 skipped unknown extension(s).
'Private Const CRYPT_E_ASN1_NOEOD As Long = &H80093202 '  ASN1 end of data expected
'Private Const CERTSRV_E_BAD_REQUESTSUBJECT As Long = &H80094001 '  The request subject name is invalid or too long.
'Private Const CERTSRV_E_NO_REQUEST As Long = &H80094002 '  The request does not exist.
'Private Const CERTSRV_E_BAD_REQUESTSTATUS As Long = &H80094003 '  The request's current status does not allow this operation.
'Private Const CERTSRV_E_PROPERTY_EMPTY As Long = &H80094004 '  The requested property value is empty.
'Private Const CERTSRV_E_INVALID_CA_CERTIFICATE As Long = &H80094005 '  The certification authority's certificate contains invalid data.
'Private Const CERTSRV_E_SERVER_SUSPENDED As Long = &H80094006 '  Certificate service has been suspended for a database restore operation.
'Private Const CERTSRV_E_ENCODING_LENGTH As Long = &H80094007 '  The certificate contains an encoded length that is potentially incompatible with older enrollment software.
'Private Const CERTSRV_E_ROLECONFLICT As Long = &H80094008 '  The operation is denied. The user has multiple roles assigned and the certification authority is configured to enforce role separation.
'Private Const CERTSRV_E_RESTRICTEDOFFICER As Long = &H80094009 '  The operation is denied. It can only be performed by a certificate manager that is allowed to manage certificates for the current requester.
'Private Const CERTSRV_E_KEY_ARCHIVAL_NOT_CONFIGURED As Long = &H8009400A '  Cannot archive private key. The certification authority is not configured for key archival.
'Private Const CERTSRV_E_NO_VALID_KRA As Long = &H8009400B '  Cannot archive private key. The certification authority could not verify one or more key recovery certificates.
'Private Const CERTSRV_E_BAD_REQUEST_KEY_ARCHIVAL As Long = &H8009400C '  The request is incorrectly formatted. The encrypted private key must be in an unauthenticated attribute in an outermost signature.
'Private Const CERTSRV_E_NO_CAADMIN_DEFINED As Long = &H8009400D '  At least one security principal must have the permission to manage this CA.
'Private Const CERTSRV_E_BAD_RENEWAL_CERT_ATTRIBUTE As Long = &H8009400E '  The request contains an invalid renewal certificate attribute.
'Private Const CERTSRV_E_NO_DB_SESSIONS As Long = &H8009400F '  An attempt was made to open a Certification Authority database session, but there are already too many active sessions. The server may need to be configured to allow additional sessions.
'Private Const CERTSRV_E_ALIGNMENT_FAULT As Long = &H80094010 '  A memory reference caused a data alignment fault.
'Private Const CERTSRV_E_ENROLL_DENIED As Long = &H80094011 '  The permissions on this certification authority do not allow the current user to enroll for certificates.
'Private Const CERTSRV_E_TEMPLATE_DENIED As Long = &H80094012 '  The permissions on the certificate template do not allow the current user to enroll for this type of certificate.
'Private Const CERTSRV_E_DOWNLEVEL_DC_SSL_OR_UPGRADE As Long = &H80094013 '  The contacted domain controller cannot support signed LDAP traffic. Update the domain controller or configure Certificate Services to use SSL for Active Directory access.
'Private Const CERTSRV_E_ADMIN_DENIED_REQUEST As Long = &H80094014 '  The request was denied by a certificate manager or CA administrator.
'Private Const CERTSRV_E_NO_POLICY_SERVER As Long = &H80094015 '  An enrollment policy server cannot be located.
'Private Const CERTSRV_E_WEAK_SIGNATURE_OR_KEY As Long = &H80094016 '  A signature algorithm or public key length does not meet the system's minimum required strength.
'Private Const CERTSRV_E_KEY_ATTESTATION_NOT_SUPPORTED As Long = &H80094017 '  Failed to create an attested key.  This computer or the cryptographic provider may not meet the hardware requirements to support key attestation.
'Private Const CERTSRV_E_ENCRYPTION_CERT_REQUIRED As Long = &H80094018 '  No encryption certificate was specified.
'Private Const CERTSRV_E_UNSUPPORTED_CERT_TYPE As Long = &H80094800 '  The requested certificate template is not supported by this CA.
'Private Const CERTSRV_E_NO_CERT_TYPE As Long = &H80094801 '  The request contains no certificate template information.
'Private Const CERTSRV_E_TEMPLATE_CONFLICT As Long = &H80094802 '  The request contains conflicting template information.
'Private Const CERTSRV_E_SUBJECT_ALT_NAME_REQUIRED As Long = &H80094803 '  The request is missing a required Subject Alternate name extension.
'Private Const CERTSRV_E_ARCHIVED_KEY_REQUIRED As Long = &H80094804 '  The request is missing a required private key for archival by the server.
'Private Const CERTSRV_E_SMIME_REQUIRED As Long = &H80094805 '  The request is missing a required SMIME capabilities extension.
'Private Const CERTSRV_E_BAD_RENEWAL_SUBJECT As Long = &H80094806 '  The request was made on behalf of a subject other than the caller. The certificate template must be configured to require at least one signature to authorize the request.
'Private Const CERTSRV_E_BAD_TEMPLATE_VERSION As Long = &H80094807 '  The request template version is newer than the supported template version.
'Private Const CERTSRV_E_TEMPLATE_POLICY_REQUIRED As Long = &H80094808 '  The template is missing a required signature policy attribute.
'Private Const CERTSRV_E_SIGNATURE_POLICY_REQUIRED As Long = &H80094809 '  The request is missing required signature policy information.
'Private Const CERTSRV_E_SIGNATURE_COUNT As Long = &H8009480A '  The request is missing one or more required signatures.
'Private Const CERTSRV_E_SIGNATURE_REJECTED As Long = &H8009480B '  One or more signatures did not include the required application or issuance policies. The request is missing one or more required valid signatures.
'Private Const CERTSRV_E_ISSUANCE_POLICY_REQUIRED As Long = &H8009480C '  The request is missing one or more required signature issuance policies.
'Private Const CERTSRV_E_SUBJECT_UPN_REQUIRED As Long = &H8009480D '  The UPN is unavailable and cannot be added to the Subject Alternate name.
'Private Const CERTSRV_E_SUBJECT_DIRECTORY_GUID_REQUIRED As Long = &H8009480E '  The Active Directory GUID is unavailable and cannot be added to the Subject Alternate name.
'Private Const CERTSRV_E_SUBJECT_DNS_REQUIRED As Long = &H8009480F '  The DNS name is unavailable and cannot be added to the Subject Alternate name.
'Private Const CERTSRV_E_ARCHIVED_KEY_UNEXPECTED As Long = &H80094810 '  The request includes a private key for archival by the server, but key archival is not enabled for the specified certificate template.
'Private Const CERTSRV_E_KEY_LENGTH As Long = &H80094811 '  The public key does not meet the minimum size required by the specified certificate template.
'Private Const CERTSRV_E_SUBJECT_EMAIL_REQUIRED As Long = &H80094812 '  The EMail name is unavailable and cannot be added to the Subject or Subject Alternate name.
'Private Const CERTSRV_E_UNKNOWN_CERT_TYPE As Long = &H80094813 '  One or more certificate templates to be enabled on this certification authority could not be found.
'Private Const CERTSRV_E_CERT_TYPE_OVERLAP As Long = &H80094814 '  The certificate template renewal period is longer than the certificate validity period. The template should be reconfigured or the CA certificate renewed.
'Private Const CERTSRV_E_TOO_MANY_SIGNATURES As Long = &H80094815 '  The certificate template requires too many RA signatures. Only one RA signature is allowed.
'Private Const CERTSRV_E_RENEWAL_BAD_PUBLIC_KEY As Long = &H80094816 '  The certificate template requires renewal with the same public key, but the request uses a different public key.
'Private Const CERTSRV_E_INVALID_EK As Long = &H80094817 '  The certification authority cannot interpret or verify the endorsement key information supplied in the request, or the information is inconsistent.
'Private Const CERTSRV_E_INVALID_IDBINDING As Long = &H80094818 '  The certification authority cannot validate the Attestation Identity Key Id Binding.
'Private Const CERTSRV_E_INVALID_ATTESTATION As Long = &H80094819 '  The certification authority cannot validate the private key attestation data.
'Private Const CERTSRV_E_KEY_ATTESTATION As Long = &H8009481A '  The request does not support private key attestation as defined in the certificate template.
'Private Const CERTSRV_E_CORRUPT_KEY_ATTESTATION As Long = &H8009481B '  The request public key is not consistent with the private key attestation data.
'Private Const CERTSRV_E_EXPIRED_CHALLENGE As Long = &H8009481C '  The private key attestation challenge cannot be validated because the encryption certificate has expired, or the certificate or key is unavailable.
'Private Const CERTSRV_E_INVALID_RESPONSE As Long = &H8009481D '  The attestation response could not be validated. It is either unexpected or incorrect.
'Private Const CERTSRV_E_INVALID_REQUESTID As Long = &H8009481E '  A valid Request ID was not detected in the request attributes, or an invalid one was submitted.
'Private Const XENROLL_E_KEY_NOT_EXPORTABLE As Long = &H80095000 '  The key is not exportable.
'Private Const XENROLL_E_CANNOT_ADD_ROOT_CERT As Long = &H80095001 '  You cannot add the root CA certificate into your local store.
'Private Const XENROLL_E_RESPONSE_KA_HASH_NOT_FOUND As Long = &H80095002 '  The key archival hash attribute was not found in the response.
'Private Const XENROLL_E_RESPONSE_UNEXPECTED_KA_HASH As Long = &H80095003 '  An unexpected key archival hash attribute was found in the response.
'Private Const XENROLL_E_RESPONSE_KA_HASH_MISMATCH As Long = &H80095004 '  There is a key archival hash mismatch between the request and the response.
'Private Const XENROLL_E_KEYSPEC_SMIME_MISMATCH As Long = &H80095005 '  Signing certificate cannot include SMIME extension.
'Private Const TRUST_E_SYSTEM_ERROR As Long = &H80096001 '  A system-level error occurred while verifying trust.
'Private Const TRUST_E_NO_SIGNER_CERT As Long = &H80096002 '  The certificate for the signer of the message is invalid or not found.
'Private Const TRUST_E_COUNTER_SIGNER As Long = &H80096003 '  One of the counter signatures was invalid.
'Private Const TRUST_E_CERT_SIGNATURE As Long = &H80096004 '  The signature of the certificate cannot be verified.
'Private Const TRUST_E_TIME_STAMP As Long = &H80096005 '  The timestamp signature and/or certificate could not be verified or is malformed.
'Private Const TRUST_E_BAD_DIGEST As Long = &H80096010 '  The digital signature of the object did not verify.
'Private Const TRUST_E_BASIC_CONSTRAINTS As Long = &H80096019 '  A certificate's basic constraint extension has not been observed.
'Private Const TRUST_E_FINANCIAL_CRITERIA As Long = &H8009601E '  The certificate does not meet or contain the Authenticode(tm) financial extensions.
'Private Const MSSIPOTF_E_OUTOFMEMRANGE As Long = &H80097001 '  Tried to reference a part of the file outside the proper range.
'Private Const MSSIPOTF_E_CANTGETOBJECT As Long = &H80097002 '  Could not retrieve an object from the file.
'Private Const MSSIPOTF_E_NOHEADTABLE As Long = &H80097003 '  Could not find the head table in the file.
'Private Const MSSIPOTF_E_BAD_MAGICNUMBER As Long = &H80097004 '  The magic number in the head table is incorrect.
'Private Const MSSIPOTF_E_BAD_OFFSET_TABLE As Long = &H80097005 '  The offset table has incorrect values.
'Private Const MSSIPOTF_E_TABLE_TAGORDER As Long = &H80097006 '  Duplicate table tags or tags out of alphabetical order.
'Private Const MSSIPOTF_E_TABLE_LONGWORD As Long = &H80097007 '  A table does not start on a long word boundary.
'Private Const MSSIPOTF_E_BAD_FIRST_TABLE_PLACEMENT As Long = &H80097008 '  First table does not appear after header information.
'Private Const MSSIPOTF_E_TABLES_OVERLAP As Long = &H80097009 '  Two or more tables overlap.
'Private Const MSSIPOTF_E_TABLE_PADBYTES As Long = &H8009700A '  Too many pad bytes between tables or pad bytes are not 0.
'Private Const MSSIPOTF_E_FILETOOSMALL As Long = &H8009700B '  File is too small to contain the last table.
'Private Const MSSIPOTF_E_TABLE_CHECKSUM As Long = &H8009700C '  A table checksum is incorrect.
'Private Const MSSIPOTF_E_FILE_CHECKSUM As Long = &H8009700D '  The file checksum is incorrect.
'Private Const MSSIPOTF_E_FAILED_POLICY As Long = &H80097010 '  The signature does not have the correct attributes for the policy.
'Private Const MSSIPOTF_E_FAILED_HINTS_CHECK As Long = &H80097011 '  The file did not pass the hints check.
'Private Const MSSIPOTF_E_NOT_OPENTYPE As Long = &H80097012 '  The file is not an OpenType file.
'Private Const MSSIPOTF_E_FILE As Long = &H80097013 '  Failed on a file operation (open, map, read, write).
'Private Const MSSIPOTF_E_CRYPT As Long = &H80097014 '  A call to a CryptoAPI function failed.
'Private Const MSSIPOTF_E_BADVERSION As Long = &H80097015 '  There is a bad version number in the file.
'Private Const MSSIPOTF_E_DSIG_STRUCTURE As Long = &H80097016 '  The structure of the DSIG table is incorrect.
'Private Const MSSIPOTF_E_PCONST_CHECK As Long = &H80097017 '  A check failed in a partially constant table.
'Private Const MSSIPOTF_E_STRUCTURE As Long = &H80097018 '  Some kind of structural error.
'Private Const ERROR_CRED_REQUIRES_CONFIRMATION As Long = &H80097019 '  The requested credential requires confirmation.
'Private Const TRUST_E_PROVIDER_UNKNOWN As Long = &H800B0001 '  Unknown trust provider.
'Private Const TRUST_E_ACTION_UNKNOWN As Long = &H800B0002 '  The trust verification action specified is not supported by the specified trust provider.
'Private Const TRUST_E_SUBJECT_FORM_UNKNOWN As Long = &H800B0003 '  The form specified for the subject is not one supported or known by the specified trust provider.
'Private Const TRUST_E_SUBJECT_NOT_TRUSTED As Long = &H800B0004 '  The subject is not trusted for the specified action.
'Private Const DIGSIG_E_ENCODE As Long = &H800B0005 '  Error due to problem in ASN.1 encoding process.
'Private Const DIGSIG_E_DECODE As Long = &H800B0006 '  Error due to problem in ASN.1 decoding process.
'Private Const DIGSIG_E_EXTENSIBILITY As Long = &H800B0007 '  Reading / writing Extensions where Attributes are appropriate, and vice versa.
'Private Const DIGSIG_E_CRYPTO As Long = &H800B0008 '  Unspecified cryptographic failure.
'Private Const PERSIST_E_SIZEDEFINITE As Long = &H800B0009 '  The size of the data could not be determined.
'Private Const PERSIST_E_SIZEINDEFINITE As Long = &H800B000A '  The size of the indefinite-sized data could not be determined.
'Private Const PERSIST_E_NOTSELFSIZING As Long = &H800B000B '  This object does not read and write self-sizing data.
'Private Const TRUST_E_NOSIGNATURE As Long = &H800B0100 '  No signature was present in the subject.
'Private Const CERT_E_EXPIRED As Long = &H800B0101 '  A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file.
'Private Const CERT_E_VALIDITYPERIODNESTING As Long = &H800B0102 '  The validity periods of the certification chain do not nest correctly.
'Private Const CERT_E_ROLE As Long = &H800B0103 '  A certificate that can only be used as an end-entity is being used as a CA or vice versa.
'Private Const CERT_E_PATHLENCONST As Long = &H800B0104 '  A path length constraint in the certification chain has been violated.
'Private Const CERT_E_CRITICAL As Long = &H800B0105 '  A certificate contains an unknown extension that is marked 'critical'.
'Private Const CERT_E_PURPOSE As Long = &H800B0106 '  A certificate being used for a purpose other than the ones specified by its CA.
'Private Const CERT_E_ISSUERCHAINING As Long = &H800B0107 '  A parent of a given certificate in fact did not issue that child certificate.
'Private Const CERT_E_MALFORMED As Long = &H800B0108 '  A certificate is missing or has an empty value for an important field, such as a subject or issuer name.
'Private Const CERT_E_UNTRUSTEDROOT As Long = &H800B0109 '  A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
'Private Const CERT_E_CHAINING As Long = &H800B010A '  A certificate chain could not be built to a trusted root authority.
'Private Const TRUST_E_FAIL As Long = &H800B010B '  Generic trust failure.
'Private Const CERT_E_REVOKED As Long = &H800B010C '  A certificate was explicitly revoked by its issuer.
'Private Const CERT_E_UNTRUSTEDTESTROOT As Long = &H800B010D '  The certification path terminates with the test root which is not trusted with the current policy settings.
'Private Const CERT_E_REVOCATION_FAILURE As Long = &H800B010E '  The revocation process could not continue - the certificate(s) could not be checked.
'Private Const CERT_E_CN_NO_MATCH As Long = &H800B010F '  The certificate's CN name does not match the passed value.
'Private Const CERT_E_WRONG_USAGE As Long = &H800B0110 '  The certificate is not valid for the requested usage.
'Private Const TRUST_E_EXPLICIT_DISTRUST As Long = &H800B0111 '  The certificate was explicitly marked as untrusted by the user.
'Private Const CERT_E_UNTRUSTEDCA As Long = &H800B0112 '  A certification chain processed correctly, but one of the CA certificates is not trusted by the policy provider.
'Private Const CERT_E_INVALID_POLICY As Long = &H800B0113 '  The certificate has invalid policy.
'Private Const CERT_E_INVALID_NAME As Long = &H800B0114 '  The certificate has an invalid name. The name is not included in the permitted list or is explicitly excluded.
'Private Const SPAPI_E_EXPECTED_SECTION_NAME As Long = &H800F0000 '  A non-empty line was encountered in the INF before the start of a section.
'Private Const SPAPI_E_BAD_SECTION_NAME_LINE As Long = &H800F0001 '  A section name marker in the INF is not complete, or does not exist on a line by itself.
'Private Const SPAPI_E_SECTION_NAME_TOO_LONG As Long = &H800F0002 '  An INF section was encountered whose name exceeds the maximum section name length.
'Private Const SPAPI_E_GENERAL_SYNTAX As Long = &H800F0003 '  The syntax of the INF is invalid.
'Private Const SPAPI_E_WRONG_INF_STYLE As Long = &H800F0100 '  The style of the INF is different than what was requested.
'Private Const SPAPI_E_SECTION_NOT_FOUND As Long = &H800F0101 '  The required section was not found in the INF.
'Private Const SPAPI_E_LINE_NOT_FOUND As Long = &H800F0102 '  The required line was not found in the INF.
'Private Const SPAPI_E_NO_BACKUP As Long = &H800F0103 '  The files affected by the installation of this file queue have not been backed up for uninstall.
'Private Const SPAPI_E_NO_ASSOCIATED_CLASS As Long = &H800F0200 '  The INF or the device information set or element does not have an associated install class.
'Private Const SPAPI_E_CLASS_MISMATCH As Long = &H800F0201 '  The INF or the device information set or element does not match the specified install class.
'Private Const SPAPI_E_DUPLICATE_FOUND As Long = &H800F0202 '  An existing device was found that is a duplicate of the device being manually installed.
'Private Const SPAPI_E_NO_DRIVER_SELECTED As Long = &H800F0203 '  There is no driver selected for the device information set or element.
'Private Const SPAPI_E_KEY_DOES_NOT_EXIST As Long = &H800F0204 '  The requested device registry key does not exist.
'Private Const SPAPI_E_INVALID_DEVINST_NAME As Long = &H800F0205 '  The device instance name is invalid.
'Private Const SPAPI_E_INVALID_CLASS As Long = &H800F0206 '  The install class is not present or is invalid.
'Private Const SPAPI_E_DEVINST_ALREADY_EXISTS As Long = &H800F0207 '  The device instance cannot be created because it already exists.
'Private Const SPAPI_E_DEVINFO_NOT_REGISTERED As Long = &H800F0208 '  The operation cannot be performed on a device information element that has not been registered.
'Private Const SPAPI_E_INVALID_REG_PROPERTY As Long = &H800F0209 '  The device property code is invalid.
'Private Const SPAPI_E_NO_INF As Long = &H800F020A '  The INF from which a driver list is to be built does not exist.
'Private Const SPAPI_E_NO_SUCH_DEVINST As Long = &H800F020B '  The device instance does not exist in the hardware tree.
'Private Const SPAPI_E_CANT_LOAD_CLASS_ICON As Long = &H800F020C '  The icon representing this install class cannot be loaded.
'Private Const SPAPI_E_INVALID_CLASS_INSTALLER As Long = &H800F020D '  The class installer registry entry is invalid.
'Private Const SPAPI_E_DI_DO_DEFAULT As Long = &H800F020E '  The class installer has indicated that the default action should be performed for this installation request.
'Private Const SPAPI_E_DI_NOFILECOPY As Long = &H800F020F '  The operation does not require any files to be copied.
'Private Const SPAPI_E_INVALID_HWPROFILE As Long = &H800F0210 '  The specified hardware profile does not exist.
'Private Const SPAPI_E_NO_DEVICE_SELECTED As Long = &H800F0211 '  There is no device information element currently selected for this device information set.
'Private Const SPAPI_E_DEVINFO_LIST_LOCKED As Long = &H800F0212 '  The operation cannot be performed because the device information set is locked.
'Private Const SPAPI_E_DEVINFO_DATA_LOCKED As Long = &H800F0213 '  The operation cannot be performed because the device information element is locked.
'Private Const SPAPI_E_DI_BAD_PATH As Long = &H800F0214 '  The specified path does not contain any applicable device INFs.
'Private Const SPAPI_E_NO_CLASSINSTALL_PARAMS As Long = &H800F0215 '  No class installer parameters have been set for the device information set or element.
'Private Const SPAPI_E_FILEQUEUE_LOCKED As Long = &H800F0216 '  The operation cannot be performed because the file queue is locked.
'Private Const SPAPI_E_BAD_SERVICE_INSTALLSECT As Long = &H800F0217 '  A service installation section in this INF is invalid.
'Private Const SPAPI_E_NO_CLASS_DRIVER_LIST As Long = &H800F0218 '  There is no class driver list for the device information element.
'Private Const SPAPI_E_NO_ASSOCIATED_SERVICE As Long = &H800F0219 '  The installation failed because a function driver was not specified for this device instance.
'Private Const SPAPI_E_NO_DEFAULT_DEVICE_INTERFACE As Long = &H800F021A '  There is presently no default device interface designated for this interface class.
'Private Const SPAPI_E_DEVICE_INTERFACE_ACTIVE As Long = &H800F021B '  The operation cannot be performed because the device interface is currently active.
'Private Const SPAPI_E_DEVICE_INTERFACE_REMOVED As Long = &H800F021C '  The operation cannot be performed because the device interface has been removed from the system.
'Private Const SPAPI_E_BAD_INTERFACE_INSTALLSECT As Long = &H800F021D '  An interface installation section in this INF is invalid.
'Private Const SPAPI_E_NO_SUCH_INTERFACE_CLASS As Long = &H800F021E '  This interface class does not exist in the system.
'Private Const SPAPI_E_INVALID_REFERENCE_STRING As Long = &H800F021F '  The reference string supplied for this interface device is invalid.
'Private Const SPAPI_E_INVALID_MACHINENAME As Long = &H800F0220 '  The specified machine name does not conform to UNC naming conventions.
'Private Const SPAPI_E_REMOTE_COMM_FAILURE As Long = &H800F0221 '  A general remote communication error occurred.
'Private Const SPAPI_E_MACHINE_UNAVAILABLE As Long = &H800F0222 '  The machine selected for remote communication is not available at this time.
'Private Const SPAPI_E_NO_CONFIGMGR_SERVICES As Long = &H800F0223 '  The Plug and Play service is not available on the remote machine.
'Private Const SPAPI_E_INVALID_PROPPAGE_PROVIDER As Long = &H800F0224 '  The property page provider registry entry is invalid.
'Private Const SPAPI_E_NO_SUCH_DEVICE_INTERFACE As Long = &H800F0225 '  The requested device interface is not present in the system.
'Private Const SPAPI_E_DI_POSTPROCESSING_REQUIRED As Long = &H800F0226 '  The device's co-installer has additional work to perform after installation is complete.
'Private Const SPAPI_E_INVALID_COINSTALLER As Long = &H800F0227 '  The device's co-installer is invalid.
'Private Const SPAPI_E_NO_COMPAT_DRIVERS As Long = &H800F0228 '  There are no compatible drivers for this device.
'Private Const SPAPI_E_NO_DEVICE_ICON As Long = &H800F0229 '  There is no icon that represents this device or device type.
'Private Const SPAPI_E_INVALID_INF_LOGCONFIG As Long = &H800F022A '  A logical configuration specified in this INF is invalid.
'Private Const SPAPI_E_DI_DONT_INSTALL As Long = &H800F022B '  The class installer has denied the request to install or upgrade this device.
'Private Const SPAPI_E_INVALID_FILTER_DRIVER As Long = &H800F022C '  One of the filter drivers installed for this device is invalid.
'Private Const SPAPI_E_NON_WINDOWS_NT_DRIVER As Long = &H800F022D '  The driver selected for this device does not support this version of Windows.
'Private Const SPAPI_E_NON_WINDOWS_DRIVER As Long = &H800F022E '  The driver selected for this device does not support Windows.
'Private Const SPAPI_E_NO_CATALOG_FOR_OEM_INF As Long = &H800F022F '  The third-party INF does not contain digital signature information.
'Private Const SPAPI_E_DEVINSTALL_QUEUE_NONNATIVE As Long = &H800F0230 '  An invalid attempt was made to use a device installation file queue for verification of digital signatures relative to other platforms.
'Private Const SPAPI_E_NOT_DISABLEABLE As Long = &H800F0231 '  The device cannot be disabled.
'Private Const SPAPI_E_CANT_REMOVE_DEVINST As Long = &H800F0232 '  The device could not be dynamically removed.
'Private Const SPAPI_E_INVALID_TARGET As Long = &H800F0233 '  Cannot copy to specified target.
'Private Const SPAPI_E_DRIVER_NONNATIVE As Long = &H800F0234 '  Driver is not intended for this platform.
'Private Const SPAPI_E_IN_WOW64 As Long = &H800F0235 '  Operation not allowed in WOW64.
'Private Const SPAPI_E_SET_SYSTEM_RESTORE_POINT As Long = &H800F0236 '  The operation involving unsigned file copying was rolled back, so that a system restore point could be set.
'Private Const SPAPI_E_INCORRECTLY_COPIED_INF As Long = &H800F0237 '  An INF was copied into the Windows INF directory in an improper manner.
'Private Const SPAPI_E_SCE_DISABLED As Long = &H800F0238 '  The Security Configuration Editor (SCE) APIs have been disabled on this Embedded product.
'Private Const SPAPI_E_UNKNOWN_EXCEPTION As Long = &H800F0239 '  An unknown exception was encountered.
'Private Const SPAPI_E_PNP_REGISTRY_ERROR As Long = &H800F023A '  A problem was encountered when accessing the Plug and Play registry database.
'Private Const SPAPI_E_REMOTE_REQUEST_UNSUPPORTED As Long = &H800F023B '  The requested operation is not supported for a remote machine.
'Private Const SPAPI_E_NOT_AN_INSTALLED_OEM_INF As Long = &H800F023C '  The specified file is not an installed OEM INF.
'Private Const SPAPI_E_INF_IN_USE_BY_DEVICES As Long = &H800F023D '  One or more devices are presently installed using the specified INF.
'Private Const SPAPI_E_DI_FUNCTION_OBSOLETE As Long = &H800F023E '  The requested device install operation is obsolete.
'Private Const SPAPI_E_NO_AUTHENTICODE_CATALOG As Long = &H800F023F '  A file could not be verified because it does not have an associated catalog signed via Authenticode(tm).
'Private Const SPAPI_E_AUTHENTICODE_DISALLOWED As Long = &H800F0240 '  Authenticode(tm) signature verification is not supported for the specified INF.
'Private Const SPAPI_E_AUTHENTICODE_TRUSTED_PUBLISHER As Long = &H800F0241 '  The INF was signed with an Authenticode(tm) catalog from a trusted publisher.
'Private Const SPAPI_E_AUTHENTICODE_TRUST_NOT_ESTABLISHED As Long = &H800F0242 '  The publisher of an Authenticode(tm) signed catalog has not yet been established as trusted.
'Private Const SPAPI_E_AUTHENTICODE_PUBLISHER_NOT_TRUSTED As Long = &H800F0243 '  The publisher of an Authenticode(tm) signed catalog was not established as trusted.
'Private Const SPAPI_E_SIGNATURE_OSATTRIBUTE_MISMATCH As Long = &H800F0244 '  The software was tested for compliance with Windows Logo requirements on a different version of Windows, and may not be compatible with this version.
'Private Const SPAPI_E_ONLY_VALIDATE_VIA_AUTHENTICODE As Long = &H800F0245 '  The file may only be validated by a catalog signed via Authenticode(tm).
'Private Const SPAPI_E_DEVICE_INSTALLER_NOT_READY As Long = &H800F0246 '  One of the installers for this device cannot perform the installation at this time.
'Private Const SPAPI_E_DRIVER_STORE_ADD_FAILED As Long = &H800F0247 '  A problem was encountered while attempting to add the driver to the store.
'Private Const SPAPI_E_DEVICE_INSTALL_BLOCKED As Long = &H800F0248 '  The installation of this device is forbidden by system policy. Contact your system administrator.
'Private Const SPAPI_E_DRIVER_INSTALL_BLOCKED As Long = &H800F0249 '  The installation of this driver is forbidden by system policy. Contact your system administrator.
'Private Const SPAPI_E_WRONG_INF_TYPE As Long = &H800F024A '  The specified INF is the wrong type for this operation.
'Private Const SPAPI_E_FILE_HASH_NOT_IN_CATALOG As Long = &H800F024B '  The hash for the file is not present in the specified catalog file. The file is likely corrupt or the victim of tampering.
'Private Const SPAPI_E_DRIVER_STORE_DELETE_FAILED As Long = &H800F024C '  A problem was encountered while attempting to delete the driver from the store.
'Private Const SPAPI_E_UNRECOVERABLE_STACK_OVERFLOW As Long = &H800F0300 '  An unrecoverable stack overflow was encountered.
'Private Const SPAPI_E_ERROR_NOT_INSTALLED As Long = &H800F1000 '  No installed components were detected.
'Private Const SCARD_F_INTERNAL_ERROR As Long = &H80100001 '  An internal consistency check failed.
'Private Const SCARD_E_CANCELLED As Long = &H80100002 '  The action was cancelled by an SCardCancel request.
'Private Const SCARD_E_INVALID_HANDLE As Long = &H80100003 '  The supplied handle was invalid.
'Private Const SCARD_E_INVALID_PARAMETER As Long = &H80100004 '  One or more of the supplied parameters could not be properly interpreted.
'Private Const SCARD_E_INVALID_TARGET As Long = &H80100005 '  Registry startup information is missing or invalid.
'Private Const SCARD_E_NO_MEMORY As Long = &H80100006 '  Not enough memory available to complete this command.
'Private Const SCARD_F_WAITED_TOO_LONG As Long = &H80100007 '  An internal consistency timer has expired.
'Private Const SCARD_E_INSUFFICIENT_BUFFER As Long = &H80100008 '  The data buffer to receive returned data is too small for the returned data.
'Private Const SCARD_E_UNKNOWN_READER As Long = &H80100009 '  The specified reader name is not recognized.
'Private Const SCARD_E_TIMEOUT As Long = &H8010000A '  The user-specified timeout value has expired.
'Private Const SCARD_E_SHARING_VIOLATION As Long = &H8010000B '  The smart card cannot be accessed because of other connections outstanding.
'Private Const SCARD_E_NO_SMARTCARD As Long = &H8010000C '  The operation requires a smart card, but no smart card is currently in the device.
'Private Const SCARD_E_UNKNOWN_CARD As Long = &H8010000D '  The specified smart card name is not recognized.
'Private Const SCARD_E_CANT_DISPOSE As Long = &H8010000E '  The system could not dispose of the media in the requested manner.
'Private Const SCARD_E_PROTO_MISMATCH As Long = &H8010000F '  The requested protocols are incompatible with the protocol currently in use with the smart card.
'Private Const SCARD_E_NOT_READY As Long = &H80100010 '  The reader or smart card is not ready to accept commands.
'Private Const SCARD_E_INVALID_VALUE As Long = &H80100011 '  One or more of the supplied parameters values could not be properly interpreted.
'Private Const SCARD_E_SYSTEM_CANCELLED As Long = &H80100012 '  The action was cancelled by the system, presumably to log off or shut down.
'Private Const SCARD_F_COMM_ERROR As Long = &H80100013 '  An internal communications error has been detected.
'Private Const SCARD_F_UNKNOWN_ERROR As Long = &H80100014 '  An internal error has been detected, but the source is unknown.
'Private Const SCARD_E_INVALID_ATR As Long = &H80100015 '  An ATR obtained from the registry is not a valid ATR string.
'Private Const SCARD_E_NOT_TRANSACTED As Long = &H80100016 '  An attempt was made to end a non-existent transaction.
'Private Const SCARD_E_READER_UNAVAILABLE As Long = &H80100017 '  The specified reader is not currently available for use.
'Private Const SCARD_P_SHUTDOWN As Long = &H80100018 '  The operation has been aborted to allow the server application to exit.
'Private Const SCARD_E_PCI_TOO_SMALL As Long = &H80100019 '  The PCI Receive buffer was too small.
'Private Const SCARD_E_READER_UNSUPPORTED As Long = &H8010001A '  The reader driver does not meet minimal requirements for support.
'Private Const SCARD_E_DUPLICATE_READER As Long = &H8010001B '  The reader driver did not produce a unique reader name.
'Private Const SCARD_E_CARD_UNSUPPORTED As Long = &H8010001C '  The smart card does not meet minimal requirements for support.
'Private Const SCARD_E_NO_SERVICE As Long = &H8010001D '  The Smart Card Resource Manager is not running.
'Private Const SCARD_E_SERVICE_STOPPED As Long = &H8010001E '  The Smart Card Resource Manager has shut down.
'Private Const SCARD_E_UNEXPECTED As Long = &H8010001F '  An unexpected card error has occurred.
'Private Const SCARD_E_ICC_INSTALLATION As Long = &H80100020 '  No Primary Provider can be found for the smart card.
'Private Const SCARD_E_ICC_CREATEORDER As Long = &H80100021 '  The requested order of object creation is not supported.
'Private Const SCARD_E_UNSUPPORTED_FEATURE As Long = &H80100022 '  This smart card does not support the requested feature.
'Private Const SCARD_E_DIR_NOT_FOUND As Long = &H80100023 '  The identified directory does not exist in the smart card.
'Private Const SCARD_E_FILE_NOT_FOUND As Long = &H80100024 '  The identified file does not exist in the smart card.
'Private Const SCARD_E_NO_DIR As Long = &H80100025 '  The supplied path does not represent a smart card directory.
'Private Const SCARD_E_NO_FILE As Long = &H80100026 '  The supplied path does not represent a smart card file.
'Private Const SCARD_E_NO_ACCESS As Long = &H80100027 '  Access is denied to this file.
'Private Const SCARD_E_WRITE_TOO_MANY As Long = &H80100028 '  The smart card does not have enough memory to store the information.
'Private Const SCARD_E_BAD_SEEK As Long = &H80100029 '  There was an error trying to set the smart card file object pointer.
'Private Const SCARD_E_INVALID_CHV As Long = &H8010002A '  The supplied PIN is incorrect.
'Private Const SCARD_E_UNKNOWN_RES_MNG As Long = &H8010002B '  An unrecognized error code was returned from a layered component.
'Private Const SCARD_E_NO_SUCH_CERTIFICATE As Long = &H8010002C '  The requested certificate does not exist.
'Private Const SCARD_E_CERTIFICATE_UNAVAILABLE As Long = &H8010002D '  The requested certificate could not be obtained.
'Private Const SCARD_E_NO_READERS_AVAILABLE As Long = &H8010002E '  Cannot find a smart card reader.
'Private Const SCARD_E_COMM_DATA_LOST As Long = &H8010002F '  A communications error with the smart card has been detected. Retry the operation.
'Private Const SCARD_E_NO_KEY_CONTAINER As Long = &H80100030 '  The requested key container does not exist on the smart card.
'Private Const SCARD_E_SERVER_TOO_BUSY As Long = &H80100031 '  The Smart Card Resource Manager is too busy to complete this operation.
'Private Const SCARD_E_PIN_CACHE_EXPIRED As Long = &H80100032 '  The smart card PIN cache has expired.
'Private Const SCARD_E_NO_PIN_CACHE As Long = &H80100033 '  The smart card PIN cannot be cached.
'Private Const SCARD_E_READ_ONLY_CARD As Long = &H80100034 '  The smart card is read only and cannot be written to.
'Private Const SCARD_W_UNSUPPORTED_CARD As Long = &H80100065 '  The reader cannot communicate with the smart card, due to ATR configuration conflicts.
'Private Const SCARD_W_UNRESPONSIVE_CARD As Long = &H80100066 '  The smart card is not responding to a reset.
'Private Const SCARD_W_UNPOWERED_CARD As Long = &H80100067 '  Power has been removed from the smart card, so that further communication is not possible.
'Private Const SCARD_W_RESET_CARD As Long = &H80100068 '  The smart card has been reset, so any shared state information is invalid.
'Private Const SCARD_W_REMOVED_CARD As Long = &H80100069 '  The smart card has been removed, so that further communication is not possible.
'Private Const SCARD_W_SECURITY_VIOLATION As Long = &H8010006A '  Access was denied because of a security violation.
'Private Const SCARD_W_WRONG_CHV As Long = &H8010006B '  The card cannot be accessed because the wrong PIN was presented.
'Private Const SCARD_W_CHV_BLOCKED As Long = &H8010006C '  The card cannot be accessed because the maximum number of PIN entry attempts has been reached.
'Private Const SCARD_W_EOF As Long = &H8010006D '  The end of the smart card file has been reached.
'Private Const SCARD_W_CANCELLED_BY_USER As Long = &H8010006E '  The action was cancelled by the user.
'Private Const SCARD_W_CARD_NOT_AUTHENTICATED As Long = &H8010006F '  No PIN was presented to the smart card.
'Private Const SCARD_W_CACHE_ITEM_NOT_FOUND As Long = &H80100070 '  The requested item could not be found in the cache.
'Private Const SCARD_W_CACHE_ITEM_STALE As Long = &H80100071 '  The requested cache item is too old and was deleted from the cache.
'Private Const SCARD_W_CACHE_ITEM_TOO_BIG As Long = &H80100072 '  The new cache item exceeds the maximum per-item size defined for the cache.
'Private Const COMADMIN_E_OBJECTERRORS As Long = &H80110401 '  Errors occurred accessing one or more objects - the ErrorInfo collection may have more detail
'Private Const COMADMIN_E_OBJECTINVALID As Long = &H80110402 '  One or more of the object's properties are missing or invalid
'Private Const COMADMIN_E_KEYMISSING As Long = &H80110403 '  The object was not found in the catalog
'Private Const COMADMIN_E_ALREADYINSTALLED As Long = &H80110404 '  The object is already registered
'Private Const COMADMIN_E_APP_FILE_WRITEFAIL As Long = &H80110407 '  Error occurred writing to the application file
'Private Const COMADMIN_E_APP_FILE_READFAIL As Long = &H80110408 '  Error occurred reading the application file
'Private Const COMADMIN_E_APP_FILE_VERSION As Long = &H80110409 '  Invalid version number in application file
'Private Const COMADMIN_E_BADPATH As Long = &H8011040A '  The file path is invalid
'Private Const COMADMIN_E_APPLICATIONEXISTS As Long = &H8011040B '  The application is already installed
'Private Const COMADMIN_E_ROLEEXISTS As Long = &H8011040C '  The role already exists
'Private Const COMADMIN_E_CANTCOPYFILE As Long = &H8011040D '  An error occurred copying the file
'Private Const COMADMIN_E_NOUSER As Long = &H8011040F '  One or more users are not valid
'Private Const COMADMIN_E_INVALIDUSERIDS As Long = &H80110410 '  One or more users in the application file are not valid
'Private Const COMADMIN_E_NOREGISTRYCLSID As Long = &H80110411 '  The component's CLSID is missing or corrupt
'Private Const COMADMIN_E_BADREGISTRYPROGID As Long = &H80110412 '  The component's progID is missing or corrupt
'Private Const COMADMIN_E_AUTHENTICATIONLEVEL As Long = &H80110413 '  Unable to set required authentication level for update request
'Private Const COMADMIN_E_USERPASSWDNOTVALID As Long = &H80110414 '  The identity or password set on the application is not valid
'Private Const COMADMIN_E_CLSIDORIIDMISMATCH As Long = &H80110418 '  Application file CLSIDs or IIDs do not match corresponding DLLs
'Private Const COMADMIN_E_REMOTEINTERFACE As Long = &H80110419 '  Interface information is either missing or changed
'Private Const COMADMIN_E_DLLREGISTERSERVER As Long = &H8011041A '  DllRegisterServer failed on component install
'Private Const COMADMIN_E_NOSERVERSHARE As Long = &H8011041B '  No server file share available
'Private Const COMADMIN_E_DLLLOADFAILED As Long = &H8011041D '  DLL could not be loaded
'Private Const COMADMIN_E_BADREGISTRYLIBID As Long = &H8011041E '  The registered TypeLib ID is not valid
'Private Const COMADMIN_E_APPDIRNOTFOUND As Long = &H8011041F '  Application install directory not found
'Private Const COMADMIN_E_REGISTRARFAILED As Long = &H80110423 '  Errors occurred while in the component registrar
'Private Const COMADMIN_E_COMPFILE_DOESNOTEXIST As Long = &H80110424 '  The file does not exist
'Private Const COMADMIN_E_COMPFILE_LOADDLLFAIL As Long = &H80110425 '  The DLL could not be loaded
'Private Const COMADMIN_E_COMPFILE_GETCLASSOBJ As Long = &H80110426 '  GetClassObject failed in the DLL
'Private Const COMADMIN_E_COMPFILE_CLASSNOTAVAIL As Long = &H80110427 '  The DLL does not support the components listed in the TypeLib
'Private Const COMADMIN_E_COMPFILE_BADTLB As Long = &H80110428 '  The TypeLib could not be loaded
'Private Const COMADMIN_E_COMPFILE_NOTINSTALLABLE As Long = &H80110429 '  The file does not contain components or component information
'Private Const COMADMIN_E_NOTCHANGEABLE As Long = &H8011042A '  Changes to this object and its sub-objects have been disabled
'Private Const COMADMIN_E_NOTDELETEABLE As Long = &H8011042B '  The delete function has been disabled for this object
'Private Const COMADMIN_E_SESSION As Long = &H8011042C '  The server catalog version is not supported
'Private Const COMADMIN_E_COMP_MOVE_LOCKED As Long = &H8011042D '  The component move was disallowed, because the source or destination application is either a system application or currently locked against changes
'Private Const COMADMIN_E_COMP_MOVE_BAD_DEST As Long = &H8011042E '  The component move failed because the destination application no longer exists
'Private Const COMADMIN_E_REGISTERTLB As Long = &H80110430 '  The system was unable to register the TypeLib
'Private Const COMADMIN_E_SYSTEMAPP As Long = &H80110433 '  This operation cannot be performed on the system application
'Private Const COMADMIN_E_COMPFILE_NOREGISTRAR As Long = &H80110434 '  The component registrar referenced in this file is not available
'Private Const COMADMIN_E_COREQCOMPINSTALLED As Long = &H80110435 '  A component in the same DLL is already installed
'Private Const COMADMIN_E_SERVICENOTINSTALLED As Long = &H80110436 '  The service is not installed
'Private Const COMADMIN_E_PROPERTYSAVEFAILED As Long = &H80110437 '  One or more property settings are either invalid or in conflict with each other
'Private Const COMADMIN_E_OBJECTEXISTS As Long = &H80110438 '  The object you are attempting to add or rename already exists
'Private Const COMADMIN_E_COMPONENTEXISTS As Long = &H80110439 '  The component already exists
'Private Const COMADMIN_E_REGFILE_CORRUPT As Long = &H8011043B '  The registration file is corrupt
'Private Const COMADMIN_E_PROPERTY_OVERFLOW As Long = &H8011043C '  The property value is too large
'Private Const COMADMIN_E_NOTINREGISTRY As Long = &H8011043E '  Object was not found in registry
'Private Const COMADMIN_E_OBJECTNOTPOOLABLE As Long = &H8011043F '  This object is not poolable
'Private Const COMADMIN_E_APPLID_MATCHES_CLSID As Long = &H80110446 '  A CLSID with the same GUID as the new application ID is already installed on this machine
'Private Const COMADMIN_E_ROLE_DOES_NOT_EXIST As Long = &H80110447 '  A role assigned to a component, interface, or method did not exist in the application
'Private Const COMADMIN_E_START_APP_NEEDS_COMPONENTS As Long = &H80110448 '  You must have components in an application in order to start the application
'Private Const COMADMIN_E_REQUIRES_DIFFERENT_PLATFORM As Long = &H80110449 '  This operation is not enabled on this platform
'Private Const COMADMIN_E_CAN_NOT_EXPORT_APP_PROXY As Long = &H8011044A '  Application Proxy is not exportable
'Private Const COMADMIN_E_CAN_NOT_START_APP As Long = &H8011044B '  Failed to start application because it is either a library application or an application proxy
'Private Const COMADMIN_E_CAN_NOT_EXPORT_SYS_APP As Long = &H8011044C '  System application is not exportable
'Private Const COMADMIN_E_CANT_SUBSCRIBE_TO_COMPONENT As Long = &H8011044D '  Cannot subscribe to this component (the component may have been imported)
'Private Const COMADMIN_E_EVENTCLASS_CANT_BE_SUBSCRIBER As Long = &H8011044E '  An event class cannot also be a subscriber component
'Private Const COMADMIN_E_LIB_APP_PROXY_INCOMPATIBLE As Long = &H8011044F '  Library applications and application proxies are incompatible
'Private Const COMADMIN_E_BASE_PARTITION_ONLY As Long = &H80110450 '  This function is valid for the base partition only
'Private Const COMADMIN_E_START_APP_DISABLED As Long = &H80110451 '  You cannot start an application that has been disabled
'Private Const COMADMIN_E_CAT_DUPLICATE_PARTITION_NAME As Long = &H80110457 '  The specified partition name is already in use on this computer
'Private Const COMADMIN_E_CAT_INVALID_PARTITION_NAME As Long = &H80110458 '  The specified partition name is invalid. Check that the name contains at least one visible character
'Private Const COMADMIN_E_CAT_PARTITION_IN_USE As Long = &H80110459 '  The partition cannot be deleted because it is the default partition for one or more users
'Private Const COMADMIN_E_FILE_PARTITION_DUPLICATE_FILES As Long = &H8011045A '  The partition cannot be exported, because one or more components in the partition have the same file name
'Private Const COMADMIN_E_CAT_IMPORTED_COMPONENTS_NOT_ALLOWED As Long = &H8011045B '  Applications that contain one or more imported components cannot be installed into a non-base partition
'Private Const COMADMIN_E_AMBIGUOUS_APPLICATION_NAME As Long = &H8011045C '  The application name is not unique and cannot be resolved to an application id
'Private Const COMADMIN_E_AMBIGUOUS_PARTITION_NAME As Long = &H8011045D '  The partition name is not unique and cannot be resolved to a partition id
'Private Const COMADMIN_E_REGDB_NOTINITIALIZED As Long = &H80110472 '  The COM+ registry database has not been initialized
'Private Const COMADMIN_E_REGDB_NOTOPEN As Long = &H80110473 '  The COM+ registry database is not open
'Private Const COMADMIN_E_REGDB_SYSTEMERR As Long = &H80110474 '  The COM+ registry database detected a system error
'Private Const COMADMIN_E_REGDB_ALREADYRUNNING As Long = &H80110475 '  The COM+ registry database is already running
'Private Const COMADMIN_E_MIG_VERSIONNOTSUPPORTED As Long = &H80110480 '  This version of the COM+ registry database cannot be migrated
'Private Const COMADMIN_E_MIG_SCHEMANOTFOUND As Long = &H80110481 '  The schema version to be migrated could not be found in the COM+ registry database
'Private Const COMADMIN_E_CAT_BITNESSMISMATCH As Long = &H80110482 '  There was a type mismatch between binaries
'Private Const COMADMIN_E_CAT_UNACCEPTABLEBITNESS As Long = &H80110483 '  A binary of unknown or invalid type was provided
'Private Const COMADMIN_E_CAT_WRONGAPPBITNESS As Long = &H80110484 '  There was a type mismatch between a binary and an application
'Private Const COMADMIN_E_CAT_PAUSE_RESUME_NOT_SUPPORTED As Long = &H80110485 '  The application cannot be paused or resumed
'Private Const COMADMIN_E_CAT_SERVERFAULT As Long = &H80110486 '  The COM+ Catalog Server threw an exception during execution
'Private Const COMQC_E_APPLICATION_NOT_QUEUED As Long = &H80110600 '  Only COM+ Applications marked "queued" can be invoked using the "queue" moniker
'Private Const COMQC_E_NO_QUEUEABLE_INTERFACES As Long = &H80110601 '  At least one interface must be marked "queued" in order to create a queued component instance with the "queue" moniker
'Private Const COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE As Long = &H80110602 '  MSMQ is required for the requested operation and is not installed
'Private Const COMQC_E_NO_IPERSISTSTREAM As Long = &H80110603 '  Unable to marshal an interface that does not support IPersistStream
'Private Const COMQC_E_BAD_MESSAGE As Long = &H80110604 '  The message is improperly formatted or was damaged in transit
'Private Const COMQC_E_UNAUTHENTICATED As Long = &H80110605 '  An unauthenticated message was received by an application that accepts only authenticated messages
'Private Const COMQC_E_UNTRUSTED_ENQUEUER As Long = &H80110606 '  The message was requeued or moved by a user not in the "QC Trusted User" role
'Private Const MSDTC_E_DUPLICATE_RESOURCE As Long = &H80110701 '  Cannot create a duplicate resource of type Distributed Transaction Coordinator
'Private Const COMADMIN_E_OBJECT_PARENT_MISSING As Long = &H80110808 '  One of the objects being inserted or updated does not belong to a valid parent collection
'Private Const COMADMIN_E_OBJECT_DOES_NOT_EXIST As Long = &H80110809 '  One of the specified objects cannot be found
'Private Const COMADMIN_E_APP_NOT_RUNNING As Long = &H8011080A '  The specified application is not currently running
'Private Const COMADMIN_E_INVALID_PARTITION As Long = &H8011080B '  The partition(s) specified are not valid.
'Private Const COMADMIN_E_SVCAPP_NOT_POOLABLE_OR_RECYCLABLE As Long = &H8011080D '  COM+ applications that run as NT service may not be pooled or recycled
'Private Const COMADMIN_E_USER_IN_SET As Long = &H8011080E '  One or more users are already assigned to a local partition set.
'Private Const COMADMIN_E_CANTRECYCLELIBRARYAPPS As Long = &H8011080F '  Library applications may not be recycled.
'Private Const COMADMIN_E_CANTRECYCLESERVICEAPPS As Long = &H80110811 '  Applications running as NT services may not be recycled.
'Private Const COMADMIN_E_PROCESSALREADYRECYCLED As Long = &H80110812 '  The process has already been recycled.
'Private Const COMADMIN_E_PAUSEDPROCESSMAYNOTBERECYCLED As Long = &H80110813 '  A paused process may not be recycled.
'Private Const COMADMIN_E_CANTMAKEINPROCSERVICE As Long = &H80110814 '  Library applications may not be NT services.
'Private Const COMADMIN_E_PROGIDINUSEBYCLSID As Long = &H80110815 '  The ProgID provided to the copy operation is invalid. The ProgID is in use by another registered CLSID.
'Private Const COMADMIN_E_DEFAULT_PARTITION_NOT_IN_SET As Long = &H80110816 '  The partition specified as default is not a member of the partition set.
'Private Const COMADMIN_E_RECYCLEDPROCESSMAYNOTBEPAUSED As Long = &H80110817 '  A recycled process may not be paused.
'Private Const COMADMIN_E_PARTITION_ACCESSDENIED As Long = &H80110818 '  Access to the specified partition is denied.
'Private Const COMADMIN_E_PARTITION_MSI_ONLY As Long = &H80110819 '  Only Application Files (*.MSI files) can be installed into partitions.
'Private Const COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_1_0_FORMAT As Long = &H8011081A '  Applications containing one or more legacy components may not be exported to 1.0 format.
'Private Const COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_NONBASE_PARTITIONS As Long = &H8011081B '  Legacy components may not exist in non-base partitions.
'Private Const COMADMIN_E_COMP_MOVE_SOURCE As Long = &H8011081C '  A component cannot be moved (or copied) from the System Application, an application proxy or a non-changeable application
'Private Const COMADMIN_E_COMP_MOVE_DEST As Long = &H8011081D '  A component cannot be moved (or copied) to the System Application, an application proxy or a non-changeable application
'Private Const COMADMIN_E_COMP_MOVE_PRIVATE As Long = &H8011081E '  A private component cannot be moved (or copied) to a library application or to the base partition
'Private Const COMADMIN_E_BASEPARTITION_REQUIRED_IN_SET As Long = &H8011081F '  The Base Application Partition exists in all partition sets and cannot be removed.
'Private Const COMADMIN_E_CANNOT_ALIAS_EVENTCLASS As Long = &H80110820 '  Alas, Event Class components cannot be aliased.
'Private Const COMADMIN_E_PRIVATE_ACCESSDENIED As Long = &H80110821 '  Access is denied because the component is private.
'Private Const COMADMIN_E_SAFERINVALID As Long = &H80110822 '  The specified SAFER level is invalid.
'Private Const COMADMIN_E_REGISTRY_ACCESSDENIED As Long = &H80110823 '  The specified user cannot write to the system registry
'Private Const COMADMIN_E_PARTITIONS_DISABLED As Long = &H80110824 '  COM+ partitions are currently disabled.
'Private Const WER_S_REPORT_DEBUG As Long = &H1B0000  '  Debugger was attached.
'Private Const WER_S_REPORT_UPLOADED As Long = &H1B0001  '  Report was uploaded.
'Private Const WER_S_REPORT_QUEUED As Long = &H1B0002  '  Report was queued.
'Private Const WER_S_DISABLED As Long = &H1B0003  '  Reporting was disabled.
'Private Const WER_S_SUSPENDED_UPLOAD As Long = &H1B0004  '  Reporting was temporarily suspended.
'Private Const WER_S_DISABLED_QUEUE As Long = &H1B0005  '  Report was not queued to queueing being disabled.
'Private Const WER_S_DISABLED_ARCHIVE As Long = &H1B0006  '  Report was uploaded, but not archived due to archiving being disabled.
'Private Const WER_S_REPORT_ASYNC As Long = &H1B0007  '  Reporting was successfully spun off as an asynchronous operation.
'Private Const WER_S_IGNORE_ASSERT_INSTANCE As Long = &H1B0008  '  The assertion was handled.
'Private Const WER_S_IGNORE_ALL_ASSERTS As Long = &H1B0009  '  The assertion was handled and added to a permanent ignore list.
'Private Const WER_S_ASSERT_CONTINUE As Long = &H1B000A  '  The assertion was resumed as unhandled.
'Private Const WER_S_THROTTLED As Long = &H1B000B  '  Report was throttled.
'Private Const WER_E_CRASH_FAILURE As Long = &H801B8000 '  Crash reporting failed.
'Private Const WER_E_CANCELED As Long = &H801B8001 '  Report aborted due to user cancelation.
'Private Const WER_E_NETWORK_FAILURE As Long = &H801B8002 '  Report aborted due to network failure.
'Private Const WER_E_NOT_INITIALIZED As Long = &H801B8003 '  Report not initialized.
'Private Const WER_E_ALREADY_REPORTING As Long = &H801B8004 '  Reporting is already in progress for the specified process.
'Private Const WER_E_DUMP_THROTTLED As Long = &H801B8005 '  Dump not generated due to a throttle.
'Private Const ERROR_FLT_IO_COMPLETE As Long = &H1F0001  '  The IO was completed by a filter.
'Private Const ERROR_FLT_NO_HANDLER_DEFINED As Long = &H801F0001 '  A handler was not defined by the filter for this operation.
'Private Const ERROR_FLT_CONTEXT_ALREADY_DEFINED As Long = &H801F0002 '  A context is already defined for this object.
'Private Const ERROR_FLT_INVALID_ASYNCHRONOUS_REQUEST As Long = &H801F0003 '  Asynchronous requests are not valid for this operation.
'Private Const ERROR_FLT_DISALLOW_FAST_IO As Long = &H801F0004 '  Disallow the Fast IO path for this operation.
'Private Const ERROR_FLT_INVALID_NAME_REQUEST As Long = &H801F0005 '  An invalid name request was made. The name requested cannot be retrieved at this time.
'Private Const ERROR_FLT_NOT_SAFE_TO_POST_OPERATION As Long = &H801F0006 '  Posting this operation to a worker thread for further processing is not safe at this time because it could lead to a system deadlock.
'Private Const ERROR_FLT_NOT_INITIALIZED As Long = &H801F0007 '  The Filter Manager was not initialized when a filter tried to register. Make sure that the Filter Manager is getting loaded as a driver.
'Private Const ERROR_FLT_FILTER_NOT_READY As Long = &H801F0008 '  The filter is not ready for attachment to volumes because it has not finished initializing (FltStartFiltering has not been called).
'Private Const ERROR_FLT_POST_OPERATION_CLEANUP As Long = &H801F0009 '  The filter must cleanup any operation specific context at this time because it is being removed from the system before the operation is completed by the lower drivers.
'Private Const ERROR_FLT_INTERNAL_ERROR As Long = &H801F000A '  The Filter Manager had an internal error from which it cannot recover, therefore the operation has been failed. This is usually the result of a filter returning an invalid value from a pre-operation callback.
'Private Const ERROR_FLT_DELETING_OBJECT As Long = &H801F000B '  The object specified for this action is in the process of being deleted, therefore the action requested cannot be completed at this time.
'Private Const ERROR_FLT_MUST_BE_NONPAGED_POOL As Long = &H801F000C '  Non-paged pool must be used for this type of context.
'Private Const ERROR_FLT_DUPLICATE_ENTRY As Long = &H801F000D '  A duplicate handler definition has been provided for an operation.
'Private Const ERROR_FLT_CBDQ_DISABLED As Long = &H801F000E '  The callback data queue has been disabled.
'Private Const ERROR_FLT_DO_NOT_ATTACH As Long = &H801F000F '  Do not attach the filter to the volume at this time.
'Private Const ERROR_FLT_DO_NOT_DETACH As Long = &H801F0010 '  Do not detach the filter from the volume at this time.
'Private Const ERROR_FLT_INSTANCE_ALTITUDE_COLLISION As Long = &H801F0011 '  An instance already exists at this altitude on the volume specified.
'Private Const ERROR_FLT_INSTANCE_NAME_COLLISION As Long = &H801F0012 '  An instance already exists with this name on the volume specified.
'Private Const ERROR_FLT_FILTER_NOT_FOUND As Long = &H801F0013 '  The system could not find the filter specified.
'Private Const ERROR_FLT_VOLUME_NOT_FOUND As Long = &H801F0014 '  The system could not find the volume specified.
'Private Const ERROR_FLT_INSTANCE_NOT_FOUND As Long = &H801F0015 '  The system could not find the instance specified.
'Private Const ERROR_FLT_CONTEXT_ALLOCATION_NOT_FOUND As Long = &H801F0016 '  No registered context allocation definition was found for the given request.
'Private Const ERROR_FLT_INVALID_CONTEXT_REGISTRATION As Long = &H801F0017 '  An invalid parameter was specified during context registration.
'Private Const ERROR_FLT_NAME_CACHE_MISS As Long = &H801F0018 '  The name requested was not found in Filter Manager's name cache and could not be retrieved from the file system.
'Private Const ERROR_FLT_NO_DEVICE_OBJECT As Long = &H801F0019 '  The requested device object does not exist for the given volume.
'Private Const ERROR_FLT_VOLUME_ALREADY_MOUNTED As Long = &H801F001A '  The specified volume is already mounted.
'Private Const ERROR_FLT_ALREADY_ENLISTED As Long = &H801F001B '  The specified Transaction Context is already enlisted in a transaction
'Private Const ERROR_FLT_CONTEXT_ALREADY_LINKED As Long = &H801F001C '  The specifiec context is already attached to another object
'Private Const ERROR_FLT_NO_WAITER_FOR_REPLY As Long = &H801F0020 '  No waiter is present for the filter's reply to this message.
'Private Const ERROR_FLT_REGISTRATION_BUSY As Long = &H801F0023 '  The filesystem database resource is in use. Registration cannot complete at this time.
'Private Const ERROR_HUNG_DISPLAY_DRIVER_THREAD As Long = &H80260001 '  {Display Driver Stopped Responding}The %hs display driver has stopped working normally. Save your work and reboot the system to restore full display functionality.The next time you reboot the machine a dialog will be displayed giving you a chance to report this failure to Microsoft.
'Private Const DWM_E_COMPOSITIONDISABLED As Long = &H80263001 '  {Desktop composition is disabled}The operation could not be completed because desktop composition is disabled.
'Private Const DWM_E_REMOTING_NOT_SUPPORTED As Long = &H80263002 '  {Some desktop composition APIs are not supported while remoting}The operation is not supported while running in a remote session.
'Private Const DWM_E_NO_REDIRECTION_SURFACE_AVAILABLE As Long = &H80263003 '  {No DWM redirection surface is available}The DWM was unable to provide a redireciton surface to complete the DirectX present.
'Private Const DWM_E_NOT_QUEUING_PRESENTS As Long = &H80263004 '  {DWM is not queuing presents for the specified window}The window specified is not currently using queued presents.
'Private Const DWM_E_ADAPTER_NOT_FOUND As Long = &H80263005 '  {The adapter specified by the LUID is not found}DWM can not find the adapter specified by the LUID.
'Private Const DWM_S_GDI_REDIRECTION_SURFACE As Long = &H263005  '  {GDI redirection surface was returned}GDI redirection surface of the top level window was returned.
'Private Const DWM_E_TEXTURE_TOO_LARGE As Long = &H80263007 '  {Redirection surface can not be created.  The size of the surface is larger than what is supported on this machine}Redirection surface can not be created.  The size of the surface is larger than what is supported on this machine.
'Private Const ERROR_MONITOR_NO_DESCRIPTOR As Long = &H80261001 '  Monitor descriptor could not be obtained.
'Private Const ERROR_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT As Long = &H80261002 '  Format of the obtained monitor descriptor is not supported by this release.
'Private Const ERROR_MONITOR_INVALID_DESCRIPTOR_CHECKSUM As Long = &HC0261003 '  Checksum of the obtained monitor descriptor is invalid.
'Private Const ERROR_MONITOR_INVALID_STANDARD_TIMING_BLOCK As Long = &HC0261004 '  Monitor descriptor contains an invalid standard timing block.
'Private Const ERROR_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED As Long = &HC0261005 '  WMI data block registration failed for one of the MSMonitorClass WMI subclasses.
'Private Const ERROR_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK As Long = &HC0261006 '  Provided monitor descriptor block is either corrupted or does not contain monitor's detailed serial number.
'Private Const ERROR_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK As Long = &HC0261007 '  Provided monitor descriptor block is either corrupted or does not contain monitor's user friendly name.
'Private Const ERROR_MONITOR_NO_MORE_DESCRIPTOR_DATA As Long = &HC0261008 '  There is no monitor descriptor data at the specified (offset, size) region.
'Private Const ERROR_MONITOR_INVALID_DETAILED_TIMING_BLOCK As Long = &HC0261009 '  Monitor descriptor contains an invalid detailed timing block.
'Private Const ERROR_MONITOR_INVALID_MANUFACTURE_DATE As Long = &HC026100A '  Monitor descriptor contains invalid manufacture date.
'Private Const ERROR_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER As Long = &HC0262000 '  Exclusive mode ownership is needed to create unmanaged primary allocation.
'Private Const ERROR_GRAPHICS_INSUFFICIENT_DMA_BUFFER As Long = &HC0262001 '  The driver needs more DMA buffer space in order to complete the requested operation.
'Private Const ERROR_GRAPHICS_INVALID_DISPLAY_ADAPTER As Long = &HC0262002 '  Specified display adapter handle is invalid.
'Private Const ERROR_GRAPHICS_ADAPTER_WAS_RESET As Long = &HC0262003 '  Specified display adapter and all of its state has been reset.
'Private Const ERROR_GRAPHICS_INVALID_DRIVER_MODEL As Long = &HC0262004 '  The driver stack doesn't match the expected driver model.
'Private Const ERROR_GRAPHICS_PRESENT_MODE_CHANGED As Long = &HC0262005 '  Present happened but ended up into the changed desktop mode
'Private Const ERROR_GRAPHICS_PRESENT_OCCLUDED As Long = &HC0262006 '  Nothing to present due to desktop occlusion
'Private Const ERROR_GRAPHICS_PRESENT_DENIED As Long = &HC0262007 '  Not able to present due to denial of desktop access
'Private Const ERROR_GRAPHICS_CANNOTCOLORCONVERT As Long = &HC0262008 '  Not able to present with color convertion
'Private Const ERROR_GRAPHICS_DRIVER_MISMATCH As Long = &HC0262009 '  The kernel driver detected a version mismatch between it and the user mode driver.
'Private Const ERROR_GRAPHICS_PARTIAL_DATA_POPULATED As Long = &H4026200A '  Specified buffer is not big enough to contain entire requested dataset. Partial data populated up to the size of the buffer. Caller needs to provide buffer of size as specified in the partially populated buffer's content (interface specific).
'Private Const ERROR_GRAPHICS_PRESENT_REDIRECTION_DISABLED As Long = &HC026200B '  Present redirection is disabled (desktop windowing management subsystem is off).
'Private Const ERROR_GRAPHICS_PRESENT_UNOCCLUDED As Long = &HC026200C '  Previous exclusive VidPn source owner has released its ownership
'Private Const ERROR_GRAPHICS_WINDOWDC_NOT_AVAILABLE As Long = &HC026200D '  Window DC is not available for presentation
'Private Const ERROR_GRAPHICS_WINDOWLESS_PRESENT_DISABLED As Long = &HC026200E '  Windowless present is disabled (desktop windowing management subsystem is off).
'Private Const ERROR_GRAPHICS_NO_VIDEO_MEMORY As Long = &HC0262100 '  Not enough video memory available to complete the operation.
'Private Const ERROR_GRAPHICS_CANT_LOCK_MEMORY As Long = &HC0262101 '  Couldn't probe and lock the underlying memory of an allocation.
'Private Const ERROR_GRAPHICS_ALLOCATION_BUSY As Long = &HC0262102 '  The allocation is currently busy.
'Private Const ERROR_GRAPHICS_TOO_MANY_REFERENCES As Long = &HC0262103 '  An object being referenced has reach the maximum reference count already and can't be reference further.
'Private Const ERROR_GRAPHICS_TRY_AGAIN_LATER As Long = &HC0262104 '  A problem couldn't be solved due to some currently existing condition. The problem should be tried again later.
'Private Const ERROR_GRAPHICS_TRY_AGAIN_NOW As Long = &HC0262105 '  A problem couldn't be solved due to some currently existing condition. The problem should be tried again immediately.
'Private Const ERROR_GRAPHICS_ALLOCATION_INVALID As Long = &HC0262106 '  The allocation is invalid.
'Private Const ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE As Long = &HC0262107 '  No more unswizzling aperture are currently available.
'Private Const ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED As Long = &HC0262108 '  The current allocation can't be unswizzled by an aperture.
'Private Const ERROR_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION As Long = &HC0262109 '  The request failed because a pinned allocation can't be evicted.
'Private Const ERROR_GRAPHICS_INVALID_ALLOCATION_USAGE As Long = &HC0262110 '  The allocation can't be used from its current segment location for the specified operation.
'Private Const ERROR_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION As Long = &HC0262111 '  A locked allocation can't be used in the current command buffer.
'Private Const ERROR_GRAPHICS_ALLOCATION_CLOSED As Long = &HC0262112 '  The allocation being referenced has been closed permanently.
'Private Const ERROR_GRAPHICS_INVALID_ALLOCATION_INSTANCE As Long = &HC0262113 '  An invalid allocation instance is being referenced.
'Private Const ERROR_GRAPHICS_INVALID_ALLOCATION_HANDLE As Long = &HC0262114 '  An invalid allocation handle is being referenced.
'Private Const ERROR_GRAPHICS_WRONG_ALLOCATION_DEVICE As Long = &HC0262115 '  The allocation being referenced doesn't belong to the current device.
'Private Const ERROR_GRAPHICS_ALLOCATION_CONTENT_LOST As Long = &HC0262116 '  The specified allocation lost its content.
'Private Const ERROR_GRAPHICS_GPU_EXCEPTION_ON_DEVICE As Long = &HC0262200 '  GPU exception is detected on the given device. The device is not able to be scheduled.
'Private Const ERROR_GRAPHICS_SKIP_ALLOCATION_PREPARATION As Long = &H40262201 '  Skip preparation of allocations referenced by the DMA buffer.
'Private Const ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY As Long = &HC0262300 '  Specified VidPN topology is invalid.
'Private Const ERROR_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED As Long = &HC0262301 '  Specified VidPN topology is valid but is not supported by this model of the display adapter.
'Private Const ERROR_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED As Long = &HC0262302 '  Specified VidPN topology is valid but is not supported by the display adapter at this time, due to current allocation of its resources.
'Private Const ERROR_GRAPHICS_INVALID_VIDPN As Long = &HC0262303 '  Specified VidPN handle is invalid.
'Private Const ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE As Long = &HC0262304 '  Specified video present source is invalid.
'Private Const ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET As Long = &HC0262305 '  Specified video present target is invalid.
'Private Const ERROR_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED As Long = &HC0262306 '  Specified VidPN modality is not supported (e.g. at least two of the pinned modes are not cofunctional).
'Private Const ERROR_GRAPHICS_MODE_NOT_PINNED As Long = &H262307  '  No mode is pinned on the specified VidPN source/target.
'Private Const ERROR_GRAPHICS_INVALID_VIDPN_SOURCEMODESET As Long = &HC0262308 '  Specified VidPN source mode set is invalid.
'Private Const ERROR_GRAPHICS_INVALID_VIDPN_TARGETMODESET As Long = &HC0262309 '  Specified VidPN target mode set is invalid.
'Private Const ERROR_GRAPHICS_INVALID_FREQUENCY As Long = &HC026230A '  Specified video signal frequency is invalid.
'Private Const ERROR_GRAPHICS_INVALID_ACTIVE_REGION As Long = &HC026230B '  Specified video signal active region is invalid.
'Private Const ERROR_GRAPHICS_INVALID_TOTAL_REGION As Long = &HC026230C '  Specified video signal total region is invalid.
'Private Const ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE As Long = &HC0262310 '  Specified video present source mode is invalid.
'Private Const ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE As Long = &HC0262311 '  Specified video present target mode is invalid.
'Private Const ERROR_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET As Long = &HC0262312 '  Pinned mode must remain in the set on VidPN's cofunctional modality enumeration.
'Private Const ERROR_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY As Long = &HC0262313 '  Specified video present path is already in VidPN's topology.
'Private Const ERROR_GRAPHICS_MODE_ALREADY_IN_MODESET As Long = &HC0262314 '  Specified mode is already in the mode set.
'Private Const ERROR_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET As Long = &HC0262315 '  Specified video present source set is invalid.
'Private Const ERROR_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET As Long = &HC0262316 '  Specified video present target set is invalid.
'Private Const ERROR_GRAPHICS_SOURCE_ALREADY_IN_SET As Long = &HC0262317 '  Specified video present source is already in the video present source set.
'Private Const ERROR_GRAPHICS_TARGET_ALREADY_IN_SET As Long = &HC0262318 '  Specified video present target is already in the video present target set.
'Private Const ERROR_GRAPHICS_INVALID_VIDPN_PRESENT_PATH As Long = &HC0262319 '  Specified VidPN present path is invalid.
'Private Const ERROR_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY As Long = &HC026231A '  Miniport has no recommendation for augmentation of the specified VidPN's topology.
'Private Const ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET As Long = &HC026231B '  Specified monitor frequency range set is invalid.
'Private Const ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE As Long = &HC026231C '  Specified monitor frequency range is invalid.
'Private Const ERROR_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET As Long = &HC026231D '  Specified frequency range is not in the specified monitor frequency range set.
'Private Const ERROR_GRAPHICS_NO_PREFERRED_MODE As Long = &H26231E  '  Specified mode set does not specify preference for one of its modes.
'Private Const ERROR_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET As Long = &HC026231F '  Specified frequency range is already in the specified monitor frequency range set.
'Private Const ERROR_GRAPHICS_STALE_MODESET As Long = &HC0262320 '  Specified mode set is stale. Please reacquire the new mode set.
'Private Const ERROR_GRAPHICS_INVALID_MONITOR_SOURCEMODESET As Long = &HC0262321 '  Specified monitor source mode set is invalid.
'Private Const ERROR_GRAPHICS_INVALID_MONITOR_SOURCE_MODE As Long = &HC0262322 '  Specified monitor source mode is invalid.
'Private Const ERROR_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN As Long = &HC0262323 '  Miniport does not have any recommendation regarding the request to provide a functional VidPN given the current display adapter configuration.
'Private Const ERROR_GRAPHICS_MODE_ID_MUST_BE_UNIQUE As Long = &HC0262324 '  ID of the specified mode is already used by another mode in the set.
'Private Const ERROR_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION As Long = &HC0262325 '  System failed to determine a mode that is supported by both the display adapter and the monitor connected to it.
'Private Const ERROR_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES As Long = &HC0262326 '  Number of video present targets must be greater than or equal to the number of video present sources.
'Private Const ERROR_GRAPHICS_PATH_NOT_IN_TOPOLOGY As Long = &HC0262327 '  Specified present path is not in VidPN's topology.
'Private Const ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE As Long = &HC0262328 '  Display adapter must have at least one video present source.
'Private Const ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET As Long = &HC0262329 '  Display adapter must have at least one video present target.
'Private Const ERROR_GRAPHICS_INVALID_MONITORDESCRIPTORSET As Long = &HC026232A '  Specified monitor descriptor set is invalid.
'Private Const ERROR_GRAPHICS_INVALID_MONITORDESCRIPTOR As Long = &HC026232B '  Specified monitor descriptor is invalid.
'Private Const ERROR_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET As Long = &HC026232C '  Specified descriptor is not in the specified monitor descriptor set.
'Private Const ERROR_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET As Long = &HC026232D '  Specified descriptor is already in the specified monitor descriptor set.
'Private Const ERROR_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE As Long = &HC026232E '  ID of the specified monitor descriptor is already used by another descriptor in the set.
'Private Const ERROR_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE As Long = &HC026232F '  Specified video present target subset type is invalid.
'Private Const ERROR_GRAPHICS_RESOURCES_NOT_RELATED As Long = &HC0262330 '  Two or more of the specified resources are not related to each other, as defined by the interface semantics.
'Private Const ERROR_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE As Long = &HC0262331 '  ID of the specified video present source is already used by another source in the set.
'Private Const ERROR_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE As Long = &HC0262332 '  ID of the specified video present target is already used by another target in the set.
'Private Const ERROR_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET As Long = &HC0262333 '  Specified VidPN source cannot be used because there is no available VidPN target to connect it to.
'Private Const ERROR_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER As Long = &HC0262334 '  Newly arrived monitor could not be associated with a display adapter.
'Private Const ERROR_GRAPHICS_NO_VIDPNMGR As Long = &HC0262335 '  Display adapter in question does not have an associated VidPN manager.
'Private Const ERROR_GRAPHICS_NO_ACTIVE_VIDPN As Long = &HC0262336 '  VidPN manager of the display adapter in question does not have an active VidPN.
'Private Const ERROR_GRAPHICS_STALE_VIDPN_TOPOLOGY As Long = &HC0262337 '  Specified VidPN topology is stale. Please reacquire the new topology.
'Private Const ERROR_GRAPHICS_MONITOR_NOT_CONNECTED As Long = &HC0262338 '  There is no monitor connected on the specified video present target.
'Private Const ERROR_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY As Long = &HC0262339 '  Specified source is not part of the specified VidPN's topology.
'Private Const ERROR_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE As Long = &HC026233A '  Specified primary surface size is invalid.
'Private Const ERROR_GRAPHICS_INVALID_VISIBLEREGION_SIZE As Long = &HC026233B '  Specified visible region size is invalid.
'Private Const ERROR_GRAPHICS_INVALID_STRIDE As Long = &HC026233C '  Specified stride is invalid.
'Private Const ERROR_GRAPHICS_INVALID_PIXELFORMAT As Long = &HC026233D '  Specified pixel format is invalid.
'Private Const ERROR_GRAPHICS_INVALID_COLORBASIS As Long = &HC026233E '  Specified color basis is invalid.
'Private Const ERROR_GRAPHICS_INVALID_PIXELVALUEACCESSMODE As Long = &HC026233F '  Specified pixel value access mode is invalid.
'Private Const ERROR_GRAPHICS_TARGET_NOT_IN_TOPOLOGY As Long = &HC0262340 '  Specified target is not part of the specified VidPN's topology.
'Private Const ERROR_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT As Long = &HC0262341 '  Failed to acquire display mode management interface.
'Private Const ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE As Long = &HC0262342 '  Specified VidPN source is already owned by a DMM client and cannot be used until that client releases it.
'Private Const ERROR_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN As Long = &HC0262343 '  Specified VidPN is active and cannot be accessed.
'Private Const ERROR_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL As Long = &HC0262344 '  Specified VidPN present path importance ordinal is invalid.
'Private Const ERROR_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION As Long = &HC0262345 '  Specified VidPN present path content geometry transformation is invalid.
'Private Const ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED As Long = &HC0262346 '  Specified content geometry transformation is not supported on the respective VidPN present path.
'Private Const ERROR_GRAPHICS_INVALID_GAMMA_RAMP As Long = &HC0262347 '  Specified gamma ramp is invalid.
'Private Const ERROR_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED As Long = &HC0262348 '  Specified gamma ramp is not supported on the respective VidPN present path.
'Private Const ERROR_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED As Long = &HC0262349 '  Multi-sampling is not supported on the respective VidPN present path.
'Private Const ERROR_GRAPHICS_MODE_NOT_IN_MODESET As Long = &HC026234A '  Specified mode is not in the specified mode set.
'Private Const ERROR_GRAPHICS_DATASET_IS_EMPTY As Long = &H26234B  '  Specified data set (e.g. mode set, frequency range set, descriptor set, topology, etc.) is empty.
'Private Const ERROR_GRAPHICS_NO_MORE_ELEMENTS_IN_DATASET As Long = &H26234C  '  Specified data set (e.g. mode set, frequency range set, descriptor set, topology, etc.) does not contain any more elements.
'Private Const ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON As Long = &HC026234D '  Specified VidPN topology recommendation reason is invalid.
'Private Const ERROR_GRAPHICS_INVALID_PATH_CONTENT_TYPE As Long = &HC026234E '  Specified VidPN present path content type is invalid.
'Private Const ERROR_GRAPHICS_INVALID_COPYPROTECTION_TYPE As Long = &HC026234F '  Specified VidPN present path copy protection type is invalid.
'Private Const ERROR_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS As Long = &HC0262350 '  No more than one unassigned mode set can exist at any given time for a given VidPN source/target.
'Private Const ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_PINNED As Long = &H262351  '  Specified content transformation is not pinned on the specified VidPN present path.
'Private Const ERROR_GRAPHICS_INVALID_SCANLINE_ORDERING As Long = &HC0262352 '  Specified scanline ordering type is invalid.
'Private Const ERROR_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED As Long = &HC0262353 '  Topology changes are not allowed for the specified VidPN.
'Private Const ERROR_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS As Long = &HC0262354 '  All available importance ordinals are already used in specified topology.
'Private Const ERROR_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT As Long = &HC0262355 '  Specified primary surface has a different private format attribute than the current primary surface
'Private Const ERROR_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM As Long = &HC0262356 '  Specified mode pruning algorithm is invalid
'Private Const ERROR_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN As Long = &HC0262357 '  Specified monitor capability origin is invalid.
'Private Const ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT As Long = &HC0262358 '  Specified monitor frequency range constraint is invalid.
'Private Const ERROR_GRAPHICS_MAX_NUM_PATHS_REACHED As Long = &HC0262359 '  Maximum supported number of present paths has been reached.
'Private Const ERROR_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION As Long = &HC026235A '  Miniport requested that augmentation be cancelled for the specified source of the specified VidPN's topology.
'Private Const ERROR_GRAPHICS_INVALID_CLIENT_TYPE As Long = &HC026235B '  Specified client type was not recognized.
'Private Const ERROR_GRAPHICS_CLIENTVIDPN_NOT_SET As Long = &HC026235C '  Client VidPN is not set on this adapter (e.g. no user mode initiated mode changes took place on this adapter yet).
'Private Const ERROR_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED As Long = &HC0262400 '  Specified display adapter child device already has an external device connected to it.
'Private Const ERROR_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED As Long = &HC0262401 '  Specified display adapter child device does not support descriptor exposure.
'Private Const ERROR_GRAPHICS_UNKNOWN_CHILD_STATUS As Long = &H4026242F '  Child device presence was not reliably detected.
'Private Const ERROR_GRAPHICS_NOT_A_LINKED_ADAPTER As Long = &HC0262430 '  The display adapter is not linked to any other adapters.
'Private Const ERROR_GRAPHICS_LEADLINK_NOT_ENUMERATED As Long = &HC0262431 '  Lead adapter in a linked configuration was not enumerated yet.
'Private Const ERROR_GRAPHICS_CHAINLINKS_NOT_ENUMERATED As Long = &HC0262432 '  Some chain adapters in a linked configuration were not enumerated yet.
'Private Const ERROR_GRAPHICS_ADAPTER_CHAIN_NOT_READY As Long = &HC0262433 '  The chain of linked adapters is not ready to start because of an unknown failure.
'Private Const ERROR_GRAPHICS_CHAINLINKS_NOT_STARTED As Long = &HC0262434 '  An attempt was made to start a lead link display adapter when the chain links were not started yet.
'Private Const ERROR_GRAPHICS_CHAINLINKS_NOT_POWERED_ON As Long = &HC0262435 '  An attempt was made to power up a lead link display adapter when the chain links were powered down.
'Private Const ERROR_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE As Long = &HC0262436 '  The adapter link was found to be in an inconsistent state. Not all adapters are in an expected PNP/Power state.
'Private Const ERROR_GRAPHICS_LEADLINK_START_DEFERRED As Long = &H40262437 '  Starting the leadlink adapter has been deferred temporarily.
'Private Const ERROR_GRAPHICS_NOT_POST_DEVICE_DRIVER As Long = &HC0262438 '  The driver trying to start is not the same as the driver for the POSTed display adapter.
'Private Const ERROR_GRAPHICS_POLLING_TOO_FREQUENTLY As Long = &H40262439 '  The display adapter is being polled for children too frequently at the same polling level.
'Private Const ERROR_GRAPHICS_START_DEFERRED As Long = &H4026243A '  Starting the adapter has been deferred temporarily.
'Private Const ERROR_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED As Long = &HC026243B '  An operation is being attempted that requires the display adapter to be in a quiescent state.
'Private Const ERROR_GRAPHICS_OPM_NOT_SUPPORTED As Long = &HC0262500 '  The driver does not support OPM.
'Private Const ERROR_GRAPHICS_COPP_NOT_SUPPORTED As Long = &HC0262501 '  The driver does not support COPP.
'Private Const ERROR_GRAPHICS_UAB_NOT_SUPPORTED As Long = &HC0262502 '  The driver does not support UAB.
'Private Const ERROR_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS As Long = &HC0262503 '  The specified encrypted parameters are invalid.
'Private Const ERROR_GRAPHICS_OPM_NO_VIDEO_OUTPUTS_EXIST As Long = &HC0262505 '  The GDI display device passed to this function does not have any active video outputs.
'Private Const ERROR_GRAPHICS_OPM_INTERNAL_ERROR As Long = &HC026250B '  An internal error caused this operation to fail.
'Private Const ERROR_GRAPHICS_OPM_INVALID_HANDLE As Long = &HC026250C '  The function failed because the caller passed in an invalid OPM user mode handle.
'Private Const ERROR_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH As Long = &HC026250E '  A certificate could not be returned because the certificate buffer passed to the function was too small.
'Private Const ERROR_GRAPHICS_OPM_SPANNING_MODE_ENABLED As Long = &HC026250F '  A video output could not be created because the frame buffer is in spanning mode.
'Private Const ERROR_GRAPHICS_OPM_THEATER_MODE_ENABLED As Long = &HC0262510 '  A video output could not be created because the frame buffer is in theater mode.
'Private Const ERROR_GRAPHICS_PVP_HFS_FAILED As Long = &HC0262511 '  The function failed because the display adapter's Hardware Functionality Scan failed to validate the graphics hardware.
'Private Const ERROR_GRAPHICS_OPM_INVALID_SRM As Long = &HC0262512 '  The HDCP System Renewability Message passed to this function did not comply with section 5 of the HDCP 1.1 specification.
'Private Const ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP As Long = &HC0262513 '  The video output cannot enable the High-bandwidth Digital Content Protection (HDCP) System because it does not support HDCP.
'Private Const ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP As Long = &HC0262514 '  The video output cannot enable Analogue Copy Protection (ACP) because it does not support ACP.
'Private Const ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA As Long = &HC0262515 '  The video output cannot enable the Content Generation Management System Analogue (CGMS-A) protection technology because it does not support CGMS-A.
'Private Const ERROR_GRAPHICS_OPM_HDCP_SRM_NEVER_SET As Long = &HC0262516 '  The IOPMVideoOutput::GetInformation method cannot return the version of the SRM being used because the application never successfully passed an SRM to the video output.
'Private Const ERROR_GRAPHICS_OPM_RESOLUTION_TOO_HIGH As Long = &HC0262517 '  The IOPMVideoOutput::Configure method cannot enable the specified output protection technology because the output's screen resolution is too high.
'Private Const ERROR_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE As Long = &HC0262518 '  The IOPMVideoOutput::Configure method cannot enable HDCP because the display adapter's HDCP hardware is already being used by other physical outputs.
'Private Const ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_NO_LONGER_EXISTS As Long = &HC026251A '  The operating system asynchronously destroyed this OPM video output because the operating system's state changed. This error typically occurs because the monitor PDO associated with this video output was removed, the monitor PDO associated with this video output was stopped, the video output's session became a non-console session or the video output's desktop became an inactive desktop.
'Private Const ERROR_GRAPHICS_OPM_SESSION_TYPE_CHANGE_IN_PROGRESS As Long = &HC026251B '  The method failed because the session is changing its type. No IOPMVideoOutput methods can be called when a session is changing its type. There are currently three types of sessions: console, disconnected and remote.
'Private Const ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS As Long = &HC026251C '  Either the IOPMVideoOutput::COPPCompatibleGetInformation, IOPMVideoOutput::GetInformation, or IOPMVideoOutput::Configure method failed. This error is returned when the caller tries to use a COPP specific command while the video output has OPM semantics only.
'Private Const ERROR_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST As Long = &HC026251D '  The IOPMVideoOutput::GetInformation and IOPMVideoOutput::COPPCompatibleGetInformation methods return this error if the passed in sequence number is not the expected sequence number or the passed in OMAC value is invalid.
'Private Const ERROR_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR As Long = &HC026251E '  The method failed because an unexpected error occurred inside of a display driver.
'Private Const ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS As Long = &HC026251F '  Either the IOPMVideoOutput::COPPCompatibleGetInformation, IOPMVideoOutput::GetInformation, or IOPMVideoOutput::Configure method failed. This error is returned when the caller tries to use an OPM specific command while the video output has COPP semantics only.
'Private Const ERROR_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED As Long = &HC0262520 '  The IOPMVideoOutput::COPPCompatibleGetInformation or IOPMVideoOutput::Configure method failed because the display driver does not support the OPM_GET_ACP_AND_CGMSA_SIGNALING and OPM_SET_ACP_AND_CGMSA_SIGNALING GUIDs.
'Private Const ERROR_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST As Long = &HC0262521 '  The IOPMVideoOutput::Configure function returns this error code if the passed in sequence number is not the expected sequence number or the passed in OMAC value is invalid.
'Private Const ERROR_GRAPHICS_I2C_NOT_SUPPORTED As Long = &HC0262580 '  The monitor connected to the specified video output does not have an I2C bus.
'Private Const ERROR_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST As Long = &HC0262581 '  No device on the I2C bus has the specified address.
'Private Const ERROR_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA As Long = &HC0262582 '  An error occurred while transmitting data to the device on the I2C bus.
'Private Const ERROR_GRAPHICS_I2C_ERROR_RECEIVING_DATA As Long = &HC0262583 '  An error occurred while receiving data from the device on the I2C bus.
'Private Const ERROR_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED As Long = &HC0262584 '  The monitor does not support the specified VCP code.
'Private Const ERROR_GRAPHICS_DDCCI_INVALID_DATA As Long = &HC0262585 '  The data received from the monitor is invalid.
'Private Const ERROR_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE As Long = &HC0262586 '  The function failed because a monitor returned an invalid Timing Status byte when the operating system used the DDC/CI Get Timing Report & Timing Message command to get a timing report from a monitor.
'Private Const ERROR_GRAPHICS_MCA_INVALID_CAPABILITIES_STRING As Long = &HC0262587 '  The monitor returned a DDC/CI capabilities string which did not comply with the ACCESS.bus 3.0, DDC/CI 1.1, or MCCS 2 Revision 1 specification.
'Private Const ERROR_GRAPHICS_MCA_INTERNAL_ERROR As Long = &HC0262588 '  An internal Monitor Configuration API error occurred.
'Private Const ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND As Long = &HC0262589 '  An operation failed because a DDC/CI message had an invalid value in its command field.
'Private Const ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH As Long = &HC026258A '  An error occurred because the field length of a DDC/CI message contained an invalid value.
'Private Const ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM As Long = &HC026258B '  An error occurred because the checksum field in a DDC/CI message did not match the message's computed checksum value. This error implies that the data was corrupted while it was being transmitted from a monitor to a computer.
'Private Const ERROR_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE As Long = &HC026258C '  This function failed because an invalid monitor handle was passed to it.
'Private Const ERROR_GRAPHICS_MONITOR_NO_LONGER_EXISTS As Long = &HC026258D '  The operating system asynchronously destroyed the monitor which corresponds to this handle because the operating system's state changed. This error typically occurs because the monitor PDO associated with this handle was removed, the monitor PDO associated with this handle was stopped, or a display mode change occurred. A display mode change occurs when windows sends a WM_DISPLAYCHANGE windows message to applications.
'Private Const ERROR_GRAPHICS_DDCCI_CURRENT_CURRENT_VALUE_GREATER_THAN_MAXIMUM_VALUE As Long = &HC02625D8 '  A continuous VCP code's current value is greater than its maximum value. This error code indicates that a monitor returned an invalid value.
'Private Const ERROR_GRAPHICS_MCA_INVALID_VCP_VERSION As Long = &HC02625D9 '  The monitor's VCP Version (0xDF) VCP code returned an invalid version value.
'Private Const ERROR_GRAPHICS_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION As Long = &HC02625DA '  The monitor does not comply with the MCCS specification it claims to support.
'Private Const ERROR_GRAPHICS_MCA_MCCS_VERSION_MISMATCH As Long = &HC02625DB '  The MCCS version in a monitor's mccs_ver capability does not match the MCCS version the monitor reports when the VCP Version (0xDF) VCP code is used.
'Private Const ERROR_GRAPHICS_MCA_UNSUPPORTED_MCCS_VERSION As Long = &HC02625DC '  The Monitor Configuration API only works with monitors which support the MCCS 1.0 specification, MCCS 2.0 specification or the MCCS 2.0 Revision 1 specification.
'Private Const ERROR_GRAPHICS_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED As Long = &HC02625DE '  The monitor returned an invalid monitor technology type. CRT, Plasma and LCD (TFT) are examples of monitor technology types. This error implies that the monitor violated the MCCS 2.0 or MCCS 2.0 Revision 1 specification.
'Private Const ERROR_GRAPHICS_MCA_UNSUPPORTED_COLOR_TEMPERATURE As Long = &HC02625DF '  SetMonitorColorTemperature()'s caller passed a color temperature to it which the current monitor did not support. This error implies that the monitor violated the MCCS 2.0 or MCCS 2.0 Revision 1 specification.
'Private Const ERROR_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED As Long = &HC02625E0 '  This function can only be used if a program is running in the local console session. It cannot be used if the program is running on a remote desktop session or on a terminal server session.
'Private Const ERROR_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME As Long = &HC02625E1 '  This function cannot find an actual GDI display device which corresponds to the specified GDI display device name.
'Private Const ERROR_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP As Long = &HC02625E2 '  The function failed because the specified GDI display device was not attached to the Windows desktop.
'Private Const ERROR_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED As Long = &HC02625E3 '  This function does not support GDI mirroring display devices because GDI mirroring display devices do not have any physical monitors associated with them.
'Private Const ERROR_GRAPHICS_INVALID_POINTER As Long = &HC02625E4 '  The function failed because an invalid pointer parameter was passed to it. A pointer parameter is invalid if it is NULL, points to an invalid address, points to a kernel mode address, or is not correctly aligned.
'Private Const ERROR_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE As Long = &HC02625E5 '  The function failed because the specified GDI device did not have any monitors associated with it.
'Private Const ERROR_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL As Long = &HC02625E6 '  An array passed to the function cannot hold all of the data that the function must copy into the array.
'Private Const ERROR_GRAPHICS_INTERNAL_ERROR As Long = &HC02625E7 '  An internal error caused an operation to fail.
'Private Const ERROR_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS As Long = &HC02605E8 '  The function failed because the current session is changing its type. This function cannot be called when the current session is changing its type. There are currently three types of sessions: console, disconnected and remote.
'Private Const NAP_E_INVALID_PACKET As Long = &H80270001 '  The NAP SoH packet is invalid.
'Private Const NAP_E_MISSING_SOH As Long = &H80270002 '  An SoH was missing from the NAP packet.
'Private Const NAP_E_CONFLICTING_ID As Long = &H80270003 '  The entity ID conflicts with an already registered id.
'Private Const NAP_E_NO_CACHED_SOH As Long = &H80270004 '  No cached SoH is present.
'Private Const NAP_E_STILL_BOUND As Long = &H80270005 '  The entity is still bound to the NAP system.
'Private Const NAP_E_NOT_REGISTERED As Long = &H80270006 '  The entity is not registered with the NAP system.
'Private Const NAP_E_NOT_INITIALIZED As Long = &H80270007 '  The entity is not initialized with the NAP system.
'Private Const NAP_E_MISMATCHED_ID As Long = &H80270008 '  The correlation id in the SoH-Request and SoH-Response do not match up.
'Private Const NAP_E_NOT_PENDING As Long = &H80270009 '  Completion was indicated on a request that is not currently pending.
'Private Const NAP_E_ID_NOT_FOUND As Long = &H8027000A '  The NAP component's id was not found.
'Private Const NAP_E_MAXSIZE_TOO_SMALL As Long = &H8027000B '  The maximum size of the connection is too small for an SoH packet.
'Private Const NAP_E_SERVICE_NOT_RUNNING As Long = &H8027000C '  The NapAgent service is not running.
'Private Const NAP_S_CERT_ALREADY_PRESENT As Long = &H27000D  '  A certificate is already present in the cert store.
'Private Const NAP_E_ENTITY_DISABLED As Long = &H8027000E '  The entity is disabled with the NapAgent service.
'Private Const NAP_E_NETSH_GROUPPOLICY_ERROR As Long = &H8027000F '  Group Policy is not configured.
'Private Const NAP_E_TOO_MANY_CALLS As Long = &H80270010 '  Too many simultaneous calls.
'Private Const NAP_E_SHV_CONFIG_EXISTED As Long = &H80270011 '  SHV configuration already existed.
'Private Const NAP_E_SHV_CONFIG_NOT_FOUND As Long = &H80270012 '  SHV configuration is not found.
'Private Const NAP_E_SHV_TIMEOUT As Long = &H80270013 '  SHV timed out on the request.
'Private Const TPM_E_ERROR_MASK As Long = &H80280000 '  This is an error mask to convert TPM hardware errors to win errors.
'Private Const TPM_E_AUTHFAIL As Long = &H80280001 '  Authentication failed.
'Private Const TPM_E_BADINDEX As Long = &H80280002 '  The index to a PCR, DIR or other register is incorrect.
'Private Const TPM_E_BAD_PARAMETER As Long = &H80280003 '  One or more parameter is bad.
'Private Const TPM_E_AUDITFAILURE As Long = &H80280004 '  An operation completed successfully but the auditing of that operation failed.
'Private Const TPM_E_CLEAR_DISABLED As Long = &H80280005 '  The clear disable flag is set and all clear operations now require physical access.
'Private Const TPM_E_DEACTIVATED As Long = &H80280006 '  Activate the Trusted Platform Module (TPM).
'Private Const TPM_E_DISABLED As Long = &H80280007 '  Enable the Trusted Platform Module (TPM).
'Private Const TPM_E_DISABLED_CMD As Long = &H80280008 '  The target command has been disabled.
'Private Const TPM_E_FAIL As Long = &H80280009 '  The operation failed.
'Private Const TPM_E_BAD_ORDINAL As Long = &H8028000A '  The ordinal was unknown or inconsistent.
'Private Const TPM_E_INSTALL_DISABLED As Long = &H8028000B '  The ability to install an owner is disabled.
'Private Const TPM_E_INVALID_KEYHANDLE As Long = &H8028000C '  The key handle cannot be interpreted.
'Private Const TPM_E_KEYNOTFOUND As Long = &H8028000D '  The key handle points to an invalid key.
'Private Const TPM_E_INAPPROPRIATE_ENC As Long = &H8028000E '  Unacceptable encryption scheme.
'Private Const TPM_E_MIGRATEFAIL As Long = &H8028000F '  Migration authorization failed.
'Private Const TPM_E_INVALID_PCR_INFO As Long = &H80280010 '  PCR information could not be interpreted.
'Private Const TPM_E_NOSPACE As Long = &H80280011 '  No room to load key.
'Private Const TPM_E_NOSRK As Long = &H80280012 '  There is no Storage Root Key (SRK) set.
'Private Const TPM_E_NOTSEALED_BLOB As Long = &H80280013 '  An encrypted blob is invalid or was not created by this TPM.
'Private Const TPM_E_OWNER_SET As Long = &H80280014 '  The Trusted Platform Module (TPM) already has an owner.
'Private Const TPM_E_RESOURCES As Long = &H80280015 '  The TPM has insufficient internal resources to perform the requested action.
'Private Const TPM_E_SHORTRANDOM As Long = &H80280016 '  A random string was too short.
'Private Const TPM_E_SIZE As Long = &H80280017 '  The TPM does not have the space to perform the operation.
'Private Const TPM_E_WRONGPCRVAL As Long = &H80280018 '  The named PCR value does not match the current PCR value.
'Private Const TPM_E_BAD_PARAM_SIZE As Long = &H80280019 '  The paramSize argument to the command has the incorrect value .
'Private Const TPM_E_SHA_THREAD As Long = &H8028001A '  There is no existing SHA-1 thread.
'Private Const TPM_E_SHA_ERROR As Long = &H8028001B '  The calculation is unable to proceed because the existing SHA-1 thread has already encountered an error.
'Private Const TPM_E_FAILEDSELFTEST As Long = &H8028001C '  The TPM hardware device reported a failure during its internal self test. Try restarting the computer to resolve the problem. If the problem continues, check for the latest BIOS or firmware update for your TPM hardware. Consult the computer manufacturer's documentation for instructions.
'Private Const TPM_E_AUTH2FAIL As Long = &H8028001D '  The authorization for the second key in a 2 key function failed authorization.
'Private Const TPM_E_BADTAG As Long = &H8028001E '  The tag value sent to for a command is invalid.
'Private Const TPM_E_IOERROR As Long = &H8028001F '  An IO error occurred transmitting information to the TPM.
'Private Const TPM_E_ENCRYPT_ERROR As Long = &H80280020 '  The encryption process had a problem.
'Private Const TPM_E_DECRYPT_ERROR As Long = &H80280021 '  The decryption process did not complete.
'Private Const TPM_E_INVALID_AUTHHANDLE As Long = &H80280022 '  An invalid handle was used.
'Private Const TPM_E_NO_ENDORSEMENT As Long = &H80280023 '  The TPM does not have an Endorsement Key (EK) installed.
'Private Const TPM_E_INVALID_KEYUSAGE As Long = &H80280024 '  The usage of a key is not allowed.
'Private Const TPM_E_WRONG_ENTITYTYPE As Long = &H80280025 '  The submitted entity type is not allowed.
'Private Const TPM_E_INVALID_POSTINIT As Long = &H80280026 '  The command was received in the wrong sequence relative to TPM_Init and a subsequent TPM_Startup.
'Private Const TPM_E_INAPPROPRIATE_SIG As Long = &H80280027 '  Signed data cannot include additional DER information.
'Private Const TPM_E_BAD_KEY_PROPERTY As Long = &H80280028 '  The key properties in TPM_KEY_PARMs are not supported by this TPM.
'Private Const TPM_E_BAD_MIGRATION As Long = &H80280029 '  The migration properties of this key are incorrect.
'Private Const TPM_E_BAD_SCHEME As Long = &H8028002A '  The signature or encryption scheme for this key is incorrect or not permitted in this situation.
'Private Const TPM_E_BAD_DATASIZE As Long = &H8028002B '  The size of the data (or blob) parameter is bad or inconsistent with the referenced key.
'Private Const TPM_E_BAD_MODE As Long = &H8028002C '  A mode parameter is bad, such as capArea or subCapArea for TPM_GetCapability, phsicalPresence parameter for TPM_PhysicalPresence, or migrationType for TPM_CreateMigrationBlob.
'Private Const TPM_E_BAD_PRESENCE As Long = &H8028002D '  Either the physicalPresence or physicalPresenceLock bits have the wrong value.
'Private Const TPM_E_BAD_VERSION As Long = &H8028002E '  The TPM cannot perform this version of the capability.
'Private Const TPM_E_NO_WRAP_TRANSPORT As Long = &H8028002F '  The TPM does not allow for wrapped transport sessions.
'Private Const TPM_E_AUDITFAIL_UNSUCCESSFUL As Long = &H80280030 '  TPM audit construction failed and the underlying command was returning a failure code also.
'Private Const TPM_E_AUDITFAIL_SUCCESSFUL As Long = &H80280031 '  TPM audit construction failed and the underlying command was returning success.
'Private Const TPM_E_NOTRESETABLE As Long = &H80280032 '  Attempt to reset a PCR register that does not have the resettable attribute.
'Private Const TPM_E_NOTLOCAL As Long = &H80280033 '  Attempt to reset a PCR register that requires locality and locality modifier not part of command transport.
'Private Const TPM_E_BAD_TYPE As Long = &H80280034 '  Make identity blob not properly typed.
'Private Const TPM_E_INVALID_RESOURCE As Long = &H80280035 '  When saving context identified resource type does not match actual resource.
'Private Const TPM_E_NOTFIPS As Long = &H80280036 '  The TPM is attempting to execute a command only available when in FIPS mode.
'Private Const TPM_E_INVALID_FAMILY As Long = &H80280037 '  The command is attempting to use an invalid family ID.
'Private Const TPM_E_NO_NV_PERMISSION As Long = &H80280038 '  The permission to manipulate the NV storage is not available.
'Private Const TPM_E_REQUIRES_SIGN As Long = &H80280039 '  The operation requires a signed command.
'Private Const TPM_E_KEY_NOTSUPPORTED As Long = &H8028003A '  Wrong operation to load an NV key.
'Private Const TPM_E_AUTH_CONFLICT As Long = &H8028003B '  NV_LoadKey blob requires both owner and blob authorization.
'Private Const TPM_E_AREA_LOCKED As Long = &H8028003C '  The NV area is locked and not writtable.
'Private Const TPM_E_BAD_LOCALITY As Long = &H8028003D '  The locality is incorrect for the attempted operation.
'Private Const TPM_E_READ_ONLY As Long = &H8028003E '  The NV area is read only and can't be written to.
'Private Const TPM_E_PER_NOWRITE As Long = &H8028003F '  There is no protection on the write to the NV area.
'Private Const TPM_E_FAMILYCOUNT As Long = &H80280040 '  The family count value does not match.
'Private Const TPM_E_WRITE_LOCKED As Long = &H80280041 '  The NV area has already been written to.
'Private Const TPM_E_BAD_ATTRIBUTES As Long = &H80280042 '  The NV area attributes conflict.
'Private Const TPM_E_INVALID_STRUCTURE As Long = &H80280043 '  The structure tag and version are invalid or inconsistent.
'Private Const TPM_E_KEY_OWNER_CONTROL As Long = &H80280044 '  The key is under control of the TPM Owner and can only be evicted by the TPM Owner.
'Private Const TPM_E_BAD_COUNTER As Long = &H80280045 '  The counter handle is incorrect.
'Private Const TPM_E_NOT_FULLWRITE As Long = &H80280046 '  The write is not a complete write of the area.
'Private Const TPM_E_CONTEXT_GAP As Long = &H80280047 '  The gap between saved context counts is too large.
'Private Const TPM_E_MAXNVWRITES As Long = &H80280048 '  The maximum number of NV writes without an owner has been exceeded.
'Private Const TPM_E_NOOPERATOR As Long = &H80280049 '  No operator AuthData value is set.
'Private Const TPM_E_RESOURCEMISSING As Long = &H8028004A '  The resource pointed to by context is not loaded.
'Private Const TPM_E_DELEGATE_LOCK As Long = &H8028004B '  The delegate administration is locked.
'Private Const TPM_E_DELEGATE_FAMILY As Long = &H8028004C '  Attempt to manage a family other then the delegated family.
'Private Const TPM_E_DELEGATE_ADMIN As Long = &H8028004D '  Delegation table management not enabled.
'Private Const TPM_E_TRANSPORT_NOTEXCLUSIVE As Long = &H8028004E '  There was a command executed outside of an exclusive transport session.
'Private Const TPM_E_OWNER_CONTROL As Long = &H8028004F '  Attempt to context save a owner evict controlled key.
'Private Const TPM_E_DAA_RESOURCES As Long = &H80280050 '  The DAA command has no resources availble to execute the command.
'Private Const TPM_E_DAA_INPUT_DATA0 As Long = &H80280051 '  The consistency check on DAA parameter inputData0 has failed.
'Private Const TPM_E_DAA_INPUT_DATA1 As Long = &H80280052 '  The consistency check on DAA parameter inputData1 has failed.
'Private Const TPM_E_DAA_ISSUER_SETTINGS As Long = &H80280053 '  The consistency check on DAA_issuerSettings has failed.
'Private Const TPM_E_DAA_TPM_SETTINGS As Long = &H80280054 '  The consistency check on DAA_tpmSpecific has failed.
'Private Const TPM_E_DAA_STAGE As Long = &H80280055 '  The atomic process indicated by the submitted DAA command is not the expected process.
'Private Const TPM_E_DAA_ISSUER_VALIDITY As Long = &H80280056 '  The issuer's validity check has detected an inconsistency.
'Private Const TPM_E_DAA_WRONG_W As Long = &H80280057 '  The consistency check on w has failed.
'Private Const TPM_E_BAD_HANDLE As Long = &H80280058 '  The handle is incorrect.
'Private Const TPM_E_BAD_DELEGATE As Long = &H80280059 '  Delegation is not correct.
'Private Const TPM_E_BADCONTEXT As Long = &H8028005A '  The context blob is invalid.
'Private Const TPM_E_TOOMANYCONTEXTS As Long = &H8028005B '  Too many contexts held by the TPM.
'Private Const TPM_E_MA_TICKET_SIGNATURE As Long = &H8028005C '  Migration authority signature validation failure.
'Private Const TPM_E_MA_DESTINATION As Long = &H8028005D '  Migration destination not authenticated.
'Private Const TPM_E_MA_SOURCE As Long = &H8028005E '  Migration source incorrect.
'Private Const TPM_E_MA_AUTHORITY As Long = &H8028005F '  Incorrect migration authority.
'Private Const TPM_E_PERMANENTEK As Long = &H80280061 '  Attempt to revoke the EK and the EK is not revocable.
'Private Const TPM_E_BAD_SIGNATURE As Long = &H80280062 '  Bad signature of CMK ticket.
'Private Const TPM_E_NOCONTEXTSPACE As Long = &H80280063 '  There is no room in the context list for additional contexts.
'Private Const TPM_E_COMMAND_BLOCKED As Long = &H80280400 '  The command was blocked.
'Private Const TPM_E_INVALID_HANDLE As Long = &H80280401 '  The specified handle was not found.
'Private Const TPM_E_DUPLICATE_VHANDLE As Long = &H80280402 '  The TPM returned a duplicate handle and the command needs to be resubmitted.
'Private Const TPM_E_EMBEDDED_COMMAND_BLOCKED As Long = &H80280403 '  The command within the transport was blocked.
'Private Const TPM_E_EMBEDDED_COMMAND_UNSUPPORTED As Long = &H80280404 '  The command within the transport is not supported.
'Private Const TPM_E_RETRY As Long = &H80280800 '  The TPM is too busy to respond to the command immediately, but the command could be resubmitted at a later time.
'Private Const TPM_E_NEEDS_SELFTEST As Long = &H80280801 '  SelfTestFull has not been run.
'Private Const TPM_E_DOING_SELFTEST As Long = &H80280802 '  The TPM is currently executing a full selftest.
'Private Const TPM_E_DEFEND_LOCK_RUNNING As Long = &H80280803 '  The TPM is defending against dictionary attacks and is in a time-out period.
'Private Const TBS_E_INTERNAL_ERROR As Long = &H80284001 '  An internal error has occurred within the Trusted Platform Module support program.
'Private Const TBS_E_BAD_PARAMETER As Long = &H80284002 '  One or more input parameters is bad.
'Private Const TBS_E_INVALID_OUTPUT_POINTER As Long = &H80284003 '  A specified output pointer is bad.
'Private Const TBS_E_INVALID_CONTEXT As Long = &H80284004 '  The specified context handle does not refer to a valid context.
'Private Const TBS_E_INSUFFICIENT_BUFFER As Long = &H80284005 '  A specified output buffer is too small.
'Private Const TBS_E_IOERROR As Long = &H80284006 '  An error occurred while communicating with the TPM.
'Private Const TBS_E_INVALID_CONTEXT_PARAM As Long = &H80284007 '  One or more context parameters is invalid.
'Private Const TBS_E_SERVICE_NOT_RUNNING As Long = &H80284008 '  The TBS service is not running and could not be started.
'Private Const TBS_E_TOO_MANY_TBS_CONTEXTS As Long = &H80284009 '  A new context could not be created because there are too many open contexts.
'Private Const TBS_E_TOO_MANY_RESOURCES As Long = &H8028400A '  A new virtual resource could not be created because there are too many open virtual resources.
'Private Const TBS_E_SERVICE_START_PENDING As Long = &H8028400B '  The TBS service has been started but is not yet running.
'Private Const TBS_E_PPI_NOT_SUPPORTED As Long = &H8028400C '  The physical presence interface is not supported.
'Private Const TBS_E_COMMAND_CANCELED As Long = &H8028400D '  The command was canceled.
'Private Const TBS_E_BUFFER_TOO_LARGE As Long = &H8028400E '  The input or output buffer is too large.
'Private Const TBS_E_TPM_NOT_FOUND As Long = &H8028400F '  A compatible Trusted Platform Module (TPM) Security Device cannot be found on this computer.
'Private Const TBS_E_SERVICE_DISABLED As Long = &H80284010 '  The TBS service has been disabled.
'Private Const TBS_E_NO_EVENT_LOG As Long = &H80284011 '  No TCG event log is available.
'Private Const TBS_E_ACCESS_DENIED As Long = &H80284012 '  The caller does not have the appropriate rights to perform the requested operation.
'Private Const TBS_E_PROVISIONING_NOT_ALLOWED As Long = &H80284013 '  The TPM provisioning action is not allowed by the specified flags.  For provisioning to be successful, one of several actions may be required.  The TPM management console (tpm.msc) action to make the TPM Ready may help.  For further information, see the documentation for the Win32_Tpm WMI method 'Provision'.  (The actions that may be required include importing the TPM Owner Authorization value into the system, calling the Win32_Tpm WMI method for provisioning the TPM and specifying TRUE for either 'ForceClear_Allowed' or 'PhysicalPresencePrompts_Allowed' (as indicated by the value returned in the Additional Information), or enabling the TPM in the system BIOS.)
'Private Const TBS_E_PPI_FUNCTION_UNSUPPORTED As Long = &H80284014 '  The Physical Presence Interface of this firmware does not support the requested method.
'Private Const TBS_E_OWNERAUTH_NOT_FOUND As Long = &H80284015 '  The requested TPM OwnerAuth value was not found.
'Private Const TBS_E_PROVISIONING_INCOMPLETE As Long = &H80284016 '  The TPM provisioning did not complete.  For more information on completing the provisioning, call the Win32_Tpm WMI method for provisioning the TPM ('Provision') and check the returned Information.
'Private Const TPMAPI_E_INVALID_STATE As Long = &H80290100 '  The command buffer is not in the correct state.
'Private Const TPMAPI_E_NOT_ENOUGH_DATA As Long = &H80290101 '  The command buffer does not contain enough data to satisfy the request.
'Private Const TPMAPI_E_TOO_MUCH_DATA As Long = &H80290102 '  The command buffer cannot contain any more data.
'Private Const TPMAPI_E_INVALID_OUTPUT_POINTER As Long = &H80290103 '  One or more output parameters was NULL or invalid.
'Private Const TPMAPI_E_INVALID_PARAMETER As Long = &H80290104 '  One or more input parameters is invalid.
'Private Const TPMAPI_E_OUT_OF_MEMORY As Long = &H80290105 '  Not enough memory was available to satisfy the request.
'Private Const TPMAPI_E_BUFFER_TOO_SMALL As Long = &H80290106 '  The specified buffer was too small.
'Private Const TPMAPI_E_INTERNAL_ERROR As Long = &H80290107 '  An internal error was detected.
'Private Const TPMAPI_E_ACCESS_DENIED As Long = &H80290108 '  The caller does not have the appropriate rights to perform the requested operation.
'Private Const TPMAPI_E_AUTHORIZATION_FAILED As Long = &H80290109 '  The specified authorization information was invalid.
'Private Const TPMAPI_E_INVALID_CONTEXT_HANDLE As Long = &H8029010A '  The specified context handle was not valid.
'Private Const TPMAPI_E_TBS_COMMUNICATION_ERROR As Long = &H8029010B '  An error occurred while communicating with the TBS.
'Private Const TPMAPI_E_TPM_COMMAND_ERROR As Long = &H8029010C '  The TPM returned an unexpected result.
'Private Const TPMAPI_E_MESSAGE_TOO_LARGE As Long = &H8029010D '  The message was too large for the encoding scheme.
'Private Const TPMAPI_E_INVALID_ENCODING As Long = &H8029010E '  The encoding in the blob was not recognized.
'Private Const TPMAPI_E_INVALID_KEY_SIZE As Long = &H8029010F '  The key size is not valid.
'Private Const TPMAPI_E_ENCRYPTION_FAILED As Long = &H80290110 '  The encryption operation failed.
'Private Const TPMAPI_E_INVALID_KEY_PARAMS As Long = &H80290111 '  The key parameters structure was not valid
'Private Const TPMAPI_E_INVALID_MIGRATION_AUTHORIZATION_BLOB As Long = &H80290112 '  The requested supplied data does not appear to be a valid migration authorization blob.
'Private Const TPMAPI_E_INVALID_PCR_INDEX As Long = &H80290113 '  The specified PCR index was invalid
'Private Const TPMAPI_E_INVALID_DELEGATE_BLOB As Long = &H80290114 '  The data given does not appear to be a valid delegate blob.
'Private Const TPMAPI_E_INVALID_CONTEXT_PARAMS As Long = &H80290115 '  One or more of the specified context parameters was not valid.
'Private Const TPMAPI_E_INVALID_KEY_BLOB As Long = &H80290116 '  The data given does not appear to be a valid key blob
'Private Const TPMAPI_E_INVALID_PCR_DATA As Long = &H80290117 '  The specified PCR data was invalid.
'Private Const TPMAPI_E_INVALID_OWNER_AUTH As Long = &H80290118 '  The format of the owner auth data was invalid.
'Private Const TPMAPI_E_FIPS_RNG_CHECK_FAILED As Long = &H80290119 '  The random number generated did not pass FIPS RNG check.
'Private Const TPMAPI_E_EMPTY_TCG_LOG As Long = &H8029011A '  The TCG Event Log does not contain any data.
'Private Const TPMAPI_E_INVALID_TCG_LOG_ENTRY As Long = &H8029011B '  An entry in the TCG Event Log was invalid.
'Private Const TPMAPI_E_TCG_SEPARATOR_ABSENT As Long = &H8029011C '  A TCG Separator was not found.
'Private Const TPMAPI_E_TCG_INVALID_DIGEST_ENTRY As Long = &H8029011D '  A digest value in a TCG Log entry did not match hashed data.
'Private Const TPMAPI_E_POLICY_DENIES_OPERATION As Long = &H8029011E '  The requested operation was blocked by current TPM policy. Please contact your system administrator for assistance.
'Private Const TBSIMP_E_BUFFER_TOO_SMALL As Long = &H80290200 '  The specified buffer was too small.
'Private Const TBSIMP_E_CLEANUP_FAILED As Long = &H80290201 '  The context could not be cleaned up.
'Private Const TBSIMP_E_INVALID_CONTEXT_HANDLE As Long = &H80290202 '  The specified context handle is invalid.
'Private Const TBSIMP_E_INVALID_CONTEXT_PARAM As Long = &H80290203 '  An invalid context parameter was specified.
'Private Const TBSIMP_E_TPM_ERROR As Long = &H80290204 '  An error occurred while communicating with the TPM
'Private Const TBSIMP_E_HASH_BAD_KEY As Long = &H80290205 '  No entry with the specified key was found.
'Private Const TBSIMP_E_DUPLICATE_VHANDLE As Long = &H80290206 '  The specified virtual handle matches a virtual handle already in use.
'Private Const TBSIMP_E_INVALID_OUTPUT_POINTER As Long = &H80290207 '  The pointer to the returned handle location was NULL or invalid
'Private Const TBSIMP_E_INVALID_PARAMETER As Long = &H80290208 '  One or more parameters is invalid
'Private Const TBSIMP_E_RPC_INIT_FAILED As Long = &H80290209 '  The RPC subsystem could not be initialized.
'Private Const TBSIMP_E_SCHEDULER_NOT_RUNNING As Long = &H8029020A '  The TBS scheduler is not running.
'Private Const TBSIMP_E_COMMAND_CANCELED As Long = &H8029020B '  The command was canceled.
'Private Const TBSIMP_E_OUT_OF_MEMORY As Long = &H8029020C '  There was not enough memory to fulfill the request
'Private Const TBSIMP_E_LIST_NO_MORE_ITEMS As Long = &H8029020D '  The specified list is empty, or the iteration has reached the end of the list.
'Private Const TBSIMP_E_LIST_NOT_FOUND As Long = &H8029020E '  The specified item was not found in the list.
'Private Const TBSIMP_E_NOT_ENOUGH_SPACE As Long = &H8029020F '  The TPM does not have enough space to load the requested resource.
'Private Const TBSIMP_E_NOT_ENOUGH_TPM_CONTEXTS As Long = &H80290210 '  There are too many TPM contexts in use.
'Private Const TBSIMP_E_COMMAND_FAILED As Long = &H80290211 '  The TPM command failed.
'Private Const TBSIMP_E_UNKNOWN_ORDINAL As Long = &H80290212 '  The TBS does not recognize the specified ordinal.
'Private Const TBSIMP_E_RESOURCE_EXPIRED As Long = &H80290213 '  The requested resource is no longer available.
'Private Const TBSIMP_E_INVALID_RESOURCE As Long = &H80290214 '  The resource type did not match.
'Private Const TBSIMP_E_NOTHING_TO_UNLOAD As Long = &H80290215 '  No resources can be unloaded.
'Private Const TBSIMP_E_HASH_TABLE_FULL As Long = &H80290216 '  No new entries can be added to the hash table.
'Private Const TBSIMP_E_TOO_MANY_TBS_CONTEXTS As Long = &H80290217 '  A new TBS context could not be created because there are too many open contexts.
'Private Const TBSIMP_E_TOO_MANY_RESOURCES As Long = &H80290218 '  A new virtual resource could not be created because there are too many open virtual resources.
'Private Const TBSIMP_E_PPI_NOT_SUPPORTED As Long = &H80290219 '  The physical presence interface is not supported.
'Private Const TBSIMP_E_TPM_INCOMPATIBLE As Long = &H8029021A '  TBS is not compatible with the version of TPM found on the system.
'Private Const TBSIMP_E_NO_EVENT_LOG As Long = &H8029021B '  No TCG event log is available.
'Private Const TPM_E_PPI_ACPI_FAILURE As Long = &H80290300 '  A general error was detected when attempting to acquire the BIOS's response to a Physical Presence command.
'Private Const TPM_E_PPI_USER_ABORT As Long = &H80290301 '  The user failed to confirm the TPM operation request.
'Private Const TPM_E_PPI_BIOS_FAILURE As Long = &H80290302 '  The BIOS failure prevented the successful execution of the requested TPM operation (e.g. invalid TPM operation request, BIOS communication error with the TPM).
'Private Const TPM_E_PPI_NOT_SUPPORTED As Long = &H80290303 '  The BIOS does not support the physical presence interface.
'Private Const TPM_E_PPI_BLOCKED_IN_BIOS As Long = &H80290304 '  The Physical Presence command was blocked by current BIOS settings. The system owner may be able to reconfigure the BIOS settings to allow the command.
'Private Const TPM_E_PCP_ERROR_MASK As Long = &H80290400 '  This is an error mask to convert Platform Crypto Provider errors to win errors.
'Private Const TPM_E_PCP_DEVICE_NOT_READY As Long = &H80290401 '  The Platform Crypto Device is currently not ready. It needs to be fully provisioned to be operational.
'Private Const TPM_E_PCP_INVALID_HANDLE As Long = &H80290402 '  The handle provided to the Platform Crypto Provider is invalid.
'Private Const TPM_E_PCP_INVALID_PARAMETER As Long = &H80290403 '  A parameter provided to the Platform Crypto Provider is invalid.
'Private Const TPM_E_PCP_FLAG_NOT_SUPPORTED As Long = &H80290404 '  A provided flag to the Platform Crypto Provider is not supported.
'Private Const TPM_E_PCP_NOT_SUPPORTED As Long = &H80290405 '  The requested operation is not supported by this Platform Crypto Provider.
'Private Const TPM_E_PCP_BUFFER_TOO_SMALL As Long = &H80290406 '  The buffer is too small to contain all data. No information has been written to the buffer.
'Private Const TPM_E_PCP_INTERNAL_ERROR As Long = &H80290407 '  An unexpected internal error has occurred in the Platform Crypto Provider.
'Private Const TPM_E_PCP_AUTHENTICATION_FAILED As Long = &H80290408 '  The authorization to use a provider object has failed.
'Private Const TPM_E_PCP_AUTHENTICATION_IGNORED As Long = &H80290409 '  The Platform Crypto Device has ignored the authorization for the provider object, to mitigate against a dictionary attack.
'Private Const TPM_E_PCP_POLICY_NOT_FOUND As Long = &H8029040A '  The referenced policy was not found.
'Private Const TPM_E_PCP_PROFILE_NOT_FOUND As Long = &H8029040B '  The referenced profile was not found.
'Private Const TPM_E_PCP_VALIDATION_FAILED As Long = &H8029040C '  The validation was not succesful.
'Private Const PLA_E_DCS_NOT_FOUND As Long = &H80300002 '  Data Collector Set was not found.
'Private Const PLA_E_DCS_IN_USE As Long = &H803000AA '  The Data Collector Set or one of its dependencies is already in use.
'Private Const PLA_E_TOO_MANY_FOLDERS As Long = &H80300045 '  Unable to start Data Collector Set because there are too many folders.
'Private Const PLA_E_NO_MIN_DISK As Long = &H80300070 '  Not enough free disk space to start Data Collector Set.
'Private Const PLA_E_DCS_ALREADY_EXISTS As Long = &H803000B7 '  Data Collector Set already exists.
'Private Const PLA_S_PROPERTY_IGNORED As Long = &H300100  '  Property value will be ignored.
'Private Const PLA_E_PROPERTY_CONFLICT As Long = &H80300101 '  Property value conflict.
'Private Const PLA_E_DCS_SINGLETON_REQUIRED As Long = &H80300102 '  The current configuration for this Data Collector Set requires that it contain exactly one Data Collector.
'Private Const PLA_E_CREDENTIALS_REQUIRED As Long = &H80300103 '  A user account is required in order to commit the current Data Collector Set properties.
'Private Const PLA_E_DCS_NOT_RUNNING As Long = &H80300104 '  Data Collector Set is not running.
'Private Const PLA_E_CONFLICT_INCL_EXCL_API As Long = &H80300105 '  A conflict was detected in the list of include/exclude APIs. Do not specify the same API in both the include list and the exclude list.
'Private Const PLA_E_NETWORK_EXE_NOT_VALID As Long = &H80300106 '  The executable path you have specified refers to a network share or UNC path.
'Private Const PLA_E_EXE_ALREADY_CONFIGURED As Long = &H80300107 '  The executable path you have specified is already configured for API tracing.
'Private Const PLA_E_EXE_PATH_NOT_VALID As Long = &H80300108 '  The executable path you have specified does not exist. Verify that the specified path is correct.
'Private Const PLA_E_DC_ALREADY_EXISTS As Long = &H80300109 '  Data Collector already exists.
'Private Const PLA_E_DCS_START_WAIT_TIMEOUT As Long = &H8030010A '  The wait for the Data Collector Set start notification has timed out.
'Private Const PLA_E_DC_START_WAIT_TIMEOUT As Long = &H8030010B '  The wait for the Data Collector to start has timed out.
'Private Const PLA_E_REPORT_WAIT_TIMEOUT As Long = &H8030010C '  The wait for the report generation tool to finish has timed out.
'Private Const PLA_E_NO_DUPLICATES As Long = &H8030010D '  Duplicate items are not allowed.
'Private Const PLA_E_EXE_FULL_PATH_REQUIRED As Long = &H8030010E '  When specifying the executable that you want to trace, you must specify a full path to the executable and not just a filename.
'Private Const PLA_E_INVALID_SESSION_NAME As Long = &H8030010F '  The session name provided is invalid.
'Private Const PLA_E_PLA_CHANNEL_NOT_ENABLED As Long = &H80300110 '  The Event Log channel Microsoft-Windows-Diagnosis-PLA/Operational must be enabled to perform this operation.
'Private Const PLA_E_TASKSCHED_CHANNEL_NOT_ENABLED As Long = &H80300111 '  The Event Log channel Microsoft-Windows-TaskScheduler must be enabled to perform this operation.
'Private Const PLA_E_RULES_MANAGER_FAILED As Long = &H80300112 '  The execution of the Rules Manager failed.
'Private Const PLA_E_CABAPI_FAILURE As Long = &H80300113 '  An error occurred while attempting to compress or extract the data.
'Private Const FVE_E_LOCKED_VOLUME As Long = &H80310000 '  This drive is locked by BitLocker Drive Encryption. You must unlock this drive from Control Panel.
'Private Const FVE_E_NOT_ENCRYPTED As Long = &H80310001 '  This drive is not encrypted.
'Private Const FVE_E_NO_TPM_BIOS As Long = &H80310002 '  The BIOS did not correctly communicate with the Trusted Platform Module (TPM). Contact the computer manufacturer for BIOS upgrade instructions.
'Private Const FVE_E_NO_MBR_METRIC As Long = &H80310003 '  The BIOS did not correctly communicate with the master boot record (MBR). Contact the computer manufacturer for BIOS upgrade instructions.
'Private Const FVE_E_NO_BOOTSECTOR_METRIC As Long = &H80310004 '  A required TPM measurement is missing. If there is a bootable CD or DVD in your computer, remove it, restart the computer, and turn on BitLocker again. If the problem persists, ensure the master boot record is up to date.
'Private Const FVE_E_NO_BOOTMGR_METRIC As Long = &H80310005 '  The boot sector of this drive is not compatible with BitLocker Drive Encryption. Use the Bootrec.exe tool in the Windows Recovery Environment to update or repair the boot manager (BOOTMGR).
'Private Const FVE_E_WRONG_BOOTMGR As Long = &H80310006 '  The boot manager of this operating system is not compatible with BitLocker Drive Encryption. Use the Bootrec.exe tool in the Windows Recovery Environment to update or repair the boot manager (BOOTMGR).
'Private Const FVE_E_SECURE_KEY_REQUIRED As Long = &H80310007 '  At least one secure key protector is required for this operation to be performed.
'Private Const FVE_E_NOT_ACTIVATED As Long = &H80310008 '  BitLocker Drive Encryption is not enabled on this drive. Turn on BitLocker.
'Private Const FVE_E_ACTION_NOT_ALLOWED As Long = &H80310009 '  BitLocker Drive Encryption cannot perform the requested action. This condition may occur when two requests are issued at the same time. Wait a few moments and then try the action again.
'Private Const FVE_E_AD_SCHEMA_NOT_INSTALLED As Long = &H8031000A '  The Active Directory Domain Services forest does not contain the required attributes and classes to host BitLocker Drive Encryption or Trusted Platform Module information. Contact your domain administrator to verify that any required BitLocker Active Directory schema extensions have been installed.
'Private Const FVE_E_AD_INVALID_DATATYPE As Long = &H8031000B '  The type of the data obtained from Active Directory was not expected. The BitLocker recovery information may be missing or corrupted.
'Private Const FVE_E_AD_INVALID_DATASIZE As Long = &H8031000C '  The size of the data obtained from Active Directory was not expected. The BitLocker recovery information may be missing or corrupted.
'Private Const FVE_E_AD_NO_VALUES As Long = &H8031000D '  The attribute read from Active Directory does not contain any values. The BitLocker recovery information may be missing or corrupted.
'Private Const FVE_E_AD_ATTR_NOT_SET As Long = &H8031000E '  The attribute was not set. Verify that you are logged on with a domain account that has the ability to write information to Active Directory objects.
'Private Const FVE_E_AD_GUID_NOT_FOUND As Long = &H8031000F '  The specified attribute cannot be found in Active Directory Domain Services. Contact your domain administrator to verify that any required BitLocker Active Directory schema extensions have been installed.
'Private Const FVE_E_BAD_INFORMATION As Long = &H80310010 '  The BitLocker metadata for the encrypted drive is not valid. You can attempt to repair the drive to restore access.
'Private Const FVE_E_TOO_SMALL As Long = &H80310011 '  The drive cannot be encrypted because it does not have enough free space. Delete any unnecessary data on the drive to create additional free space and then try again.
'Private Const FVE_E_SYSTEM_VOLUME As Long = &H80310012 '  The drive cannot be encrypted because it contains system boot information. Create a separate partition for use as the system drive that contains the boot information and a second partition for use as the operating system drive and then encrypt the operating system drive.
'Private Const FVE_E_FAILED_WRONG_FS As Long = &H80310013 '  The drive cannot be encrypted because the file system is not supported.
'Private Const FVE_E_BAD_PARTITION_SIZE As Long = &H80310014 '  The file system size is larger than the partition size in the partition table. This drive may be corrupt or may have been tampered with. To use it with BitLocker, you must reformat the partition.
'Private Const FVE_E_NOT_SUPPORTED As Long = &H80310015 '  This drive cannot be encrypted.
'Private Const FVE_E_BAD_DATA As Long = &H80310016 '  The data is not valid.
'Private Const FVE_E_VOLUME_NOT_BOUND As Long = &H80310017 '  The data drive specified is not set to automatically unlock on the current computer and cannot be unlocked automatically.
'Private Const FVE_E_TPM_NOT_OWNED As Long = &H80310018 '  You must initialize the Trusted Platform Module (TPM) before you can use BitLocker Drive Encryption.
'Private Const FVE_E_NOT_DATA_VOLUME As Long = &H80310019 '  The operation attempted cannot be performed on an operating system drive.
'Private Const FVE_E_AD_INSUFFICIENT_BUFFER As Long = &H8031001A '  The buffer supplied to a function was insufficient to contain the returned data. Increase the buffer size before running the function again.
'Private Const FVE_E_CONV_READ As Long = &H8031001B '  A read operation failed while converting the drive. The drive was not converted. Please re-enable BitLocker.
'Private Const FVE_E_CONV_WRITE As Long = &H8031001C '  A write operation failed while converting the drive. The drive was not converted. Please re-enable BitLocker.
'Private Const FVE_E_KEY_REQUIRED As Long = &H8031001D '  One or more BitLocker key protectors are required. You cannot delete the last key on this drive.
'Private Const FVE_E_CLUSTERING_NOT_SUPPORTED As Long = &H8031001E '  Cluster configurations are not supported by BitLocker Drive Encryption.
'Private Const FVE_E_VOLUME_BOUND_ALREADY As Long = &H8031001F '  The drive specified is already configured to be automatically unlocked on the current computer.
'Private Const FVE_E_OS_NOT_PROTECTED As Long = &H80310020 '  The operating system drive is not protected by BitLocker Drive Encryption.
'Private Const FVE_E_PROTECTION_DISABLED As Long = &H80310021 '  BitLocker Drive Encryption has been suspended on this drive. All BitLocker key protectors configured for this drive are effectively disabled, and the drive will be automatically unlocked using an unencrypted (clear) key.
'Private Const FVE_E_RECOVERY_KEY_REQUIRED As Long = &H80310022 '  The drive you are attempting to lock does not have any key protectors available for encryption because BitLocker protection is currently suspended. Re-enable BitLocker to lock this drive.
'Private Const FVE_E_FOREIGN_VOLUME As Long = &H80310023 '  BitLocker cannot use the Trusted Platform Module (TPM) to protect a data drive. TPM protection can only be used with the operating system drive.
'Private Const FVE_E_OVERLAPPED_UPDATE As Long = &H80310024 '  The BitLocker metadata for the encrypted drive cannot be updated because it was locked for updating by another process. Please try this process again.
'Private Const FVE_E_TPM_SRK_AUTH_NOT_ZERO As Long = &H80310025 '  The authorization data for the storage root key (SRK) of the Trusted Platform Module (TPM) is not zero and is therefore incompatible with BitLocker. Please initialize the TPM before attempting to use it with BitLocker.
'Private Const FVE_E_FAILED_SECTOR_SIZE As Long = &H80310026 '  The drive encryption algorithm cannot be used on this sector size.
'Private Const FVE_E_FAILED_AUTHENTICATION As Long = &H80310027 '  The drive cannot be unlocked with the key provided. Confirm that you have provided the correct key and try again.
'Private Const FVE_E_NOT_OS_VOLUME As Long = &H80310028 '  The drive specified is not the operating system drive.
'Private Const FVE_E_AUTOUNLOCK_ENABLED As Long = &H80310029 '  BitLocker Drive Encryption cannot be turned off on the operating system drive until the auto unlock feature has been disabled for the fixed data drives and removable data drives associated with this computer.
'Private Const FVE_E_WRONG_BOOTSECTOR As Long = &H8031002A '  The system partition boot sector does not perform Trusted Platform Module (TPM) measurements. Use the Bootrec.exe tool in the Windows Recovery Environment to update or repair the boot sector.
'Private Const FVE_E_WRONG_SYSTEM_FS As Long = &H8031002B '  BitLocker Drive Encryption operating system drives must be formatted with the NTFS file system in order to be encrypted. Convert the drive to NTFS, and then turn on BitLocker.
'Private Const FVE_E_POLICY_PASSWORD_REQUIRED As Long = &H8031002C '  Group Policy settings require that a recovery password be specified before encrypting the drive.
'Private Const FVE_E_CANNOT_SET_FVEK_ENCRYPTED As Long = &H8031002D '  The drive encryption algorithm and key cannot be set on a previously encrypted drive. To encrypt this drive with BitLocker Drive Encryption, remove the previous encryption and then turn on BitLocker.
'Private Const FVE_E_CANNOT_ENCRYPT_NO_KEY As Long = &H8031002E '  BitLocker Drive Encryption cannot encrypt the specified drive because an encryption key is not available. Add a key protector to encrypt this drive.
'Private Const FVE_E_BOOTABLE_CDDVD As Long = &H80310030 '  BitLocker Drive Encryption detected bootable media (CD or DVD) in the computer. Remove the media and restart the computer before configuring BitLocker.
'Private Const FVE_E_PROTECTOR_EXISTS As Long = &H80310031 '  This key protector cannot be added. Only one key protector of this type is allowed for this drive.
'Private Const FVE_E_RELATIVE_PATH As Long = &H80310032 '  The recovery password file was not found because a relative path was specified. Recovery passwords must be saved to a fully qualified path. Environment variables configured on the computer can be used in the path.
'Private Const FVE_E_PROTECTOR_NOT_FOUND As Long = &H80310033 '  The specified key protector was not found on the drive. Try another key protector.
'Private Const FVE_E_INVALID_KEY_FORMAT As Long = &H80310034 '  The recovery key provided is corrupt and cannot be used to access the drive. An alternative recovery method, such as recovery password, a data recovery agent, or a backup version of the recovery key must be used to recover access to the drive.
'Private Const FVE_E_INVALID_PASSWORD_FORMAT As Long = &H80310035 '  The format of the recovery password provided is invalid. BitLocker recovery passwords are 48 digits. Verify that the recovery password is in the correct format and then try again.
'Private Const FVE_E_FIPS_RNG_CHECK_FAILED As Long = &H80310036 '  The random number generator check test failed.
'Private Const FVE_E_FIPS_PREVENTS_RECOVERY_PASSWORD As Long = &H80310037 '  The Group Policy setting requiring FIPS compliance prevents a local recovery password from being generated or used by BitLocker Drive Encryption. When operating in FIPS-compliant mode, BitLocker recovery options can be either a recovery key stored on a USB drive or recovery through a data recovery agent.
'Private Const FVE_E_FIPS_PREVENTS_EXTERNAL_KEY_EXPORT As Long = &H80310038 '  The Group Policy setting requiring FIPS compliance prevents the recovery password from being saved to Active Directory. When operating in FIPS-compliant mode, BitLocker recovery options can be either a recovery key stored on a USB drive or recovery through a data recovery agent. Check your Group Policy settings configuration.
'Private Const FVE_E_NOT_DECRYPTED As Long = &H80310039 '  The drive must be fully decrypted to complete this operation.
'Private Const FVE_E_INVALID_PROTECTOR_TYPE As Long = &H8031003A '  The key protector specified cannot be used for this operation.
'Private Const FVE_E_NO_PROTECTORS_TO_TEST As Long = &H8031003B '  No key protectors exist on the drive to perform the hardware test.
'Private Const FVE_E_KEYFILE_NOT_FOUND As Long = &H8031003C '  The BitLocker startup key or recovery password cannot be found on the USB device. Verify that you have the correct USB device, that the USB device is plugged into the computer on an active USB port, restart the computer, and then try again. If the problem persists, contact the computer manufacturer for BIOS upgrade instructions.
'Private Const FVE_E_KEYFILE_INVALID As Long = &H8031003D '  The BitLocker startup key or recovery password file provided is corrupt or invalid. Verify that you have the correct startup key or recovery password file and try again.
'Private Const FVE_E_KEYFILE_NO_VMK As Long = &H8031003E '  The BitLocker encryption key cannot be obtained from the startup key or recovery password. Verify that you have the correct startup key or recovery password and try again.
'Private Const FVE_E_TPM_DISABLED As Long = &H8031003F '  The Trusted Platform Module (TPM) is disabled. The TPM must be enabled, initialized, and have valid ownership before it can be used with BitLocker Drive Encryption.
'Private Const FVE_E_NOT_ALLOWED_IN_SAFE_MODE As Long = &H80310040 '  The BitLocker configuration of the specified drive cannot be managed because this computer is currently operating in Safe Mode. While in Safe Mode, BitLocker Drive Encryption can only be used for recovery purposes.
'Private Const FVE_E_TPM_INVALID_PCR As Long = &H80310041 '  The Trusted Platform Module (TPM) was unable to unlock the drive. Either the system boot information changed after choosing BitLocker settings or the PIN did not match. If the problem persists after several tries, there may be a hardware or firmware problem.
'Private Const FVE_E_TPM_NO_VMK As Long = &H80310042 '  The BitLocker encryption key cannot be obtained from the Trusted Platform Module (TPM).
'Private Const FVE_E_PIN_INVALID As Long = &H80310043 '  The BitLocker encryption key cannot be obtained from the Trusted Platform Module (TPM) and PIN.
'Private Const FVE_E_AUTH_INVALID_APPLICATION As Long = &H80310044 '  A boot application has changed since BitLocker Drive Encryption was enabled.
'Private Const FVE_E_AUTH_INVALID_CONFIG As Long = &H80310045 '  The Boot Configuration Data (BCD) settings have changed since BitLocker Drive Encryption was enabled.
'Private Const FVE_E_FIPS_DISABLE_PROTECTION_NOT_ALLOWED As Long = &H80310046 '  The Group Policy setting requiring FIPS compliance prohibits the use of unencrypted keys, which prevents BitLocker from being suspended on this drive. Please contact your domain administrator for more information.
'Private Const FVE_E_FS_NOT_EXTENDED As Long = &H80310047 '  This drive cannot be encrypted by BitLocker Drive Encryption because the file system does not extend to the end of the drive. Repartition this drive and then try again.
'Private Const FVE_E_FIRMWARE_TYPE_NOT_SUPPORTED As Long = &H80310048 '  BitLocker Drive Encryption cannot be enabled on the operating system drive. Contact the computer manufacturer for BIOS upgrade instructions.
'Private Const FVE_E_NO_LICENSE As Long = &H80310049 '  This version of Windows does not include BitLocker Drive Encryption. To use BitLocker Drive Encryption, please upgrade the operating system.
'Private Const FVE_E_NOT_ON_STACK As Long = &H8031004A '  BitLocker Drive Encryption cannot be used because critical BitLocker system files are missing or corrupted. Use Windows Startup Repair to restore these files to your computer.
'Private Const FVE_E_FS_MOUNTED As Long = &H8031004B '  The drive cannot be locked when the drive is in use.
'Private Const FVE_E_TOKEN_NOT_IMPERSONATED As Long = &H8031004C '  The access token associated with the current thread is not an impersonated token.
'Private Const FVE_E_DRY_RUN_FAILED As Long = &H8031004D '  The BitLocker encryption key cannot be obtained. Verify that the Trusted Platform Module (TPM) is enabled and ownership has been taken. If this computer does not have a TPM, verify that the USB drive is inserted and available.
'Private Const FVE_E_REBOOT_REQUIRED As Long = &H8031004E '  You must restart your computer before continuing with BitLocker Drive Encryption.
'Private Const FVE_E_DEBUGGER_ENABLED As Long = &H8031004F '  Drive encryption cannot occur while boot debugging is enabled. Use the bcdedit command-line tool to turn off boot debugging.
'Private Const FVE_E_RAW_ACCESS As Long = &H80310050 '  No action was taken as BitLocker Drive Encryption is in raw access mode.
'Private Const FVE_E_RAW_BLOCKED As Long = &H80310051 '  BitLocker Drive Encryption cannot enter raw access mode for this drive because the drive is currently in use.
'Private Const FVE_E_BCD_APPLICATIONS_PATH_INCORRECT As Long = &H80310052 '  The path specified in the Boot Configuration Data (BCD) for a BitLocker Drive Encryption integrity-protected application is incorrect. Please verify and correct your BCD settings and try again.
'Private Const FVE_E_NOT_ALLOWED_IN_VERSION As Long = &H80310053 '  BitLocker Drive Encryption can only be used for limited provisioning or recovery purposes when the computer is running in pre-installation or recovery environments.
'Private Const FVE_E_NO_AUTOUNLOCK_MASTER_KEY As Long = &H80310054 '  The auto-unlock master key was not available from the operating system drive.
'Private Const FVE_E_MOR_FAILED As Long = &H80310055 '  The system firmware failed to enable clearing of system memory when the computer was restarted.
'Private Const FVE_E_HIDDEN_VOLUME As Long = &H80310056 '  The hidden drive cannot be encrypted.
'Private Const FVE_E_TRANSIENT_STATE As Long = &H80310057 '  BitLocker encryption keys were ignored because the drive was in a transient state.
'Private Const FVE_E_PUBKEY_NOT_ALLOWED As Long = &H80310058 '  Public key based protectors are not allowed on this drive.
'Private Const FVE_E_VOLUME_HANDLE_OPEN As Long = &H80310059 '  BitLocker Drive Encryption is already performing an operation on this drive. Please complete all operations before continuing.
'Private Const FVE_E_NO_FEATURE_LICENSE As Long = &H8031005A '  This version of Windows does not support this feature of BitLocker Drive Encryption. To use this feature, upgrade the operating system.
'Private Const FVE_E_INVALID_STARTUP_OPTIONS As Long = &H8031005B '  The Group Policy settings for BitLocker startup options are in conflict and cannot be applied. Contact your system administrator for more information.
'Private Const FVE_E_POLICY_RECOVERY_PASSWORD_NOT_ALLOWED As Long = &H8031005C '  Group Policy settings do not permit the creation of a recovery password.
'Private Const FVE_E_POLICY_RECOVERY_PASSWORD_REQUIRED As Long = &H8031005D '  Group Policy settings require the creation of a recovery password.
'Private Const FVE_E_POLICY_RECOVERY_KEY_NOT_ALLOWED As Long = &H8031005E '  Group Policy settings do not permit the creation of a recovery key.
'Private Const FVE_E_POLICY_RECOVERY_KEY_REQUIRED As Long = &H8031005F '  Group Policy settings require the creation of a recovery key.
'Private Const FVE_E_POLICY_STARTUP_PIN_NOT_ALLOWED As Long = &H80310060 '  Group Policy settings do not permit the use of a PIN at startup. Please choose a different BitLocker startup option.
'Private Const FVE_E_POLICY_STARTUP_PIN_REQUIRED As Long = &H80310061 '  Group Policy settings require the use of a PIN at startup. Please choose this BitLocker startup option.
'Private Const FVE_E_POLICY_STARTUP_KEY_NOT_ALLOWED As Long = &H80310062 '  Group Policy settings do not permit the use of a startup key. Please choose a different BitLocker startup option.
'Private Const FVE_E_POLICY_STARTUP_KEY_REQUIRED As Long = &H80310063 '  Group Policy settings require the use of a startup key. Please choose this BitLocker startup option.
'Private Const FVE_E_POLICY_STARTUP_PIN_KEY_NOT_ALLOWED As Long = &H80310064 '  Group Policy settings do not permit the use of a startup key and PIN. Please choose a different BitLocker startup option.
'Private Const FVE_E_POLICY_STARTUP_PIN_KEY_REQUIRED As Long = &H80310065 '  Group Policy settings require the use of a startup key and PIN. Please choose this BitLocker startup option.
'Private Const FVE_E_POLICY_STARTUP_TPM_NOT_ALLOWED As Long = &H80310066 '  Group policy does not permit the use of TPM-only at startup. Please choose a different BitLocker startup option.
'Private Const FVE_E_POLICY_STARTUP_TPM_REQUIRED As Long = &H80310067 '  Group Policy settings require the use of TPM-only at startup. Please choose this BitLocker startup option.
'Private Const FVE_E_POLICY_INVALID_PIN_LENGTH As Long = &H80310068 '  The PIN provided does not meet minimum or maximum length requirements.
'Private Const FVE_E_KEY_PROTECTOR_NOT_SUPPORTED As Long = &H80310069 '  The key protector is not supported by the version of BitLocker Drive Encryption currently on the drive. Upgrade the drive to add the key protector.
'Private Const FVE_E_POLICY_PASSPHRASE_NOT_ALLOWED As Long = &H8031006A '  Group Policy settings do not permit the creation of a password.
'Private Const FVE_E_POLICY_PASSPHRASE_REQUIRED As Long = &H8031006B '  Group Policy settings require the creation of a password.
'Private Const FVE_E_FIPS_PREVENTS_PASSPHRASE As Long = &H8031006C '  The Group Policy setting requiring FIPS compliance prevents passwords from being generated or used. Please contact your system administrator for more information.
'Private Const FVE_E_OS_VOLUME_PASSPHRASE_NOT_ALLOWED As Long = &H8031006D '  A password cannot be added to the operating system drive.
'Private Const FVE_E_INVALID_BITLOCKER_OID As Long = &H8031006E '  The BitLocker object identifier (OID) on the drive appears to be invalid or corrupt. Use manage-BDE to reset the OID on this drive.
'Private Const FVE_E_VOLUME_TOO_SMALL As Long = &H8031006F '  The drive is too small to be protected using BitLocker Drive Encryption.
'Private Const FVE_E_DV_NOT_SUPPORTED_ON_FS As Long = &H80310070 '  The selected discovery drive type is incompatible with the file system on the drive. BitLocker To Go discovery drives must be created on FAT formatted drives.
'Private Const FVE_E_DV_NOT_ALLOWED_BY_GP As Long = &H80310071 '  The selected discovery drive type is not allowed by the computer's Group Policy settings. Verify that Group Policy settings allow the creation of discovery drives for use with BitLocker To Go.
'Private Const FVE_E_POLICY_USER_CERTIFICATE_NOT_ALLOWED As Long = &H80310072 '  Group Policy settings do not permit user certificates such as smart cards to be used with BitLocker Drive Encryption.
'Private Const FVE_E_POLICY_USER_CERTIFICATE_REQUIRED As Long = &H80310073 '  Group Policy settings require that you have a valid user certificate, such as a smart card, to be used with BitLocker Drive Encryption.
'Private Const FVE_E_POLICY_USER_CERT_MUST_BE_HW As Long = &H80310074 '  Group Policy settings requires that you use a smart card-based key protector with BitLocker Drive Encryption.
'Private Const FVE_E_POLICY_USER_CONFIGURE_FDV_AUTOUNLOCK_NOT_ALLOWED As Long = &H80310075 '  Group Policy settings do not permit BitLocker-protected fixed data drives to be automatically unlocked.
'Private Const FVE_E_POLICY_USER_CONFIGURE_RDV_AUTOUNLOCK_NOT_ALLOWED As Long = &H80310076 '  Group Policy settings do not permit BitLocker-protected removable data drives to be automatically unlocked.
'Private Const FVE_E_POLICY_USER_CONFIGURE_RDV_NOT_ALLOWED As Long = &H80310077 '  Group Policy settings do not permit you to configure BitLocker Drive Encryption on removable data drives.
'Private Const FVE_E_POLICY_USER_ENABLE_RDV_NOT_ALLOWED As Long = &H80310078 '  Group Policy settings do not permit you to turn on BitLocker Drive Encryption on removable data drives. Please contact your system administrator if you need to turn on BitLocker.
'Private Const FVE_E_POLICY_USER_DISABLE_RDV_NOT_ALLOWED As Long = &H80310079 '  Group Policy settings do not permit turning off BitLocker Drive Encryption on removable data drives. Please contact your system administrator if you need to turn off BitLocker.
'Private Const FVE_E_POLICY_INVALID_PASSPHRASE_LENGTH As Long = &H80310080 '  Your password does not meet minimum password length requirements. By default, passwords must be at least 8 characters in length. Check with your system administrator for the password length requirement in your organization.
'Private Const FVE_E_POLICY_PASSPHRASE_TOO_SIMPLE As Long = &H80310081 '  Your password does not meet the complexity requirements set by your system administrator. Try adding upper and lowercase characters, numbers, and symbols.
'Private Const FVE_E_RECOVERY_PARTITION As Long = &H80310082 '  This drive cannot be encrypted because it is reserved for Windows System Recovery Options.
'Private Const FVE_E_POLICY_CONFLICT_FDV_RK_OFF_AUK_ON As Long = &H80310083 '  BitLocker Drive Encryption cannot be applied to this drive because of conflicting Group Policy settings. BitLocker cannot be configured to automatically unlock fixed data drives when user recovery options are disabled. If you want BitLocker-protected fixed data drives to be automatically unlocked after key validation has occurred, please ask your system administrator to resolve the settings conflict before enabling BitLocker.
'Private Const FVE_E_POLICY_CONFLICT_RDV_RK_OFF_AUK_ON As Long = &H80310084 '  BitLocker Drive Encryption cannot be applied to this drive because of conflicting Group Policy settings. BitLocker cannot be configured to automatically unlock removable data drives when user recovery option are disabled. If you want BitLocker-protected removable data drives to be automatically unlocked after key validation has occurred, please ask your system administrator to resolve the settings conflict before enabling BitLocker.
'Private Const FVE_E_NON_BITLOCKER_OID As Long = &H80310085 '  The Enhanced Key Usage (EKU) attribute of the specified certificate does not permit it to be used for BitLocker Drive Encryption. BitLocker does not require that a certificate have an EKU attribute, but if one is configured it must be set to an object identifier (OID) that matches the OID configured for BitLocker.
'Private Const FVE_E_POLICY_PROHIBITS_SELFSIGNED As Long = &H80310086 '  BitLocker Drive Encryption cannot be applied to this drive as currently configured because of Group Policy settings. The certificate you provided for drive encryption is self-signed. Current Group Policy settings do not permit the use of self-signed certificates. Obtain a new certificate from your certification authority before attempting to enable BitLocker.
'Private Const FVE_E_POLICY_CONFLICT_RO_AND_STARTUP_KEY_REQUIRED As Long = &H80310087 '  BitLocker Encryption cannot be applied to this drive because of conflicting Group Policy settings. When write access to drives not protected by BitLocker is denied, the use of a USB startup key cannot be required. Please have your system administrator resolve these policy conflicts before attempting to enable BitLocker.
'Private Const FVE_E_CONV_RECOVERY_FAILED As Long = &H80310088 '  BitLocker Drive Encryption failed to recover from an abruptly terminated conversion. This could be due to either all conversion logs being corrupted or the media being write-protected.
'Private Const FVE_E_VIRTUALIZED_SPACE_TOO_BIG As Long = &H80310089 '  The requested virtualization size is too big.
'Private Const FVE_E_POLICY_CONFLICT_OSV_RP_OFF_ADB_ON As Long = &H80310090 '  BitLocker Drive Encryption cannot be applied to this drive because there are conflicting Group Policy settings for recovery options on operating system drives. Storing recovery information to Active Directory Domain Services cannot be required when the generation of recovery passwords is not permitted. Please have your system administrator resolve these policy conflicts before attempting to enable BitLocker.
'Private Const FVE_E_POLICY_CONFLICT_FDV_RP_OFF_ADB_ON As Long = &H80310091 '  BitLocker Drive Encryption cannot be applied to this drive because there are conflicting Group Policy settings for recovery options on fixed data drives. Storing recovery information to Active Directory Domain Services cannot be required when the generation of recovery passwords is not permitted. Please have your system administrator resolve these policy conflicts before attempting to enable BitLocker.
'Private Const FVE_E_POLICY_CONFLICT_RDV_RP_OFF_ADB_ON As Long = &H80310092 '  BitLocker Drive Encryption cannot be applied to this drive because there are conflicting Group Policy settings for recovery options on removable data drives. Storing recovery information to Active Directory Domain Services cannot be required when the generation of recovery passwords is not permitted. Please have your system administrator resolve these policy conflicts before attempting to enable BitLocker.
'Private Const FVE_E_NON_BITLOCKER_KU As Long = &H80310093 '  The Key Usage (KU) attribute of the specified certificate does not permit it to be used for BitLocker Drive Encryption. BitLocker does not require that a certificate have a KU attribute, but if one is configured it must be set to either Key Encipherment or Key Agreement.
'Private Const FVE_E_PRIVATEKEY_AUTH_FAILED As Long = &H80310094 '  The private key associated with the specified certificate cannot be authorized. The private key authorization was either not provided or the provided authorization was invalid.
'Private Const FVE_E_REMOVAL_OF_DRA_FAILED As Long = &H80310095 '  Removal of the data recovery agent certificate must be done using the Certificates snap-in.
'Private Const FVE_E_OPERATION_NOT_SUPPORTED_ON_VISTA_VOLUME As Long = &H80310096 '  This drive was encrypted using the version of BitLocker Drive Encryption included with Windows Vista and Windows Server 2008 which does not support organizational identifiers. To specify organizational identifiers for this drive upgrade the drive encryption to the latest version using the "manage-bde -upgrade" command.
'Private Const FVE_E_CANT_LOCK_AUTOUNLOCK_ENABLED_VOLUME As Long = &H80310097 '  The drive cannot be locked because it is automatically unlocked on this computer.  Remove the automatic unlock protector to lock this drive.
'Private Const FVE_E_FIPS_HASH_KDF_NOT_ALLOWED As Long = &H80310098 '  The default BitLocker Key Derivation Function SP800-56A for ECC smart cards is not supported by your smart card. The Group Policy setting requiring FIPS-compliance prevents BitLocker from using any other key derivation function for encryption. You have to use a FIPS compliant smart card in FIPS restricted environments.
'Private Const FVE_E_ENH_PIN_INVALID As Long = &H80310099 '  The BitLocker encryption key could not be obtained from the Trusted Platform Module (TPM) and enhanced PIN. Try using a PIN containing only numerals.
'Private Const FVE_E_INVALID_PIN_CHARS As Long = &H8031009A '  The requested TPM PIN contains invalid characters.
'Private Const FVE_E_INVALID_DATUM_TYPE As Long = &H8031009B '  The management information stored on the drive contained an unknown type. If you are using an old version of Windows, try accessing the drive from the latest version.
'Private Const FVE_E_EFI_ONLY As Long = &H8031009C '  The feature is only supported on EFI systems.
'Private Const FVE_E_MULTIPLE_NKP_CERTS As Long = &H8031009D '  More than one Network Key Protector certificate has been found on the system.
'Private Const FVE_E_REMOVAL_OF_NKP_FAILED As Long = &H8031009E '  Removal of the Network Key Protector certificate must be done using the Certificates snap-in.
'Private Const FVE_E_INVALID_NKP_CERT As Long = &H8031009F '  An invalid certificate has been found in the Network Key Protector certificate store.
'Private Const FVE_E_NO_EXISTING_PIN As Long = &H803100A0 '  This drive isn't protected with a PIN.
'Private Const FVE_E_PROTECTOR_CHANGE_PIN_MISMATCH As Long = &H803100A1 '  Please enter the correct current PIN.
'Private Const FVE_E_PIN_PROTECTOR_CHANGE_BY_STD_USER_DISALLOWED As Long = &H803100A2 '  You must be logged on with an administrator account to change the PIN. Click the link to reset the PIN as an administrator.
'Private Const FVE_E_PROTECTOR_CHANGE_MAX_PIN_CHANGE_ATTEMPTS_REACHED As Long = &H803100A3 '  BitLocker has disabled PIN changes after too many failed requests. Click the link to reset the PIN as an administrator.
'Private Const FVE_E_POLICY_PASSPHRASE_REQUIRES_ASCII As Long = &H803100A4 '  Your system administrator requires that passwords contain only printable ASCII characters. This includes unaccented letters (A-Z, a-z), numbers (0-9), space, arithmetic signs, common punctuation, separators, and the following symbols: # $ & @ ^ _ ~ .
'Private Const FVE_E_FULL_ENCRYPTION_NOT_ALLOWED_ON_TP_STORAGE As Long = &H803100A5 '  BitLocker Drive Encryption only supports Used Space Only encryption on thin provisioned storage.
'Private Const FVE_E_WIPE_NOT_ALLOWED_ON_TP_STORAGE As Long = &H803100A6 '  BitLocker Drive Encryption does not support wiping free space on thin provisioned storage.
'Private Const FVE_E_KEY_LENGTH_NOT_SUPPORTED_BY_EDRIVE As Long = &H803100A7 '  The required authentication key length is not supported by the drive.
'Private Const FVE_E_NO_EXISTING_PASSPHRASE As Long = &H803100A8 '  This drive isn't protected with a password.
'Private Const FVE_E_PROTECTOR_CHANGE_PASSPHRASE_MISMATCH As Long = &H803100A9 '  Please enter the correct current password.
'Private Const FVE_E_PASSPHRASE_TOO_LONG As Long = &H803100AA '  The password cannot exceed 256 characters.
'Private Const FVE_E_NO_PASSPHRASE_WITH_TPM As Long = &H803100AB '  A password key protector cannot be added because a TPM protector exists on the drive.
'Private Const FVE_E_NO_TPM_WITH_PASSPHRASE As Long = &H803100AC '  A TPM key protector cannot be added because a password protector exists on the drive.
'Private Const FVE_E_NOT_ALLOWED_ON_CSV_STACK As Long = &H803100AD '  This command can only be performed from the coordinator node for the specified CSV volume.
'Private Const FVE_E_NOT_ALLOWED_ON_CLUSTER As Long = &H803100AE '  This command cannot be performed on a volume when it is part of a cluster.
'Private Const FVE_E_EDRIVE_NO_FAILOVER_TO_SW As Long = &H803100AF '  BitLocker did not revert to using BitLocker software encryption due to group policy configuration.
'Private Const FVE_E_EDRIVE_BAND_IN_USE As Long = &H803100B0 '  The drive cannot be managed by BitLocker because the drive's hardware encryption feature is already in use.
'Private Const FVE_E_EDRIVE_DISALLOWED_BY_GP As Long = &H803100B1 '  Group Policy settings do not allow the use of hardware-based encryption.
'Private Const FVE_E_EDRIVE_INCOMPATIBLE_VOLUME As Long = &H803100B2 '  The drive specified does not support hardware-based encryption.
'Private Const FVE_E_NOT_ALLOWED_TO_UPGRADE_WHILE_CONVERTING As Long = &H803100B3 '  BitLocker cannot be upgraded during disk encryption or decryption.
'Private Const FVE_E_EDRIVE_DV_NOT_SUPPORTED As Long = &H803100B4 '  Discovery Volumes are not supported for volumes using hardware encryption.
'Private Const FVE_E_NO_PREBOOT_KEYBOARD_DETECTED As Long = &H803100B5 '  No pre-boot keyboard detected. The user may not be able to provide required input to unlock the volume.
'Private Const FVE_E_NO_PREBOOT_KEYBOARD_OR_WINRE_DETECTED As Long = &H803100B6 '  No pre-boot keyboard or Windows Recovery Environment detected. The user may not be able to provide required input to unlock the volume.
'Private Const FVE_E_POLICY_REQUIRES_STARTUP_PIN_ON_TOUCH_DEVICE As Long = &H803100B7 '  Group Policy settings require the creation of a startup PIN, but a pre-boot keyboard is not available on this device. The user may not be able to provide required input to unlock the volume.
'Private Const FVE_E_POLICY_REQUIRES_RECOVERY_PASSWORD_ON_TOUCH_DEVICE As Long = &H803100B8 '  Group Policy settings require the creation of a recovery password, but neither a pre-boot keyboard nor Windows Recovery Environment is available on this device. The user may not be able to provide required input to unlock the volume.
'Private Const FVE_E_WIPE_CANCEL_NOT_APPLICABLE As Long = &H803100B9 '  Wipe of free space is not currently taking place.
'Private Const FVE_E_SECUREBOOT_DISABLED As Long = &H803100BA '  BitLocker cannot use Secure Boot for platform integrity because Secure Boot has been disabled.
'Private Const FVE_E_SECUREBOOT_CONFIGURATION_INVALID As Long = &H803100BB '  BitLocker cannot use Secure Boot for platform integrity because the Secure Boot configuration does not meet the requirements for BitLocker.
'Private Const FVE_E_EDRIVE_DRY_RUN_FAILED As Long = &H803100BC '  Your computer doesn't support BitLocker hardware-based encryption. Check with your computer manufacturer for firmware updates.
'Private Const FVE_E_SHADOW_COPY_PRESENT As Long = &H803100BD '  BitLocker cannot be enabled on the volume because it contains a Volume Shadow Copy. Remove all Volume Shadow Copies before encrypting the volume.
'Private Const FVE_E_POLICY_INVALID_ENHANCED_BCD_SETTINGS As Long = &H803100BE '  BitLocker Drive Encryption cannot be applied to this drive because the Group Policy setting for Enhanced Boot Configuration Data contains invalid data. Please have your system administrator resolve this invalid configuration before attempting to enable BitLocker.
'Private Const FVE_E_EDRIVE_INCOMPATIBLE_FIRMWARE As Long = &H803100BF '  This PC's firmware is not capable of supporting hardware encryption.
'Private Const FVE_E_PROTECTOR_CHANGE_MAX_PASSPHRASE_CHANGE_ATTEMPTS_REACHED As Long = &H803100C0 '  BitLocker has disabled password changes after too many failed requests. Click the link to reset the password as an administrator.
'Private Const FVE_E_PASSPHRASE_PROTECTOR_CHANGE_BY_STD_USER_DISALLOWED As Long = &H803100C1 '  You must be logged on with an administrator account to change the password. Click the link to reset the password as an administrator.
'Private Const FVE_E_LIVEID_ACCOUNT_SUSPENDED As Long = &H803100C2 '  BitLocker cannot save the recovery password because the specified Microsoft account is Suspended.
'Private Const FVE_E_LIVEID_ACCOUNT_BLOCKED As Long = &H803100C3 '  BitLocker cannot save the recovery password because the specified Microsoft account is Blocked.
'Private Const FVE_E_NOT_PROVISIONED_ON_ALL_VOLUMES As Long = &H803100C4 '  This PC is not provisioned to support device encryption. Please enable BitLocker on all volumes to comply with device encryption policy.
'Private Const FVE_E_DE_FIXED_DATA_NOT_SUPPORTED As Long = &H803100C5 '  This PC cannot support device encryption because unencrypted fixed data volumes are present.
'Private Const FVE_E_DE_HARDWARE_NOT_COMPLIANT As Long = &H803100C6 '  This PC does not meet the hardware requirements to support device encryption.
'Private Const FVE_E_DE_WINRE_NOT_CONFIGURED As Long = &H803100C7 '  This PC cannot support device encryption because WinRE is not properly configured.
'Private Const FVE_E_DE_PROTECTION_SUSPENDED As Long = &H803100C8 '  Protection is enabled on the volume but has been suspended. This is likely to have happened due to an update being applied to your system. Please try again after a reboot.
'Private Const FVE_E_DE_OS_VOLUME_NOT_PROTECTED As Long = &H803100C9 '  This PC is not provisioned to support device encryption.
'Private Const FVE_E_DE_DEVICE_LOCKEDOUT As Long = &H803100CA '  Device Lock has been triggered due to too many incorrect password attempts.
'Private Const FVE_E_DE_PROTECTION_NOT_YET_ENABLED As Long = &H803100CB '  Protection has not been enabled on the volume. Enabling protection requires a connected account. If you already have a connected account and are seeing this error, please refer to the event log for more information.
'Private Const FVE_E_INVALID_PIN_CHARS_DETAILED As Long = &H803100CC '  Your PIN can only contain numbers from 0 to 9.
'Private Const FVE_E_DEVICE_LOCKOUT_COUNTER_UNAVAILABLE As Long = &H803100CD '  BitLocker cannot use hardware replay protection because no counter is available on your PC.
'Private Const FVE_E_DEVICELOCKOUT_COUNTER_MISMATCH As Long = &H803100CE '  Device Lockout state validation failed due to counter mismatch.
'Private Const FVE_E_BUFFER_TOO_LARGE As Long = &H803100CF '  The input buffer is too large.
'Private Const FVE_E_NO_SUCH_CAPABILITY_ON_TARGET As Long = &H803100D0 '  The target of an invocation does not support requested capability.
'Private Const FVE_E_DE_PREVENTED_FOR_OS As Long = &H803100D1 '  Device encryption is currently blocked by this PC's configuration.
'Private Const FVE_E_DE_VOLUME_OPTED_OUT As Long = &H803100D2 '  This drive has been opted out of device encryption.
'Private Const FVE_E_DE_VOLUME_NOT_SUPPORTED As Long = &H803100D3 '  Device encryption isn't available for this drive.
'Private Const FVE_E_EOW_NOT_SUPPORTED_IN_VERSION As Long = &H803100D4 '  The encrypt on write mode for BitLocker is not supported in this version of Windows. You can turn on BitLocker without using the encrypt on write mode.
'Private Const FVE_E_ADBACKUP_NOT_ENABLED As Long = &H803100D5 '  Group policy prevents you from backing up your recovery password to Active Directory for this drive type. For more info, contact your system administrator.
'Private Const FVE_E_VOLUME_EXTEND_PREVENTS_EOW_DECRYPT As Long = &H803100D6 '  Device encryption can't be turned off while this drive is being encrypted. Please try again later.
'Private Const FVE_E_NOT_DE_VOLUME As Long = &H803100D7 '  This action isn't supported because this drive isn't automatically managed with device encryption.
'Private Const FVE_E_PROTECTION_CANNOT_BE_DISABLED As Long = &H803100D8 '  BitLocker can't be suspended on this drive until the next restart.
'Private Const FWP_E_CALLOUT_NOT_FOUND As Long = &H80320001 '  The callout does not exist.
'Private Const FWP_E_CONDITION_NOT_FOUND As Long = &H80320002 '  The filter condition does not exist.
'Private Const FWP_E_FILTER_NOT_FOUND As Long = &H80320003 '  The filter does not exist.
'Private Const FWP_E_LAYER_NOT_FOUND As Long = &H80320004 '  The layer does not exist.
'Private Const FWP_E_PROVIDER_NOT_FOUND As Long = &H80320005 '  The provider does not exist.
'Private Const FWP_E_PROVIDER_CONTEXT_NOT_FOUND As Long = &H80320006 '  The provider context does not exist.
'Private Const FWP_E_SUBLAYER_NOT_FOUND As Long = &H80320007 '  The sublayer does not exist.
'Private Const FWP_E_NOT_FOUND As Long = &H80320008 '  The object does not exist.
'Private Const FWP_E_ALREADY_EXISTS As Long = &H80320009 '  An object with that GUID or LUID already exists.
'Private Const FWP_E_IN_USE As Long = &H8032000A '  The object is referenced by other objects so cannot be deleted.
'Private Const FWP_E_DYNAMIC_SESSION_IN_PROGRESS As Long = &H8032000B '  The call is not allowed from within a dynamic session.
'Private Const FWP_E_WRONG_SESSION As Long = &H8032000C '  The call was made from the wrong session so cannot be completed.
'Private Const FWP_E_NO_TXN_IN_PROGRESS As Long = &H8032000D '  The call must be made from within an explicit transaction.
'Private Const FWP_E_TXN_IN_PROGRESS As Long = &H8032000E '  The call is not allowed from within an explicit transaction.
'Private Const FWP_E_TXN_ABORTED As Long = &H8032000F '  The explicit transaction has been forcibly cancelled.
'Private Const FWP_E_SESSION_ABORTED As Long = &H80320010 '  The session has been cancelled.
'Private Const FWP_E_INCOMPATIBLE_TXN As Long = &H80320011 '  The call is not allowed from within a read-only transaction.
'Private Const FWP_E_TIMEOUT As Long = &H80320012 '  The call timed out while waiting to acquire the transaction lock.
'Private Const FWP_E_NET_EVENTS_DISABLED As Long = &H80320013 '  Collection of network diagnostic events is disabled.
'Private Const FWP_E_INCOMPATIBLE_LAYER As Long = &H80320014 '  The operation is not supported by the specified layer.
'Private Const FWP_E_KM_CLIENTS_ONLY As Long = &H80320015 '  The call is allowed for kernel-mode callers only.
'Private Const FWP_E_LIFETIME_MISMATCH As Long = &H80320016 '  The call tried to associate two objects with incompatible lifetimes.
'Private Const FWP_E_BUILTIN_OBJECT As Long = &H80320017 '  The object is built in so cannot be deleted.
'Private Const FWP_E_TOO_MANY_CALLOUTS As Long = &H80320018 '  The maximum number of callouts has been reached.
'Private Const FWP_E_NOTIFICATION_DROPPED As Long = &H80320019 '  A notification could not be delivered because a message queue is at its maximum capacity.
'Private Const FWP_E_TRAFFIC_MISMATCH As Long = &H8032001A '  The traffic parameters do not match those for the security association context.
'Private Const FWP_E_INCOMPATIBLE_SA_STATE As Long = &H8032001B '  The call is not allowed for the current security association state.
'Private Const FWP_E_NULL_POINTER As Long = &H8032001C '  A required pointer is null.
'Private Const FWP_E_INVALID_ENUMERATOR As Long = &H8032001D '  An enumerator is not valid.
'Private Const FWP_E_INVALID_FLAGS As Long = &H8032001E '  The flags field contains an invalid value.
'Private Const FWP_E_INVALID_NET_MASK As Long = &H8032001F '  A network mask is not valid.
'Private Const FWP_E_INVALID_RANGE As Long = &H80320020 '  An FWP_RANGE is not valid.
'Private Const FWP_E_INVALID_INTERVAL As Long = &H80320021 '  The time interval is not valid.
'Private Const FWP_E_ZERO_LENGTH_ARRAY As Long = &H80320022 '  An array that must contain at least one element is zero length.
'Private Const FWP_E_NULL_DISPLAY_NAME As Long = &H80320023 '  The displayData.name field cannot be null.
'Private Const FWP_E_INVALID_ACTION_TYPE As Long = &H80320024 '  The action type is not one of the allowed action types for a filter.
'Private Const FWP_E_INVALID_WEIGHT As Long = &H80320025 '  The filter weight is not valid.
'Private Const FWP_E_MATCH_TYPE_MISMATCH As Long = &H80320026 '  A filter condition contains a match type that is not compatible with the operands.
'Private Const FWP_E_TYPE_MISMATCH As Long = &H80320027 '  An FWP_VALUE or FWPM_CONDITION_VALUE is of the wrong type.
'Private Const FWP_E_OUT_OF_BOUNDS As Long = &H80320028 '  An integer value is outside the allowed range.
'Private Const FWP_E_RESERVED As Long = &H80320029 '  A reserved field is non-zero.
'Private Const FWP_E_DUPLICATE_CONDITION As Long = &H8032002A '  A filter cannot contain multiple conditions operating on a single field.
'Private Const FWP_E_DUPLICATE_KEYMOD As Long = &H8032002B '  A policy cannot contain the same keying module more than once.
'Private Const FWP_E_ACTION_INCOMPATIBLE_WITH_LAYER As Long = &H8032002C '  The action type is not compatible with the layer.
'Private Const FWP_E_ACTION_INCOMPATIBLE_WITH_SUBLAYER As Long = &H8032002D '  The action type is not compatible with the sublayer.
'Private Const FWP_E_CONTEXT_INCOMPATIBLE_WITH_LAYER As Long = &H8032002E '  The raw context or the provider context is not compatible with the layer.
'Private Const FWP_E_CONTEXT_INCOMPATIBLE_WITH_CALLOUT As Long = &H8032002F '  The raw context or the provider context is not compatible with the callout.
'Private Const FWP_E_INCOMPATIBLE_AUTH_METHOD As Long = &H80320030 '  The authentication method is not compatible with the policy type.
'Private Const FWP_E_INCOMPATIBLE_DH_GROUP As Long = &H80320031 '  The Diffie-Hellman group is not compatible with the policy type.
'Private Const FWP_E_EM_NOT_SUPPORTED As Long = &H80320032 '  An IKE policy cannot contain an Extended Mode policy.
'Private Const FWP_E_NEVER_MATCH As Long = &H80320033 '  The enumeration template or subscription will never match any objects.
'Private Const FWP_E_PROVIDER_CONTEXT_MISMATCH As Long = &H80320034 '  The provider context is of the wrong type.
'Private Const FWP_E_INVALID_PARAMETER As Long = &H80320035 '  The parameter is incorrect.
'Private Const FWP_E_TOO_MANY_SUBLAYERS As Long = &H80320036 '  The maximum number of sublayers has been reached.
'Private Const FWP_E_CALLOUT_NOTIFICATION_FAILED As Long = &H80320037 '  The notification function for a callout returned an error.
'Private Const FWP_E_INVALID_AUTH_TRANSFORM As Long = &H80320038 '  The IPsec authentication transform is not valid.
'Private Const FWP_E_INVALID_CIPHER_TRANSFORM As Long = &H80320039 '  The IPsec cipher transform is not valid.
'Private Const FWP_E_INCOMPATIBLE_CIPHER_TRANSFORM As Long = &H8032003A '  The IPsec cipher transform is not compatible with the policy.
'Private Const FWP_E_INVALID_TRANSFORM_COMBINATION As Long = &H8032003B '  The combination of IPsec transform types is not valid.
'Private Const FWP_E_DUPLICATE_AUTH_METHOD As Long = &H8032003C '  A policy cannot contain the same auth method more than once.
'Private Const FWP_E_INVALID_TUNNEL_ENDPOINT As Long = &H8032003D '  A tunnel endpoint configuration is invalid.
'Private Const FWP_E_L2_DRIVER_NOT_READY As Long = &H8032003E '  The WFP MAC Layers are not ready.
'Private Const FWP_E_KEY_DICTATOR_ALREADY_REGISTERED As Long = &H8032003F '  A key manager capable of key dictation is already registered
'Private Const FWP_E_KEY_DICTATION_INVALID_KEYING_MATERIAL As Long = &H80320040 '  A key manager dictated invalid keys
'Private Const FWP_E_CONNECTIONS_DISABLED As Long = &H80320041 '  The BFE IPsec Connection Tracking is disabled.
'Private Const FWP_E_INVALID_DNS_NAME As Long = &H80320042 '  The DNS name is invalid.
'Private Const FWP_E_STILL_ON As Long = &H80320043 '  The engine option is still enabled due to other configuration settings.
'Private Const FWP_E_IKEEXT_NOT_RUNNING As Long = &H80320044 '  The IKEEXT service is not running.  This service only runs when there is IPsec policy applied to the machine.
'Private Const FWP_E_DROP_NOICMP As Long = &H80320104 '  The packet should be dropped, no ICMP should be sent.
'Private Const WS_S_ASYNC As Long = &H3D0000  '  The function call is completing asynchronously.
'Private Const WS_S_END As Long = &H3D0001  '  There are no more messages available on the channel.
'Private Const WS_E_INVALID_FORMAT As Long = &H803D0000 '  The input data was not in the expected format or did not have the expected value.
'Private Const WS_E_OBJECT_FAULTED As Long = &H803D0001 '  The operation could not be completed because the object is in a faulted state due to a previous error.
'Private Const WS_E_NUMERIC_OVERFLOW As Long = &H803D0002 '  The operation could not be completed because it would lead to numeric overflow.
'Private Const WS_E_INVALID_OPERATION As Long = &H803D0003 '  The operation is not allowed due to the current state of the object.
'Private Const WS_E_OPERATION_ABORTED As Long = &H803D0004 '  The operation was aborted.
'Private Const WS_E_ENDPOINT_ACCESS_DENIED As Long = &H803D0005 '  Access was denied by the remote endpoint.
'Private Const WS_E_OPERATION_TIMED_OUT As Long = &H803D0006 '  The operation did not complete within the time allotted.
'Private Const WS_E_OPERATION_ABANDONED As Long = &H803D0007 '  The operation was abandoned.
'Private Const WS_E_QUOTA_EXCEEDED As Long = &H803D0008 '  A quota was exceeded.
'Private Const WS_E_NO_TRANSLATION_AVAILABLE As Long = &H803D0009 '  The information was not available in the specified language.
'Private Const WS_E_SECURITY_VERIFICATION_FAILURE As Long = &H803D000A '  Security verification was not successful for the received data.
'Private Const WS_E_ADDRESS_IN_USE As Long = &H803D000B '  The address is already being used.
'Private Const WS_E_ADDRESS_NOT_AVAILABLE As Long = &H803D000C '  The address is not valid for this context.
'Private Const WS_E_ENDPOINT_NOT_FOUND As Long = &H803D000D '  The remote endpoint does not exist or could not be located.
'Private Const WS_E_ENDPOINT_NOT_AVAILABLE As Long = &H803D000E '  The remote endpoint is not currently in service at this location.
'Private Const WS_E_ENDPOINT_FAILURE As Long = &H803D000F '  The remote endpoint could not process the request.
'Private Const WS_E_ENDPOINT_UNREACHABLE As Long = &H803D0010 '  The remote endpoint was not reachable.
'Private Const WS_E_ENDPOINT_ACTION_NOT_SUPPORTED As Long = &H803D0011 '  The operation was not supported by the remote endpoint.
'Private Const WS_E_ENDPOINT_TOO_BUSY As Long = &H803D0012 '  The remote endpoint is unable to process the request due to being overloaded.
'Private Const WS_E_ENDPOINT_FAULT_RECEIVED As Long = &H803D0013 '  A message containing a fault was received from the remote endpoint.
'Private Const WS_E_ENDPOINT_DISCONNECTED As Long = &H803D0014 '  The connection with the remote endpoint was terminated.
'Private Const WS_E_PROXY_FAILURE As Long = &H803D0015 '  The HTTP proxy server could not process the request.
'Private Const WS_E_PROXY_ACCESS_DENIED As Long = &H803D0016 '  Access was denied by the HTTP proxy server.
'Private Const WS_E_NOT_SUPPORTED As Long = &H803D0017 '  The requested feature is not available on this platform.
'Private Const WS_E_PROXY_REQUIRES_BASIC_AUTH As Long = &H803D0018 '  The HTTP proxy server requires HTTP authentication scheme 'basic'.
'Private Const WS_E_PROXY_REQUIRES_DIGEST_AUTH As Long = &H803D0019 '  The HTTP proxy server requires HTTP authentication scheme 'digest'.
'Private Const WS_E_PROXY_REQUIRES_NTLM_AUTH As Long = &H803D001A '  The HTTP proxy server requires HTTP authentication scheme 'NTLM'.
'Private Const WS_E_PROXY_REQUIRES_NEGOTIATE_AUTH As Long = &H803D001B '  The HTTP proxy server requires HTTP authentication scheme 'negotiate'.
'Private Const WS_E_SERVER_REQUIRES_BASIC_AUTH As Long = &H803D001C '  The remote endpoint requires HTTP authentication scheme 'basic'.
'Private Const WS_E_SERVER_REQUIRES_DIGEST_AUTH As Long = &H803D001D '  The remote endpoint requires HTTP authentication scheme 'digest'.
'Private Const WS_E_SERVER_REQUIRES_NTLM_AUTH As Long = &H803D001E '  The remote endpoint requires HTTP authentication scheme 'NTLM'.
'Private Const WS_E_SERVER_REQUIRES_NEGOTIATE_AUTH As Long = &H803D001F '  The remote endpoint requires HTTP authentication scheme 'negotiate'.
'Private Const WS_E_INVALID_ENDPOINT_URL As Long = &H803D0020 '  The endpoint address URL is invalid.
'Private Const WS_E_OTHER As Long = &H803D0021 '  Unrecognized error occurred in the Windows Web Services framework.
'Private Const WS_E_SECURITY_TOKEN_EXPIRED As Long = &H803D0022 '  A security token was rejected by the server because it has expired.
'Private Const WS_E_SECURITY_SYSTEM_FAILURE As Long = &H803D0023 '  A security operation failed in the Windows Web Services framework.
'Private Const ERROR_NDIS_INTERFACE_CLOSING As Long = &H80340002 '  The binding to the network interface is being closed.
'Private Const ERROR_NDIS_BAD_VERSION As Long = &H80340004 '  An invalid version was specified.
'Private Const ERROR_NDIS_BAD_CHARACTERISTICS As Long = &H80340005 '  An invalid characteristics table was used.
'Private Const ERROR_NDIS_ADAPTER_NOT_FOUND As Long = &H80340006 '  Failed to find the network interface or network interface is not ready.
'Private Const ERROR_NDIS_OPEN_FAILED As Long = &H80340007 '  Failed to open the network interface.
'Private Const ERROR_NDIS_DEVICE_FAILED As Long = &H80340008 '  Network interface has encountered an internal unrecoverable failure.
'Private Const ERROR_NDIS_MULTICAST_FULL As Long = &H80340009 '  The multicast list on the network interface is full.
'Private Const ERROR_NDIS_MULTICAST_EXISTS As Long = &H8034000A '  An attempt was made to add a duplicate multicast address to the list.
'Private Const ERROR_NDIS_MULTICAST_NOT_FOUND As Long = &H8034000B '  At attempt was made to remove a multicast address that was never added.
'Private Const ERROR_NDIS_REQUEST_ABORTED As Long = &H8034000C '  Netowork interface aborted the request.
'Private Const ERROR_NDIS_RESET_IN_PROGRESS As Long = &H8034000D '  Network interface can not process the request because it is being reset.
'Private Const ERROR_NDIS_NOT_SUPPORTED As Long = &H803400BB '  Netword interface does not support this request.
'Private Const ERROR_NDIS_INVALID_PACKET As Long = &H8034000F '  An attempt was made to send an invalid packet on a network interface.
'Private Const ERROR_NDIS_ADAPTER_NOT_READY As Long = &H80340011 '  Network interface is not ready to complete this operation.
'Private Const ERROR_NDIS_INVALID_LENGTH As Long = &H80340014 '  The length of the buffer submitted for this operation is not valid.
'Private Const ERROR_NDIS_INVALID_DATA As Long = &H80340015 '  The data used for this operation is not valid.
'Private Const ERROR_NDIS_BUFFER_TOO_SHORT As Long = &H80340016 '  The length of buffer submitted for this operation is too small.
'Private Const ERROR_NDIS_INVALID_OID As Long = &H80340017 '  Network interface does not support this OID (Object Identifier)
'Private Const ERROR_NDIS_ADAPTER_REMOVED As Long = &H80340018 '  The network interface has been removed.
'Private Const ERROR_NDIS_UNSUPPORTED_MEDIA As Long = &H80340019 '  Network interface does not support this media type.
'Private Const ERROR_NDIS_GROUP_ADDRESS_IN_USE As Long = &H8034001A '  An attempt was made to remove a token ring group address that is in use by other components.
'Private Const ERROR_NDIS_FILE_NOT_FOUND As Long = &H8034001B '  An attempt was made to map a file that can not be found.
'Private Const ERROR_NDIS_ERROR_READING_FILE As Long = &H8034001C '  An error occurred while NDIS tried to map the file.
'Private Const ERROR_NDIS_ALREADY_MAPPED As Long = &H8034001D '  An attempt was made to map a file that is alreay mapped.
'Private Const ERROR_NDIS_RESOURCE_CONFLICT As Long = &H8034001E '  An attempt to allocate a hardware resource failed because the resource is used by another component.
'Private Const ERROR_NDIS_MEDIA_DISCONNECTED As Long = &H8034001F '  The I/O operation failed because network media is disconnected or wireless access point is out of range.
'Private Const ERROR_NDIS_INVALID_ADDRESS As Long = &H80340022 '  The network address used in the request is invalid.
'Private Const ERROR_NDIS_INVALID_DEVICE_REQUEST As Long = &H80340010 '  The specified request is not a valid operation for the target device.
'Private Const ERROR_NDIS_PAUSED As Long = &H8034002A '  The offload operation on the network interface has been paused.
'Private Const ERROR_NDIS_INTERFACE_NOT_FOUND As Long = &H8034002B '  Network interface was not found.
'Private Const ERROR_NDIS_UNSUPPORTED_REVISION As Long = &H8034002C '  The revision number specified in the structure is not supported.
'Private Const ERROR_NDIS_INVALID_PORT As Long = &H8034002D '  The specified port does not exist on this network interface.
'Private Const ERROR_NDIS_INVALID_PORT_STATE As Long = &H8034002E '  The current state of the specified port on this network interface does not support the requested operation.
'Private Const ERROR_NDIS_LOW_POWER_STATE As Long = &H8034002F '  The miniport adapter is in low power state.
'Private Const ERROR_NDIS_REINIT_REQUIRED As Long = &H80340030 '  This operation requires the miniport adapter to be reinitialized.
'Private Const ERROR_NDIS_DOT11_AUTO_CONFIG_ENABLED As Long = &H80342000 '  The wireless local area network interface is in auto configuration mode and doesn't support the requested parameter change operation.
'Private Const ERROR_NDIS_DOT11_MEDIA_IN_USE As Long = &H80342001 '  The wireless local area network interface is busy and can not perform the requested operation.
'Private Const ERROR_NDIS_DOT11_POWER_STATE_INVALID As Long = &H80342002 '  The wireless local area network interface is powered down and doesn't support the requested operation.
'Private Const ERROR_NDIS_PM_WOL_PATTERN_LIST_FULL As Long = &H80342003 '  The list of wake on LAN patterns is full.
'Private Const ERROR_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL As Long = &H80342004 '  The list of low power protocol offloads is full.
'Private Const ERROR_NDIS_INDICATION_REQUIRED As Long = &H340001  '  The request will be completed later by NDIS status indication.
'Private Const ERROR_NDIS_OFFLOAD_POLICY As Long = &HC034100F '  The TCP connection is not offloadable because of a local policy setting.
'Private Const ERROR_NDIS_OFFLOAD_CONNECTION_REJECTED As Long = &HC0341012 '  The TCP connection is not offloadable by the Chimney Offload target.
'Private Const ERROR_NDIS_OFFLOAD_PATH_REJECTED As Long = &HC0341013 '  The IP Path object is not in an offloadable state.
'Private Const ERROR_HV_INVALID_HYPERCALL_CODE As Long = &HC0350002 '  The hypervisor does not support the operation because the specified hypercall code is not supported.
'Private Const ERROR_HV_INVALID_HYPERCALL_INPUT As Long = &HC0350003 '  The hypervisor does not support the operation because the encoding for the hypercall input register is not supported.
'Private Const ERROR_HV_INVALID_ALIGNMENT As Long = &HC0350004 '  The hypervisor could not perform the operation beacuse a parameter has an invalid alignment.
'Private Const ERROR_HV_INVALID_PARAMETER As Long = &HC0350005 '  The hypervisor could not perform the operation beacuse an invalid parameter was specified.
'Private Const ERROR_HV_ACCESS_DENIED As Long = &HC0350006 '  Access to the specified object was denied.
'Private Const ERROR_HV_INVALID_PARTITION_STATE As Long = &HC0350007 '  The hypervisor could not perform the operation because the partition is entering or in an invalid state.
'Private Const ERROR_HV_OPERATION_DENIED As Long = &HC0350008 '  The operation is not allowed in the current state.
'Private Const ERROR_HV_UNKNOWN_PROPERTY As Long = &HC0350009 '  The hypervisor does not recognize the specified partition property.
'Private Const ERROR_HV_PROPERTY_VALUE_OUT_OF_RANGE As Long = &HC035000A '  The specified value of a partition property is out of range or violates an invariant.
'Private Const ERROR_HV_INSUFFICIENT_MEMORY As Long = &HC035000B '  There is not enough memory in the hypervisor pool to complete the operation.
'Private Const ERROR_HV_PARTITION_TOO_DEEP As Long = &HC035000C '  The maximum partition depth has been exceeded for the partition hierarchy.
'Private Const ERROR_HV_INVALID_PARTITION_ID As Long = &HC035000D '  A partition with the specified partition Id does not exist.
'Private Const ERROR_HV_INVALID_VP_INDEX As Long = &HC035000E '  The hypervisor could not perform the operation because the specified VP index is invalid.
'Private Const ERROR_HV_INVALID_PORT_ID As Long = &HC0350011 '  The hypervisor could not perform the operation because the specified port identifier is invalid.
'Private Const ERROR_HV_INVALID_CONNECTION_ID As Long = &HC0350012 '  The hypervisor could not perform the operation because the specified connection identifier is invalid.
'Private Const ERROR_HV_INSUFFICIENT_BUFFERS As Long = &HC0350013 '  Not enough buffers were supplied to send a message.
'Private Const ERROR_HV_NOT_ACKNOWLEDGED As Long = &HC0350014 '  The previous virtual interrupt has not been acknowledged.
'Private Const ERROR_HV_ACKNOWLEDGED As Long = &HC0350016 '  The previous virtual interrupt has already been acknowledged.
'Private Const ERROR_HV_INVALID_SAVE_RESTORE_STATE As Long = &HC0350017 '  The indicated partition is not in a valid state for saving or restoring.
'Private Const ERROR_HV_INVALID_SYNIC_STATE As Long = &HC0350018 '  The hypervisor could not complete the operation because a required feature of the synthetic interrupt controller (SynIC) was disabled.
'Private Const ERROR_HV_OBJECT_IN_USE As Long = &HC0350019 '  The hypervisor could not perform the operation because the object or value was either already in use or being used for a purpose that would not permit completing the operation.
'Private Const ERROR_HV_INVALID_PROXIMITY_DOMAIN_INFO As Long = &HC035001A '  The proximity domain information is invalid.
'Private Const ERROR_HV_NO_DATA As Long = &HC035001B '  An attempt to retrieve debugging data failed because none was available.
'Private Const ERROR_HV_INACTIVE As Long = &HC035001C '  The physical connection being used for debuggging has not recorded any receive activity since the last operation.
'Private Const ERROR_HV_NO_RESOURCES As Long = &HC035001D '  There are not enough resources to complete the operation.
'Private Const ERROR_HV_FEATURE_UNAVAILABLE As Long = &HC035001E '  A hypervisor feature is not available to the user.
'Private Const ERROR_HV_INSUFFICIENT_BUFFER As Long = &HC0350033 '  The specified buffer was too small to contain all of the requested data.
'Private Const ERROR_HV_INSUFFICIENT_DEVICE_DOMAINS As Long = &HC0350038 '  The maximum number of domains supported by the platform I/O remapping hardware is currently in use. No domains are available to assign this device to this partition.
'Private Const ERROR_HV_INVALID_LP_INDEX As Long = &HC0350041 '  The hypervisor could not perform the operation because the specified LP index is invalid.
'Private Const ERROR_HV_NOT_PRESENT As Long = &HC0351000 '  No hypervisor is present on this system.
'Private Const ERROR_VID_DUPLICATE_HANDLER As Long = &HC0370001 '  The handler for the virtualization infrastructure driver is already registered. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_TOO_MANY_HANDLERS As Long = &HC0370002 '  The number of registered handlers for the virtualization infrastructure driver exceeded the maximum. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_QUEUE_FULL As Long = &HC0370003 '  The message queue for the virtualization infrastructure driver is full and cannot accept new messages. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_HANDLER_NOT_PRESENT As Long = &HC0370004 '  No handler exists to handle the message for the virtualization infrastructure driver. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_INVALID_OBJECT_NAME As Long = &HC0370005 '  The name of the partition or message queue for the virtualization infrastructure driver is invalid. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_PARTITION_NAME_TOO_LONG As Long = &HC0370006 '  The partition name of the virtualization infrastructure driver exceeds the maximum.
'Private Const ERROR_VID_MESSAGE_QUEUE_NAME_TOO_LONG As Long = &HC0370007 '  The message queue name of the virtualization infrastructure driver exceeds the maximum.
'Private Const ERROR_VID_PARTITION_ALREADY_EXISTS As Long = &HC0370008 '  Cannot create the partition for the virtualization infrastructure driver because another partition with the same name already exists.
'Private Const ERROR_VID_PARTITION_DOES_NOT_EXIST As Long = &HC0370009 '  The virtualization infrastructure driver has encountered an error. The requested partition does not exist. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_PARTITION_NAME_NOT_FOUND As Long = &HC037000A '  The virtualization infrastructure driver has encountered an error. Could not find the requested partition. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_MESSAGE_QUEUE_ALREADY_EXISTS As Long = &HC037000B '  A message queue with the same name already exists for the virtualization infrastructure driver.
'Private Const ERROR_VID_EXCEEDED_MBP_ENTRY_MAP_LIMIT As Long = &HC037000C '  The memory block page for the virtualization infrastructure driver cannot be mapped because the page map limit has been reached. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_MB_STILL_REFERENCED As Long = &HC037000D '  The memory block for the virtualization infrastructure driver is still being used and cannot be destroyed.
'Private Const ERROR_VID_CHILD_GPA_PAGE_SET_CORRUPTED As Long = &HC037000E '  Cannot unlock the page array for the guest operating system memory address because it does not match a previous lock request. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_INVALID_NUMA_SETTINGS As Long = &HC037000F '  The non-uniform memory access (NUMA) node settings do not match the system NUMA topology. In order to start the virtual machine, you will need to modify the NUMA configuration.
'Private Const ERROR_VID_INVALID_NUMA_NODE_INDEX As Long = &HC0370010 '  The non-uniform memory access (NUMA) node index does not match a valid index in the system NUMA topology.
'Private Const ERROR_VID_NOTIFICATION_QUEUE_ALREADY_ASSOCIATED As Long = &HC0370011 '  The memory block for the virtualization infrastructure driver is already associated with a message queue.
'Private Const ERROR_VID_INVALID_MEMORY_BLOCK_HANDLE As Long = &HC0370012 '  The handle is not a valid memory block handle for the virtualization infrastructure driver.
'Private Const ERROR_VID_PAGE_RANGE_OVERFLOW As Long = &HC0370013 '  The request exceeded the memory block page limit for the virtualization infrastructure driver. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_INVALID_MESSAGE_QUEUE_HANDLE As Long = &HC0370014 '  The handle is not a valid message queue handle for the virtualization infrastructure driver.
'Private Const ERROR_VID_INVALID_GPA_RANGE_HANDLE As Long = &HC0370015 '  The handle is not a valid page range handle for the virtualization infrastructure driver.
'Private Const ERROR_VID_NO_MEMORY_BLOCK_NOTIFICATION_QUEUE As Long = &HC0370016 '  Cannot install client notifications because no message queue for the virtualization infrastructure driver is associated with the memory block.
'Private Const ERROR_VID_MEMORY_BLOCK_LOCK_COUNT_EXCEEDED As Long = &HC0370017 '  The request to lock or map a memory block page failed because the virtualization infrastructure driver memory block limit has been reached. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_INVALID_PPM_HANDLE As Long = &HC0370018 '  The handle is not a valid parent partition mapping handle for the virtualization infrastructure driver.
'Private Const ERROR_VID_MBPS_ARE_LOCKED As Long = &HC0370019 '  Notifications cannot be created on the memory block because it is use.
'Private Const ERROR_VID_MESSAGE_QUEUE_CLOSED As Long = &HC037001A '  The message queue for the virtualization infrastructure driver has been closed. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_VIRTUAL_PROCESSOR_LIMIT_EXCEEDED As Long = &HC037001B '  Cannot add a virtual processor to the partition because the maximum has been reached.
'Private Const ERROR_VID_STOP_PENDING As Long = &HC037001C '  Cannot stop the virtual processor immediately because of a pending intercept.
'Private Const ERROR_VID_INVALID_PROCESSOR_STATE As Long = &HC037001D '  Invalid state for the virtual processor. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_EXCEEDED_KM_CONTEXT_COUNT_LIMIT As Long = &HC037001E '  The maximum number of kernel mode clients for the virtualization infrastructure driver has been reached. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_KM_INTERFACE_ALREADY_INITIALIZED As Long = &HC037001F '  This kernel mode interface for the virtualization infrastructure driver has already been initialized. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_MB_PROPERTY_ALREADY_SET_RESET As Long = &HC0370020 '  Cannot set or reset the memory block property more than once for the virtualization infrastructure driver. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_MMIO_RANGE_DESTROYED As Long = &HC0370021 '  The memory mapped I/O for this page range no longer exists. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_INVALID_CHILD_GPA_PAGE_SET As Long = &HC0370022 '  The lock or unlock request uses an invalid guest operating system memory address. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_RESERVE_PAGE_SET_IS_BEING_USED As Long = &HC0370023 '  Cannot destroy or reuse the reserve page set for the virtualization infrastructure driver because it is in use. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_RESERVE_PAGE_SET_TOO_SMALL As Long = &HC0370024 '  The reserve page set for the virtualization infrastructure driver is too small to use in the lock request. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_MBP_ALREADY_LOCKED_USING_RESERVED_PAGE As Long = &HC0370025 '  Cannot lock or map the memory block page for the virtualization infrastructure driver because it has already been locked using a reserve page set page. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_MBP_COUNT_EXCEEDED_LIMIT As Long = &HC0370026 '  Cannot create the memory block for the virtualization infrastructure driver because the requested number of pages exceeded the limit. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer.
'Private Const ERROR_VID_SAVED_STATE_CORRUPT As Long = &HC0370027 '  Cannot restore this virtual machine because the saved state data cannot be read. Delete the saved state data and then try to start the virtual machine.
'Private Const ERROR_VID_SAVED_STATE_UNRECOGNIZED_ITEM As Long = &HC0370028 '  Cannot restore this virtual machine because an item read from the saved state data is not recognized. Delete the saved state data and then try to start the virtual machine.
'Private Const ERROR_VID_SAVED_STATE_INCOMPATIBLE As Long = &HC0370029 '  Cannot restore this virtual machine to the saved state because of hypervisor incompatibility. Delete the saved state data and then try to start the virtual machine.
'Private Const ERROR_VID_REMOTE_NODE_PARENT_GPA_PAGES_USED As Long = &H80370001 '  A virtual machine is running with its memory allocated across multiple NUMA nodes. This does not indicate a problem unless the performance of your virtual machine is unusually slow. If you are experiencing performance problems, you may need to modify the NUMA configuration.
'Private Const ERROR_VOLMGR_INCOMPLETE_REGENERATION As Long = &H80380001 '  The regeneration operation was not able to copy all data from the active plexes due to bad sectors.
'Private Const ERROR_VOLMGR_INCOMPLETE_DISK_MIGRATION As Long = &H80380002 '  One or more disks were not fully migrated to the target pack. They may or may not require reimport after fixing the hardware problems.
'Private Const ERROR_VOLMGR_DATABASE_FULL As Long = &HC0380001 '  The configuration database is full.
'Private Const ERROR_VOLMGR_DISK_CONFIGURATION_CORRUPTED As Long = &HC0380002 '  The configuration data on the disk is corrupted.
'Private Const ERROR_VOLMGR_DISK_CONFIGURATION_NOT_IN_SYNC As Long = &HC0380003 '  The configuration on the disk is not insync with the in-memory configuration.
'Private Const ERROR_VOLMGR_PACK_CONFIG_UPDATE_FAILED As Long = &HC0380004 '  A majority of disks failed to be updated with the new configuration.
'Private Const ERROR_VOLMGR_DISK_CONTAINS_NON_SIMPLE_VOLUME As Long = &HC0380005 '  The disk contains non-simple volumes.
'Private Const ERROR_VOLMGR_DISK_DUPLICATE As Long = &HC0380006 '  The same disk was specified more than once in the migration list.
'Private Const ERROR_VOLMGR_DISK_DYNAMIC As Long = &HC0380007 '  The disk is already dynamic.
'Private Const ERROR_VOLMGR_DISK_ID_INVALID As Long = &HC0380008 '  The specified disk id is invalid. There are no disks with the specified disk id.
'Private Const ERROR_VOLMGR_DISK_INVALID As Long = &HC0380009 '  The specified disk is an invalid disk. Operation cannot complete on an invalid disk.
'Private Const ERROR_VOLMGR_DISK_LAST_VOTER As Long = &HC038000A '  The specified disk(s) cannot be removed since it is the last remaining voter.
'Private Const ERROR_VOLMGR_DISK_LAYOUT_INVALID As Long = &HC038000B '  The specified disk has an invalid disk layout.
'Private Const ERROR_VOLMGR_DISK_LAYOUT_NON_BASIC_BETWEEN_BASIC_PARTITIONS As Long = &HC038000C '  The disk layout contains non-basic partitions which appear after basic paritions. This is an invalid disk layout.
'Private Const ERROR_VOLMGR_DISK_LAYOUT_NOT_CYLINDER_ALIGNED As Long = &HC038000D '  The disk layout contains partitions which are not cylinder aligned.
'Private Const ERROR_VOLMGR_DISK_LAYOUT_PARTITIONS_TOO_SMALL As Long = &HC038000E '  The disk layout contains partitions which are samller than the minimum size.
'Private Const ERROR_VOLMGR_DISK_LAYOUT_PRIMARY_BETWEEN_LOGICAL_PARTITIONS As Long = &HC038000F '  The disk layout contains primary partitions in between logical drives. This is an invalid disk layout.
'Private Const ERROR_VOLMGR_DISK_LAYOUT_TOO_MANY_PARTITIONS As Long = &HC0380010 '  The disk layout contains more than the maximum number of supported partitions.
'Private Const ERROR_VOLMGR_DISK_MISSING As Long = &HC0380011 '  The specified disk is missing. The operation cannot complete on a missing disk.
'Private Const ERROR_VOLMGR_DISK_NOT_EMPTY As Long = &HC0380012 '  The specified disk is not empty.
'Private Const ERROR_VOLMGR_DISK_NOT_ENOUGH_SPACE As Long = &HC0380013 '  There is not enough usable space for this operation.
'Private Const ERROR_VOLMGR_DISK_REVECTORING_FAILED As Long = &HC0380014 '  The force revectoring of bad sectors failed.
'Private Const ERROR_VOLMGR_DISK_SECTOR_SIZE_INVALID As Long = &HC0380015 '  The specified disk has an invalid sector size.
'Private Const ERROR_VOLMGR_DISK_SET_NOT_CONTAINED As Long = &HC0380016 '  The specified disk set contains volumes which exist on disks outside of the set.
'Private Const ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_MEMBERS As Long = &HC0380017 '  A disk in the volume layout provides extents to more than one member of a plex.
'Private Const ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_PLEXES As Long = &HC0380018 '  A disk in the volume layout provides extents to more than one plex.
'Private Const ERROR_VOLMGR_DYNAMIC_DISK_NOT_SUPPORTED As Long = &HC0380019 '  Dynamic disks are not supported on this system.
'Private Const ERROR_VOLMGR_EXTENT_ALREADY_USED As Long = &HC038001A '  The specified extent is already used by other volumes.
'Private Const ERROR_VOLMGR_EXTENT_NOT_CONTIGUOUS As Long = &HC038001B '  The specified volume is retained and can only be extended into a contiguous extent. The specified extent to grow the volume is not contiguous with the specified volume.
'Private Const ERROR_VOLMGR_EXTENT_NOT_IN_PUBLIC_REGION As Long = &HC038001C '  The specified volume extent is not within the public region of the disk.
'Private Const ERROR_VOLMGR_EXTENT_NOT_SECTOR_ALIGNED As Long = &HC038001D '  The specifed volume extent is not sector aligned.
'Private Const ERROR_VOLMGR_EXTENT_OVERLAPS_EBR_PARTITION As Long = &HC038001E '  The specified parition overlaps an EBR (the first track of an extended partition on a MBR disks).
'Private Const ERROR_VOLMGR_EXTENT_VOLUME_LENGTHS_DO_NOT_MATCH As Long = &HC038001F '  The specified extent lengths cannot be used to construct a volume with specified length.
'Private Const ERROR_VOLMGR_FAULT_TOLERANT_NOT_SUPPORTED As Long = &HC0380020 '  The system does not support fault tolerant volumes.
'Private Const ERROR_VOLMGR_INTERLEAVE_LENGTH_INVALID As Long = &HC0380021 '  The specified interleave length is invalid.
'Private Const ERROR_VOLMGR_MAXIMUM_REGISTERED_USERS As Long = &HC0380022 '  There is already a maximum number of registered users.
'Private Const ERROR_VOLMGR_MEMBER_IN_SYNC As Long = &HC0380023 '  The specified member is already in-sync with the other active members. It does not need to be regenerated.
'Private Const ERROR_VOLMGR_MEMBER_INDEX_DUPLICATE As Long = &HC0380024 '  The same member index was specified more than once.
'Private Const ERROR_VOLMGR_MEMBER_INDEX_INVALID As Long = &HC0380025 '  The specified member index is greater or equal than the number of members in the volume plex.
'Private Const ERROR_VOLMGR_MEMBER_MISSING As Long = &HC0380026 '  The specified member is missing. It cannot be regenerated.
'Private Const ERROR_VOLMGR_MEMBER_NOT_DETACHED As Long = &HC0380027 '  The specified member is not detached. Cannot replace a member which is not detached.
'Private Const ERROR_VOLMGR_MEMBER_REGENERATING As Long = &HC0380028 '  The specified member is already regenerating.
'Private Const ERROR_VOLMGR_ALL_DISKS_FAILED As Long = &HC0380029 '  All disks belonging to the pack failed.
'Private Const ERROR_VOLMGR_NO_REGISTERED_USERS As Long = &HC038002A '  There are currently no registered users for notifications. The task number is irrelevant unless there are registered users.
'Private Const ERROR_VOLMGR_NO_SUCH_USER As Long = &HC038002B '  The specified notification user does not exist. Failed to unregister user for notifications.
'Private Const ERROR_VOLMGR_NOTIFICATION_RESET As Long = &HC038002C '  The notifications have been reset. Notifications for the current user are invalid. Unregister and re-register for notifications.
'Private Const ERROR_VOLMGR_NUMBER_OF_MEMBERS_INVALID As Long = &HC038002D '  The specified number of members is invalid.
'Private Const ERROR_VOLMGR_NUMBER_OF_PLEXES_INVALID As Long = &HC038002E '  The specified number of plexes is invalid.
'Private Const ERROR_VOLMGR_PACK_DUPLICATE As Long = &HC038002F '  The specified source and target packs are identical.
'Private Const ERROR_VOLMGR_PACK_ID_INVALID As Long = &HC0380030 '  The specified pack id is invalid. There are no packs with the specified pack id.
'Private Const ERROR_VOLMGR_PACK_INVALID As Long = &HC0380031 '  The specified pack is the invalid pack. The operation cannot complete with the invalid pack.
'Private Const ERROR_VOLMGR_PACK_NAME_INVALID As Long = &HC0380032 '  The specified pack name is invalid.
'Private Const ERROR_VOLMGR_PACK_OFFLINE As Long = &HC0380033 '  The specified pack is offline.
'Private Const ERROR_VOLMGR_PACK_HAS_QUORUM As Long = &HC0380034 '  The specified pack already has a quorum of healthy disks.
'Private Const ERROR_VOLMGR_PACK_WITHOUT_QUORUM As Long = &HC0380035 '  The pack does not have a quorum of healthy disks.
'Private Const ERROR_VOLMGR_PARTITION_STYLE_INVALID As Long = &HC0380036 '  The specified disk has an unsupported partition style. Only MBR and GPT partition styles are supported.
'Private Const ERROR_VOLMGR_PARTITION_UPDATE_FAILED As Long = &HC0380037 '  Failed to update the disk's partition layout.
'Private Const ERROR_VOLMGR_PLEX_IN_SYNC As Long = &HC0380038 '  The specified plex is already in-sync with the other active plexes. It does not need to be regenerated.
'Private Const ERROR_VOLMGR_PLEX_INDEX_DUPLICATE As Long = &HC0380039 '  The same plex index was specified more than once.
'Private Const ERROR_VOLMGR_PLEX_INDEX_INVALID As Long = &HC038003A '  The specified plex index is greater or equal than the number of plexes in the volume.
'Private Const ERROR_VOLMGR_PLEX_LAST_ACTIVE As Long = &HC038003B '  The specified plex is the last active plex in the volume. The plex cannot be removed or else the volume will go offline.
'Private Const ERROR_VOLMGR_PLEX_MISSING As Long = &HC038003C '  The specified plex is missing.
'Private Const ERROR_VOLMGR_PLEX_REGENERATING As Long = &HC038003D '  The specified plex is currently regenerating.
'Private Const ERROR_VOLMGR_PLEX_TYPE_INVALID As Long = &HC038003E '  The specified plex type is invalid.
'Private Const ERROR_VOLMGR_PLEX_NOT_RAID5 As Long = &HC038003F '  The operation is only supported on RAID-5 plexes.
'Private Const ERROR_VOLMGR_PLEX_NOT_SIMPLE As Long = &HC0380040 '  The operation is only supported on simple plexes.
'Private Const ERROR_VOLMGR_STRUCTURE_SIZE_INVALID As Long = &HC0380041 '  The Size fields in the VM_VOLUME_LAYOUT input structure are incorrectly set.
'Private Const ERROR_VOLMGR_TOO_MANY_NOTIFICATION_REQUESTS As Long = &HC0380042 '  There is already a pending request for notifications. Wait for the existing request to return before requesting for more notifications.
'Private Const ERROR_VOLMGR_TRANSACTION_IN_PROGRESS As Long = &HC0380043 '  There is currently a transaction in process.
'Private Const ERROR_VOLMGR_UNEXPECTED_DISK_LAYOUT_CHANGE As Long = &HC0380044 '  An unexpected layout change occurred outside of the volume manager.
'Private Const ERROR_VOLMGR_VOLUME_CONTAINS_MISSING_DISK As Long = &HC0380045 '  The specified volume contains a missing disk.
'Private Const ERROR_VOLMGR_VOLUME_ID_INVALID As Long = &HC0380046 '  The specified volume id is invalid. There are no volumes with the specified volume id.
'Private Const ERROR_VOLMGR_VOLUME_LENGTH_INVALID As Long = &HC0380047 '  The specified volume length is invalid.
'Private Const ERROR_VOLMGR_VOLUME_LENGTH_NOT_SECTOR_SIZE_MULTIPLE As Long = &HC0380048 '  The specified size for the volume is not a multiple of the sector size.
'Private Const ERROR_VOLMGR_VOLUME_NOT_MIRRORED As Long = &HC0380049 '  The operation is only supported on mirrored volumes.
'Private Const ERROR_VOLMGR_VOLUME_NOT_RETAINED As Long = &HC038004A '  The specified volume does not have a retain partition.
'Private Const ERROR_VOLMGR_VOLUME_OFFLINE As Long = &HC038004B '  The specified volume is offline.
'Private Const ERROR_VOLMGR_VOLUME_RETAINED As Long = &HC038004C '  The specified volume already has a retain partition.
'Private Const ERROR_VOLMGR_NUMBER_OF_EXTENTS_INVALID As Long = &HC038004D '  The specified number of extents is invalid.
'Private Const ERROR_VOLMGR_DIFFERENT_SECTOR_SIZE As Long = &HC038004E '  All disks participating to the volume must have the same sector size.
'Private Const ERROR_VOLMGR_BAD_BOOT_DISK As Long = &HC038004F '  The boot disk experienced failures.
'Private Const ERROR_VOLMGR_PACK_CONFIG_OFFLINE As Long = &HC0380050 '  The configuration of the pack is offline.
'Private Const ERROR_VOLMGR_PACK_CONFIG_ONLINE As Long = &HC0380051 '  The configuration of the pack is online.
'Private Const ERROR_VOLMGR_NOT_PRIMARY_PACK As Long = &HC0380052 '  The specified pack is not the primary pack.
'Private Const ERROR_VOLMGR_PACK_LOG_UPDATE_FAILED As Long = &HC0380053 '  All disks failed to be updated with the new content of the log.
'Private Const ERROR_VOLMGR_NUMBER_OF_DISKS_IN_PLEX_INVALID As Long = &HC0380054 '  The specified number of disks in a plex is invalid.
'Private Const ERROR_VOLMGR_NUMBER_OF_DISKS_IN_MEMBER_INVALID As Long = &HC0380055 '  The specified number of disks in a plex member is invalid.
'Private Const ERROR_VOLMGR_VOLUME_MIRRORED As Long = &HC0380056 '  The operation is not supported on mirrored volumes.
'Private Const ERROR_VOLMGR_PLEX_NOT_SIMPLE_SPANNED As Long = &HC0380057 '  The operation is only supported on simple and spanned plexes.
'Private Const ERROR_VOLMGR_NO_VALID_LOG_COPIES As Long = &HC0380058 '  The pack has no valid log copies.
'Private Const ERROR_VOLMGR_PRIMARY_PACK_PRESENT As Long = &HC0380059 '  A primary pack is already present.
'Private Const ERROR_VOLMGR_NUMBER_OF_DISKS_INVALID As Long = &HC038005A '  The specified number of disks is invalid.
'Private Const ERROR_VOLMGR_MIRROR_NOT_SUPPORTED As Long = &HC038005B '  The system does not support mirrored volumes.
'Private Const ERROR_VOLMGR_RAID5_NOT_SUPPORTED As Long = &HC038005C '  The system does not support RAID-5 volumes.
'Private Const ERROR_BCD_NOT_ALL_ENTRIES_IMPORTED As Long = &H80390001 '  Some BCD entries were not imported correctly from the BCD store.
'Private Const ERROR_BCD_TOO_MANY_ELEMENTS As Long = &HC0390002 '  Entries enumerated have exceeded the allowed threshold.
'Private Const ERROR_BCD_NOT_ALL_ENTRIES_SYNCHRONIZED As Long = &H80390003 '  Some BCD entries were not synchronized correctly with the firmware.
'Private Const ERROR_VHD_DRIVE_FOOTER_MISSING As Long = &HC03A0001 '  The virtual hard disk is corrupted. The virtual hard disk drive footer is missing.
'Private Const ERROR_VHD_DRIVE_FOOTER_CHECKSUM_MISMATCH As Long = &HC03A0002 '  The virtual hard disk is corrupted. The virtual hard disk drive footer checksum does not match the on-disk checksum.
'Private Const ERROR_VHD_DRIVE_FOOTER_CORRUPT As Long = &HC03A0003 '  The virtual hard disk is corrupted. The virtual hard disk drive footer in the virtual hard disk is corrupted.
'Private Const ERROR_VHD_FORMAT_UNKNOWN As Long = &HC03A0004 '  The system does not recognize the file format of this virtual hard disk.
'Private Const ERROR_VHD_FORMAT_UNSUPPORTED_VERSION As Long = &HC03A0005 '  The version does not support this version of the file format.
'Private Const ERROR_VHD_SPARSE_HEADER_CHECKSUM_MISMATCH As Long = &HC03A0006 '  The virtual hard disk is corrupted. The sparse header checksum does not match the on-disk checksum.
'Private Const ERROR_VHD_SPARSE_HEADER_UNSUPPORTED_VERSION As Long = &HC03A0007 '  The system does not support this version of the virtual hard disk.This version of the sparse header is not supported.
'Private Const ERROR_VHD_SPARSE_HEADER_CORRUPT As Long = &HC03A0008 '  The virtual hard disk is corrupted. The sparse header in the virtual hard disk is corrupt.
'Private Const ERROR_VHD_BLOCK_ALLOCATION_FAILURE As Long = &HC03A0009 '  Failed to write to the virtual hard disk failed because the system failed to allocate a new block in the virtual hard disk.
'Private Const ERROR_VHD_BLOCK_ALLOCATION_TABLE_CORRUPT As Long = &HC03A000A '  The virtual hard disk is corrupted. The block allocation table in the virtual hard disk is corrupt.
'Private Const ERROR_VHD_INVALID_BLOCK_SIZE As Long = &HC03A000B '  The system does not support this version of the virtual hard disk. The block size is invalid.
'Private Const ERROR_VHD_BITMAP_MISMATCH As Long = &HC03A000C '  The virtual hard disk is corrupted. The block bitmap does not match with the block data present in the virtual hard disk.
'Private Const ERROR_VHD_PARENT_VHD_NOT_FOUND As Long = &HC03A000D '  The chain of virtual hard disks is broken. The system cannot locate the parent virtual hard disk for the differencing disk.
'Private Const ERROR_VHD_CHILD_PARENT_ID_MISMATCH As Long = &HC03A000E '  The chain of virtual hard disks is corrupted. There is a mismatch in the identifiers of the parent virtual hard disk and differencing disk.
'Private Const ERROR_VHD_CHILD_PARENT_TIMESTAMP_MISMATCH As Long = &HC03A000F '  The chain of virtual hard disks is corrupted. The time stamp of the parent virtual hard disk does not match the time stamp of the differencing disk.
'Private Const ERROR_VHD_METADATA_READ_FAILURE As Long = &HC03A0010 '  Failed to read the metadata of the virtual hard disk.
'Private Const ERROR_VHD_METADATA_WRITE_FAILURE As Long = &HC03A0011 '  Failed to write to the metadata of the virtual hard disk.
'Private Const ERROR_VHD_INVALID_SIZE As Long = &HC03A0012 '  The size of the virtual hard disk is not valid.
'Private Const ERROR_VHD_INVALID_FILE_SIZE As Long = &HC03A0013 '  The file size of this virtual hard disk is not valid.
'Private Const ERROR_VIRTDISK_PROVIDER_NOT_FOUND As Long = &HC03A0014 '  A virtual disk support provider for the specified file was not found.
'Private Const ERROR_VIRTDISK_NOT_VIRTUAL_DISK As Long = &HC03A0015 '  The specified disk is not a virtual disk.
'Private Const ERROR_VHD_PARENT_VHD_ACCESS_DENIED As Long = &HC03A0016 '  The chain of virtual hard disks is inaccessible. The process has not been granted access rights to the parent virtual hard disk for the differencing disk.
'Private Const ERROR_VHD_CHILD_PARENT_SIZE_MISMATCH As Long = &HC03A0017 '  The chain of virtual hard disks is corrupted. There is a mismatch in the virtual sizes of the parent virtual hard disk and differencing disk.
'Private Const ERROR_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED As Long = &HC03A0018 '  The chain of virtual hard disks is corrupted. A differencing disk is indicated in its own parent chain.
'Private Const ERROR_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT As Long = &HC03A0019 '  The chain of virtual hard disks is inaccessible. There was an error opening a virtual hard disk further up the chain.
'Private Const ERROR_VIRTUAL_DISK_LIMITATION As Long = &HC03A001A '  The requested operation could not be completed due to a virtual disk system limitation.  On NTFS, virtual hard disk files must be uncompressed and unencrypted. On ReFS, virtual hard disk files must not have the integrity bit set.
'Private Const ERROR_VHD_INVALID_TYPE As Long = &HC03A001B '  The requested operation cannot be performed on a virtual disk of this type.
'Private Const ERROR_VHD_INVALID_STATE As Long = &HC03A001C '  The requested operation cannot be performed on the virtual disk in its current state.
'Private Const ERROR_VIRTDISK_UNSUPPORTED_DISK_SECTOR_SIZE As Long = &HC03A001D '  The sector size of the physical disk on which the virtual disk resides is not supported.
'Private Const ERROR_VIRTDISK_DISK_ALREADY_OWNED As Long = &HC03A001E '  The disk is already owned by a different owner.
'Private Const ERROR_VIRTDISK_DISK_ONLINE_AND_WRITABLE As Long = &HC03A001F '  The disk must be offline or read-only.
'Private Const ERROR_CTLOG_TRACKING_NOT_INITIALIZED As Long = &HC03A0020 '  Change Tracking is not initialized for this virtual disk.
'Private Const ERROR_CTLOG_LOGFILE_SIZE_EXCEEDED_MAXSIZE As Long = &HC03A0021 '  Size of change tracking file exceeded the maximum size limit.
'Private Const ERROR_CTLOG_VHD_CHANGED_OFFLINE As Long = &HC03A0022 '  VHD file is changed due to compaction, expansion, or offline updates.
'Private Const ERROR_CTLOG_INVALID_TRACKING_STATE As Long = &HC03A0023 '  Change Tracking for the virtual disk is not in a valid state to perform this request.  Change tracking could be discontinued or already in the requested state.
'Private Const ERROR_CTLOG_INCONSISTENT_TRACKING_FILE As Long = &HC03A0024 '  Change Tracking file for the virtual disk is not in a valid state.
'Private Const ERROR_VHD_RESIZE_WOULD_TRUNCATE_DATA As Long = &HC03A0025 '  The requested resize operation could not be completed because it might truncate user data residing on the virtual disk.
'Private Const ERROR_VHD_COULD_NOT_COMPUTE_MINIMUM_VIRTUAL_SIZE As Long = &HC03A0026 '  The requested operation could not be completed because the virtual disk's minimum safe size could not be determined.This may be due to a missing or corrupt partition table.
'Private Const ERROR_VHD_ALREADY_AT_OR_BELOW_MINIMUM_VIRTUAL_SIZE As Long = &HC03A0027 '  The requested operation could not be completed because the virtual disk's size cannot be safely reduced further.
'Private Const ERROR_VHD_METADATA_FULL As Long = &HC03A0028 '  There is not enough space in the virtual disk file for the provided metadata item.
'Private Const ERROR_QUERY_STORAGE_ERROR As Long = &H803A0001 '  The virtualization storage subsystem has generated an error.
'Private Const SDIAG_E_CANCELLED As Long = &H803C0100 '  The operation was cancelled.
'Private Const SDIAG_E_SCRIPT As Long = &H803C0101 '  An error occurred when running a PowerShell script.
'Private Const SDIAG_E_POWERSHELL As Long = &H803C0102 '  An error occurred when interacting with PowerShell runtime.
'Private Const SDIAG_E_MANAGEDHOST As Long = &H803C0103 '  An error occurred in the Scripted Diagnostic Managed Host.
'Private Const SDIAG_E_NOVERIFIER As Long = &H803C0104 '  The troubleshooting pack does not contain a required verifier to complete the verification.
'Private Const SDIAG_S_CANNOTRUN As Long = &H3C0105  '  The troubleshooting pack cannot be executed on this system.
'Private Const SDIAG_E_DISABLED As Long = &H803C0106 '  Scripted diagnostics is disabled by group policy.
'Private Const SDIAG_E_TRUST As Long = &H803C0107 '  Trust validation of the troubleshooting pack failed.
'Private Const SDIAG_E_CANNOTRUN As Long = &H803C0108 '  The troubleshooting pack cannot be executed on this system.
'Private Const SDIAG_E_VERSION As Long = &H803C0109 '  This version of the troubleshooting pack is not supported.
'Private Const SDIAG_E_RESOURCE As Long = &H803C010A '  A required resource cannot be loaded.
'Private Const SDIAG_E_ROOTCAUSE As Long = &H803C010B '  The troubleshooting pack reported information for a root cause without adding the root cause.
'Private Const WPN_E_CHANNEL_CLOSED As Long = &H803E0100 '  The notification channel has already been closed.
'Private Const WPN_E_CHANNEL_REQUEST_NOT_COMPLETE As Long = &H803E0101 '  The notification channel request did not complete successfully.
'Private Const WPN_E_INVALID_APP As Long = &H803E0102 '  The application identifier provided is invalid.
'Private Const WPN_E_OUTSTANDING_CHANNEL_REQUEST As Long = &H803E0103 '  A notification channel request for the provided application identifier is in progress.
'Private Const WPN_E_DUPLICATE_CHANNEL As Long = &H803E0104 '  The channel identifier is already tied to another application endpoint.
'Private Const WPN_E_PLATFORM_UNAVAILABLE As Long = &H803E0105 '  The notification platform is unavailable.
'Private Const WPN_E_NOTIFICATION_POSTED As Long = &H803E0106 '  The notification has already been posted.
'Private Const WPN_E_NOTIFICATION_HIDDEN As Long = &H803E0107 '  The notification has already been hidden.
'Private Const WPN_E_NOTIFICATION_NOT_POSTED As Long = &H803E0108 '  The notification cannot be hidden until it has been shown.
'Private Const WPN_E_CLOUD_DISABLED As Long = &H803E0109 '  Cloud notifications have been turned off.
'Private Const WPN_E_CLOUD_INCAPABLE As Long = &H803E0110 '  The application does not have the cloud notification capability.
'Private Const WPN_E_CLOUD_AUTH_UNAVAILABLE As Long = &H803E011A '  The notification platform is unable to retrieve the authentication credentials required to connect to the cloud notification service.
'Private Const WPN_E_CLOUD_SERVICE_UNAVAILABLE As Long = &H803E011B '  The notification platform is unable to connect to the cloud notification service.
'Private Const WPN_E_FAILED_LOCK_SCREEN_UPDATE_INTIALIZATION As Long = &H803E011C '  The notification platform is unable to initialize a callback for lock screen updates.
'Private Const WPN_E_NOTIFICATION_DISABLED As Long = &H803E0111 '  Settings prevent the notification from being delivered.
'Private Const WPN_E_NOTIFICATION_INCAPABLE As Long = &H803E0112 '  Application capabilities prevent the notification from being delivered.
'Private Const WPN_E_INTERNET_INCAPABLE As Long = &H803E0113 '  The application does not have the internet access capability.
'Private Const WPN_E_NOTIFICATION_TYPE_DISABLED As Long = &H803E0114 '  Settings prevent the notification type from being delivered.
'Private Const WPN_E_NOTIFICATION_SIZE As Long = &H803E0115 '  The size of the notification content is too large.
'Private Const WPN_E_TAG_SIZE As Long = &H803E0116 '  The size of the notification tag is too large.
'Private Const WPN_E_ACCESS_DENIED As Long = &H803E0117 '  The notification platform doesn't have appropriate privilege on resources.
'Private Const WPN_E_DUPLICATE_REGISTRATION As Long = &H803E0118 '  The notification platform found application is already registered.
'Private Const WPN_E_PUSH_NOTIFICATION_INCAPABLE As Long = &H803E0119 '  The application background task does not have the push notification capability.
'Private Const WPN_E_DEV_ID_SIZE As Long = &H803E0120 '  The size of the developer id for scheduled notification is too large.
'Private Const WPN_E_TAG_ALPHANUMERIC As Long = &H803E012A '  The notification tag is not alphanumeric.
'Private Const WPN_E_INVALID_HTTP_STATUS_CODE As Long = &H803E012B '  The notification platform has received invalid HTTP status code other than 2xx for polling.
'Private Const WPN_E_OUT_OF_SESSION As Long = &H803E0200 '  The notification platform has run out of presentation layer sessions.
'Private Const WPN_E_POWER_SAVE As Long = &H803E0201 '  The notification platform rejects image download request due to system in power save mode.
'Private Const WPN_E_IMAGE_NOT_FOUND_IN_CACHE As Long = &H803E0202 '  The notification platform doesn't have the requested image in its cache.
'Private Const WPN_E_ALL_URL_NOT_COMPLETED As Long = &H803E0203 '  The notification platform cannot complete all of requested image.
'Private Const WPN_E_INVALID_CLOUD_IMAGE As Long = &H803E0204 '  A cloud image downloaded from the notification platform is invalid.
'Private Const WPN_E_NOTIFICATION_ID_MATCHED As Long = &H803E0205 '  Notification Id provided as filter is matched with what the notification platform maintains.
'Private Const WPN_E_CALLBACK_ALREADY_REGISTERED As Long = &H803E0206 '  Notification callback interface is already registered.
'Private Const WPN_E_TOAST_NOTIFICATION_DROPPED As Long = &H803E0207 '  Toast Notification was dropped without being displayed to the user.
'Private Const WPN_E_STORAGE_LOCKED As Long = &H803E0208 '  The notification platform does not have the proper privileges to complete the request.
'Private Const E_MBN_CONTEXT_NOT_ACTIVATED As Long = &H80548201 '  Context is not activated.
'Private Const E_MBN_BAD_SIM As Long = &H80548202 '  Bad SIM is inserted.
'Private Const E_MBN_DATA_CLASS_NOT_AVAILABLE As Long = &H80548203 '  Requested data class is not avaialable.
'Private Const E_MBN_INVALID_ACCESS_STRING As Long = &H80548204 '  Access point name (APN) or Access string is incorrect.
'Private Const E_MBN_MAX_ACTIVATED_CONTEXTS As Long = &H80548205 '  Max activated contexts have reached.
'Private Const E_MBN_PACKET_SVC_DETACHED As Long = &H80548206 '  Device is in packet detach state.
'Private Const E_MBN_PROVIDER_NOT_VISIBLE As Long = &H80548207 '  Provider is not visible.
'Private Const E_MBN_RADIO_POWER_OFF As Long = &H80548208 '  Radio is powered off.
'Private Const E_MBN_SERVICE_NOT_ACTIVATED As Long = &H80548209 '  MBN subscription is not activated.
'Private Const E_MBN_SIM_NOT_INSERTED As Long = &H8054820A '  SIM is not inserted.
'Private Const E_MBN_VOICE_CALL_IN_PROGRESS As Long = &H8054820B '  Voice call in progress.
'Private Const E_MBN_INVALID_CACHE As Long = &H8054820C '  Visible provider cache is invalid.
'Private Const E_MBN_NOT_REGISTERED As Long = &H8054820D '  Device is not registered.
'Private Const E_MBN_PROVIDERS_NOT_FOUND As Long = &H8054820E '  Providers not found.
'Private Const E_MBN_PIN_NOT_SUPPORTED As Long = &H8054820F '  Pin is not supported.
'Private Const E_MBN_PIN_REQUIRED As Long = &H80548210 '  Pin is required.
'Private Const E_MBN_PIN_DISABLED As Long = &H80548211 '  PIN is disabled.
'Private Const E_MBN_FAILURE As Long = &H80548212 '  Generic Failure.
'Private Const E_MBN_INVALID_PROFILE As Long = &H80548218 '  Profile is invalid.
'Private Const E_MBN_DEFAULT_PROFILE_EXIST As Long = &H80548219 '  Default profile exist.
'Private Const E_MBN_SMS_ENCODING_NOT_SUPPORTED As Long = &H80548220 '  SMS encoding is not supported.
'Private Const E_MBN_SMS_FILTER_NOT_SUPPORTED As Long = &H80548221 '  SMS filter is not supported.
'Private Const E_MBN_SMS_INVALID_MEMORY_INDEX As Long = &H80548222 '  Invalid SMS memory index is used.
'Private Const E_MBN_SMS_LANG_NOT_SUPPORTED As Long = &H80548223 '  SMS language is not supported.
'Private Const E_MBN_SMS_MEMORY_FAILURE As Long = &H80548224 '  SMS memory failure occurred.
'Private Const E_MBN_SMS_NETWORK_TIMEOUT As Long = &H80548225 '  SMS network timeout happened.
'Private Const E_MBN_SMS_UNKNOWN_SMSC_ADDRESS As Long = &H80548226 '  Unknown SMSC address is used.
'Private Const E_MBN_SMS_FORMAT_NOT_SUPPORTED As Long = &H80548227 '  SMS format is not supported.
'Private Const E_MBN_SMS_OPERATION_NOT_ALLOWED As Long = &H80548228 '  SMS operation is not allowed.
'Private Const E_MBN_SMS_MEMORY_FULL As Long = &H80548229 '  Device SMS memory is full.
'Private Const PEER_E_IPV6_NOT_INSTALLED As Long = &H80630001 '  The IPv6 protocol is not installed.
'Private Const PEER_E_NOT_INITIALIZED As Long = &H80630002 '  The compoment has not been initialized.
'Private Const PEER_E_CANNOT_START_SERVICE As Long = &H80630003 '  The required service canot be started.
'Private Const PEER_E_NOT_LICENSED As Long = &H80630004 '  The P2P protocol is not licensed to run on this OS.
'Private Const PEER_E_INVALID_GRAPH As Long = &H80630010 '  The graph handle is invalid.
'Private Const PEER_E_DBNAME_CHANGED As Long = &H80630011 '  The graph database name has changed.
'Private Const PEER_E_DUPLICATE_GRAPH As Long = &H80630012 '  A graph with the same ID already exists.
'Private Const PEER_E_GRAPH_NOT_READY As Long = &H80630013 '  The graph is not ready.
'Private Const PEER_E_GRAPH_SHUTTING_DOWN As Long = &H80630014 '  The graph is shutting down.
'Private Const PEER_E_GRAPH_IN_USE As Long = &H80630015 '  The graph is still in use.
'Private Const PEER_E_INVALID_DATABASE As Long = &H80630016 '  The graph database is corrupt.
'Private Const PEER_E_TOO_MANY_ATTRIBUTES As Long = &H80630017 '  Too many attributes have been used.
'Private Const PEER_E_CONNECTION_NOT_FOUND As Long = &H80630103 '  The connection can not be found.
'Private Const PEER_E_CONNECT_SELF As Long = &H80630106 '  The peer attempted to connect to itself.
'Private Const PEER_E_ALREADY_LISTENING As Long = &H80630107 '  The peer is already listening for connections.
'Private Const PEER_E_NODE_NOT_FOUND As Long = &H80630108 '  The node was not found.
'Private Const PEER_E_CONNECTION_FAILED As Long = &H80630109 '  The Connection attempt failed.
'Private Const PEER_E_CONNECTION_NOT_AUTHENTICATED As Long = &H8063010A '  The peer connection could not be authenticated.
'Private Const PEER_E_CONNECTION_REFUSED As Long = &H8063010B '  The connection was refused.
'Private Const PEER_E_CLASSIFIER_TOO_LONG As Long = &H80630201 '  The peer name classifier is too long.
'Private Const PEER_E_TOO_MANY_IDENTITIES As Long = &H80630202 '  The maximum number of identities have been created.
'Private Const PEER_E_NO_KEY_ACCESS As Long = &H80630203 '  Unable to access a key.
'Private Const PEER_E_GROUPS_EXIST As Long = &H80630204 '  The group already exists.
'Private Const PEER_E_RECORD_NOT_FOUND As Long = &H80630301 '  The requested record could not be found.
'Private Const PEER_E_DATABASE_ACCESSDENIED As Long = &H80630302 '  Access to the database was denied.
'Private Const PEER_E_DBINITIALIZATION_FAILED As Long = &H80630303 '  The Database could not be initialized.
'Private Const PEER_E_MAX_RECORD_SIZE_EXCEEDED As Long = &H80630304 '  The record is too big.
'Private Const PEER_E_DATABASE_ALREADY_PRESENT As Long = &H80630305 '  The database already exists.
'Private Const PEER_E_DATABASE_NOT_PRESENT As Long = &H80630306 '  The database could not be found.
'Private Const PEER_E_IDENTITY_NOT_FOUND As Long = &H80630401 '  The identity could not be found.
'Private Const PEER_E_EVENT_HANDLE_NOT_FOUND As Long = &H80630501 '  The event handle could not be found.
'Private Const PEER_E_INVALID_SEARCH As Long = &H80630601 '  Invalid search.
'Private Const PEER_E_INVALID_ATTRIBUTES As Long = &H80630602 '  The search atributes are invalid.
'Private Const PEER_E_INVITATION_NOT_TRUSTED As Long = &H80630701 '  The invitiation is not trusted.
'Private Const PEER_E_CHAIN_TOO_LONG As Long = &H80630703 '  The certchain is too long.
'Private Const PEER_E_INVALID_TIME_PERIOD As Long = &H80630705 '  The time period is invalid.
'Private Const PEER_E_CIRCULAR_CHAIN_DETECTED As Long = &H80630706 '  A circular cert chain was detected.
'Private Const PEER_E_CERT_STORE_CORRUPTED As Long = &H80630801 '  The certstore is corrupted.
'Private Const PEER_E_NO_CLOUD As Long = &H80631001 '  The specified PNRP cloud deos not exist.
'Private Const PEER_E_CLOUD_NAME_AMBIGUOUS As Long = &H80631005 '  The cloud name is ambiguous.
'Private Const PEER_E_INVALID_RECORD As Long = &H80632010 '  The record is invlaid.
'Private Const PEER_E_NOT_AUTHORIZED As Long = &H80632020 '  Not authorized.
'Private Const PEER_E_PASSWORD_DOES_NOT_MEET_POLICY As Long = &H80632021 '  The password does not meet policy requirements.
'Private Const PEER_E_DEFERRED_VALIDATION As Long = &H80632030 '  The record validation has been defered.
'Private Const PEER_E_INVALID_GROUP_PROPERTIES As Long = &H80632040 '  The group properies are invalid.
'Private Const PEER_E_INVALID_PEER_NAME As Long = &H80632050 '  The peername is invalid.
'Private Const PEER_E_INVALID_CLASSIFIER As Long = &H80632060 '  The classifier is invalid.
'Private Const PEER_E_INVALID_FRIENDLY_NAME As Long = &H80632070 '  The friendly name is invalid.
'Private Const PEER_E_INVALID_ROLE_PROPERTY As Long = &H80632071 '  Invalid role property.
'Private Const PEER_E_INVALID_CLASSIFIER_PROPERTY As Long = &H80632072 '  Invalid classifer property.
'Private Const PEER_E_INVALID_RECORD_EXPIRATION As Long = &H80632080 '  Invlaid record expiration.
'Private Const PEER_E_INVALID_CREDENTIAL_INFO As Long = &H80632081 '  Invlaid credential info.
'Private Const PEER_E_INVALID_CREDENTIAL As Long = &H80632082 '  Invalid credential.
'Private Const PEER_E_INVALID_RECORD_SIZE As Long = &H80632083 '  Invalid record size.
'Private Const PEER_E_UNSUPPORTED_VERSION As Long = &H80632090 '  Unsupported version.
'Private Const PEER_E_GROUP_NOT_READY As Long = &H80632091 '  The group is not ready.
'Private Const PEER_E_GROUP_IN_USE As Long = &H80632092 '  The group is still in use.
'Private Const PEER_E_INVALID_GROUP As Long = &H80632093 '  The group is invalid.
'Private Const PEER_E_NO_MEMBERS_FOUND As Long = &H80632094 '  No members were found.
'Private Const PEER_E_NO_MEMBER_CONNECTIONS As Long = &H80632095 '  There are no member connections.
'Private Const PEER_E_UNABLE_TO_LISTEN As Long = &H80632096 '  Unable to listen.
'Private Const PEER_E_IDENTITY_DELETED As Long = &H806320A0 '  The identity does not exist.
'Private Const PEER_E_SERVICE_NOT_AVAILABLE As Long = &H806320A1 '  The service is not availible.
'Private Const PEER_E_CONTACT_NOT_FOUND As Long = &H80636001 '  THe contact could not be found.
'Private Const PEER_S_GRAPH_DATA_CREATED As Long = &H630001  '  The graph data was created.
'Private Const PEER_S_NO_EVENT_DATA As Long = &H630002  '  There is not more event data.
'Private Const PEER_S_ALREADY_CONNECTED As Long = &H632000  '  The graph is already connect.
'Private Const PEER_S_SUBSCRIPTION_EXISTS As Long = &H636000  '  The subscription already exists.
'Private Const PEER_S_NO_CONNECTIVITY As Long = &H630005  '  No connectivity.
'Private Const PEER_S_ALREADY_A_MEMBER As Long = &H630006  '  Already a member.
'Private Const PEER_E_CANNOT_CONVERT_PEER_NAME As Long = &H80634001 '  The peername could not be converted to a DNS pnrp name.
'Private Const PEER_E_INVALID_PEER_HOST_NAME As Long = &H80634002 '  Invalid peer host name.
'Private Const PEER_E_NO_MORE As Long = &H80634003 '  No more data could be found.
'Private Const PEER_E_PNRP_DUPLICATE_PEER_NAME As Long = &H80634005 '  The existing peer name is already registered.
'Private Const PEER_E_INVITE_CANCELLED As Long = &H80637000 '  The app invite request was cancelled by the user.
'Private Const PEER_E_INVITE_RESPONSE_NOT_AVAILABLE As Long = &H80637001 '  No response of the invite was received.
'Private Const PEER_E_NOT_SIGNED_IN As Long = &H80637003 '  User is not signed into serverless presence.
'Private Const PEER_E_PRIVACY_DECLINED As Long = &H80637004 '  The user declined the privacy policy prompt.
'Private Const PEER_E_TIMEOUT As Long = &H80637005 '  A timeout occurred.
'Private Const PEER_E_INVALID_ADDRESS As Long = &H80637007 '  The address is invalid.
'Private Const PEER_E_FW_EXCEPTION_DISABLED As Long = &H80637008 '  A required firewall exception is disabled.
'Private Const PEER_E_FW_BLOCKED_BY_POLICY As Long = &H80637009 '  The service is blocked by a firewall policy.
'Private Const PEER_E_FW_BLOCKED_BY_SHIELDS_UP As Long = &H8063700A '  Firewall exceptions are disabled.
'Private Const PEER_E_FW_DECLINED As Long = &H8063700B '  The user declined to enable the firewall exceptions.
'Private Const UI_E_CREATE_FAILED As Long = &H802A0001 '  The object could not be created.
'Private Const UI_E_SHUTDOWN_CALLED As Long = &H802A0002 '  Shutdown was already called on this object or the object that owns it.
'Private Const UI_E_ILLEGAL_REENTRANCY As Long = &H802A0003 '  This method cannot be called during this type of callback.
'Private Const UI_E_OBJECT_SEALED As Long = &H802A0004 '  This object has been sealed, so this change is no longer allowed.
'Private Const UI_E_VALUE_NOT_SET As Long = &H802A0005 '  The requested value was never set.
'Private Const UI_E_VALUE_NOT_DETERMINED As Long = &H802A0006 '  The requested value cannot be determined.
'Private Const UI_E_INVALID_OUTPUT As Long = &H802A0007 '  A callback returned an invalid output parameter.
'Private Const UI_E_BOOLEAN_EXPECTED As Long = &H802A0008 '  A callback returned a success code other than S_OK or S_FALSE.
'Private Const UI_E_DIFFERENT_OWNER As Long = &H802A0009 '  A parameter that should be owned by this object is owned by a different object.
'Private Const UI_E_AMBIGUOUS_MATCH As Long = &H802A000A '  More than one item matched the search criteria.
'Private Const UI_E_FP_OVERFLOW As Long = &H802A000B '  A floating-point overflow occurred.
'Private Const UI_E_WRONG_THREAD As Long = &H802A000C '  This method can only be called from the thread that created the object.
'Private Const UI_E_STORYBOARD_ACTIVE As Long = &H802A0101 '  The storyboard is currently in the schedule.
'Private Const UI_E_STORYBOARD_NOT_PLAYING As Long = &H802A0102 '  The storyboard is not playing.
'Private Const UI_E_START_KEYFRAME_AFTER_END As Long = &H802A0103 '  The start keyframe might occur after the end keyframe.
'Private Const UI_E_END_KEYFRAME_NOT_DETERMINED As Long = &H802A0104 '  It might not be possible to determine the end keyframe time when the start keyframe is reached.
'Private Const UI_E_LOOPS_OVERLAP As Long = &H802A0105 '  Two repeated portions of a storyboard might overlap.
'Private Const UI_E_TRANSITION_ALREADY_USED As Long = &H802A0106 '  The transition has already been added to a storyboard.
'Private Const UI_E_TRANSITION_NOT_IN_STORYBOARD As Long = &H802A0107 '  The transition has not been added to a storyboard.
'Private Const UI_E_TRANSITION_ECLIPSED As Long = &H802A0108 '  The transition might eclipse the beginning of another transition in the storyboard.
'Private Const UI_E_TIME_BEFORE_LAST_UPDATE As Long = &H802A0109 '  The given time is earlier than the time passed to the last update.
'Private Const UI_E_TIMER_CLIENT_ALREADY_CONNECTED As Long = &H802A010A '  This client is already connected to a timer.
'Private Const UI_E_INVALID_DIMENSION As Long = &H802A010B '  The passed dimension is invalid or does not match the object's dimension.
'Private Const UI_E_PRIMITIVE_OUT_OF_BOUNDS As Long = &H802A010C '  The added primitive begins at or beyond the duration of the interpolator.
'Private Const UI_E_WINDOW_CLOSED As Long = &H802A0201 '  The operation cannot be completed because the window is being closed.
'Private Const E_BLUETOOTH_ATT_INVALID_HANDLE As Long = &H80650001 '  The attribute handle given was not valid on this server.
'Private Const E_BLUETOOTH_ATT_READ_NOT_PERMITTED As Long = &H80650002 '  The attribute cannot be read.
'Private Const E_BLUETOOTH_ATT_WRITE_NOT_PERMITTED As Long = &H80650003 '  The attribute cannot be written.
'Private Const E_BLUETOOTH_ATT_INVALID_PDU As Long = &H80650004 '  The attribute PDU was invalid.
'Private Const E_BLUETOOTH_ATT_INSUFFICIENT_AUTHENTICATION As Long = &H80650005 '  The attribute requires authentication before it can be read or written.
'Private Const E_BLUETOOTH_ATT_REQUEST_NOT_SUPPORTED As Long = &H80650006 '  Attribute server does not support the request received from the client.
'Private Const E_BLUETOOTH_ATT_INVALID_OFFSET As Long = &H80650007 '  Offset specified was past the end of the attribute.
'Private Const E_BLUETOOTH_ATT_INSUFFICIENT_AUTHORIZATION As Long = &H80650008 '  The attribute requires authorization before it can be read or written.
'Private Const E_BLUETOOTH_ATT_PREPARE_QUEUE_FULL As Long = &H80650009 '  Too many prepare writes have been queued.
'Private Const E_BLUETOOTH_ATT_ATTRIBUTE_NOT_FOUND As Long = &H8065000A '  No attribute found within the given attribute handle range.
'Private Const E_BLUETOOTH_ATT_ATTRIBUTE_NOT_LONG As Long = &H8065000B '  The attribute cannot be read or written using the Read Blob Request.
'Private Const E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE As Long = &H8065000C '  The Encryption Key Size used for encrypting this link is insufficient.
'Private Const E_BLUETOOTH_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH As Long = &H8065000D '  The attribute value length is invalid for the operation.
'Private Const E_BLUETOOTH_ATT_UNLIKELY As Long = &H8065000E '  The attribute request that was requested has encountered an error that was unlikely, and therefore could not be completed as requested.
'Private Const E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION As Long = &H8065000F '  The attribute requires encryption before it can be read or written.
'Private Const E_BLUETOOTH_ATT_UNSUPPORTED_GROUP_TYPE As Long = &H80650010 '  The attribute type is not a supported grouping attribute as defined by a higher layer specification.
'Private Const E_BLUETOOTH_ATT_INSUFFICIENT_RESOURCES As Long = &H80650011 '  Insufficient Resources to complete the request.
'Private Const E_BLUETOOTH_ATT_UNKNOWN_ERROR As Long = &H80651000 '  An error that lies in the reserved range has been received.
'Private Const E_AUDIO_ENGINE_NODE_NOT_FOUND As Long = &H80660001 '  PortCls could not find an audio engine node exposed by a miniport driver claiming support for IMiniportAudioEngineNode.
'Private Const E_HDAUDIO_EMPTY_CONNECTION_LIST As Long = &H80660002 '  HD Audio widget encountered an unexpected empty connection list.
'Private Const E_HDAUDIO_CONNECTION_LIST_NOT_SUPPORTED As Long = &H80660003 '  HD Audio widget does not support the connection list parameter.
'Private Const E_HDAUDIO_NO_LOGICAL_DEVICES_CREATED As Long = &H80660004 '  No HD Audio subdevices were successfully created.
'Private Const E_HDAUDIO_NULL_LINKED_LIST_ENTRY As Long = &H80660005 '  An unexpected NULL pointer was encountered in a linked list.
'Private Const ERROR_SPACES_POOL_WAS_DELETED As Long = &HE70001  '  The storage pool was deleted by the driver. The object cache should be updated.
'Private Const ERROR_SPACES_RESILIENCY_TYPE_INVALID As Long = &H80E70003 '  The specified resiliency type is not valid.
'Private Const ERROR_SPACES_DRIVE_SECTOR_SIZE_INVALID As Long = &H80E70004 '  The physical disk's sector size is not supported by the storage pool.
'Private Const ERROR_SPACES_DRIVE_REDUNDANCY_INVALID As Long = &H80E70006 '  The requested redundancy is outside of the supported range of values.
'Private Const ERROR_SPACES_NUMBER_OF_DATA_COPIES_INVALID As Long = &H80E70007 '  The number of data copies requested is outside of the supported range of values.
'Private Const ERROR_SPACES_PARITY_LAYOUT_INVALID As Long = &H80E70008 '  The value for ParityLayout is outside of the supported range of values.
'Private Const ERROR_SPACES_INTERLEAVE_LENGTH_INVALID As Long = &H80E70009 '  The value for interleave length is outside of the supported range of values.
'Private Const ERROR_SPACES_NUMBER_OF_COLUMNS_INVALID As Long = &H80E7000A '  The number of columns specified is outside of the supported range of values.
'Private Const ERROR_SPACES_NOT_ENOUGH_DRIVES As Long = &H80E7000B '  There were not enough physical disks to complete the requested operation.
'Private Const ERROR_VOLSNAP_BOOTFILE_NOT_VALID As Long = &H80820001 '  The bootfile is too small to support persistent snapshots.
'Private Const ERROR_TIERING_NOT_SUPPORTED_ON_VOLUME As Long = &H80830001 '  The specified volume does not support storage tiers.
'Private Const ERROR_TIERING_VOLUME_DISMOUNT_IN_PROGRESS As Long = &H80830002 '  The Storage Tiers Management service detected that the specified volume is in the process of being dismounted.
'Private Const ERROR_TIERING_STORAGE_TIER_NOT_FOUND As Long = &H80830003 '  The specified storage tier could not be found on the volume. Confirm that the storage tier name is valid.
'Private Const ERROR_TIERING_INVALID_FILE_ID As Long = &H80830004 '  The file identifier specified is not valid on the volume.
'Private Const ERROR_TIERING_WRONG_CLUSTER_NODE As Long = &H80830005 '  Storage tier operations must be called on the clustering node that owns the metadata volume.
'Private Const ERROR_TIERING_ALREADY_PROCESSING As Long = &H80830006 '  The Storage Tiers Management service is already optimizing the storage tiers on the specified volume.
'Private Const ERROR_TIERING_CANNOT_PIN_OBJECT As Long = &H80830007 '  The requested object type cannot be assigned to a storage tier.
'Private Const DXGI_STATUS_OCCLUDED As Long = &H87A0001 '  The Present operation was invisible to the user.
'Private Const DXGI_STATUS_CLIPPED As Long = &H87A0002 '  The Present operation was partially invisible to the user.
'Private Const DXGI_STATUS_NO_REDIRECTION As Long = &H87A0004 '  The driver is requesting that the DXGI runtime not use shared resources to communicate with the Desktop Window Manager.
'Private Const DXGI_STATUS_NO_DESKTOP_ACCESS As Long = &H87A0005 '  The Present operation was not visible because the Windows session has switched to another desktop (for example, ctrl-alt-del).
'Private Const DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE As Long = &H87A0006 '  The Present operation was not visible because the target monitor was being used for some other purpose.
'Private Const DXGI_STATUS_MODE_CHANGED As Long = &H87A0007 '  The Present operation was not visible because the display mode changed. DXGI will have re-attempted the presentation.
'Private Const DXGI_STATUS_MODE_CHANGE_IN_PROGRESS As Long = &H87A0008 '  The Present operation was not visible because another Direct3D device was attempting to take fullscreen mode at the time.
'Private Const DXGI_ERROR_INVALID_CALL As Long = &H887A0001 '  The application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect.Enable the D3D debug layer in order to see details via debug messages.
'Private Const DXGI_ERROR_NOT_FOUND As Long = &H887A0002 '  The object was not found. If calling IDXGIFactory::EnumAdaptes, there is no adapter with the specified ordinal.
'Private Const DXGI_ERROR_MORE_DATA As Long = &H887A0003 '  The caller did not supply a sufficiently large buffer.
'Private Const DXGI_ERROR_UNSUPPORTED As Long = &H887A0004 '  The specified device interface or feature level is not supported on this system.
'Private Const DXGI_ERROR_DEVICE_REMOVED As Long = &H887A0005 '  The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action.
'Private Const DXGI_ERROR_DEVICE_HUNG As Long = &H887A0006 '  The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application.
'Private Const DXGI_ERROR_DEVICE_RESET As Long = &H887A0007 '  The GPU will not respond to more commands, most likely because some other application submitted invalid commands.The calling application should re-create the device and continue.
'Private Const DXGI_ERROR_WAS_STILL_DRAWING As Long = &H887A000A '  The GPU was busy at the moment when the call was made, and the call was neither executed nor scheduled.
'Private Const DXGI_ERROR_FRAME_STATISTICS_DISJOINT As Long = &H887A000B '  An event (such as power cycle) interrupted the gathering of presentation statistics. Any previous statistics should beconsidered invalid.
'Private Const DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE As Long = &H887A000C '  Fullscreen mode could not be achieved because the specified output was already in use.
'Private Const DXGI_ERROR_DRIVER_INTERNAL_ERROR As Long = &H887A0020 '  An internal issue prevented the driver from carrying out the specified operation. The driver's state is probably suspect,and the application should not continue.
'Private Const DXGI_ERROR_NONEXCLUSIVE As Long = &H887A0021 '  A global counter resource was in use, and the specified counter cannot be used by this Direct3D device at this time.
'Private Const DXGI_ERROR_NOT_CURRENTLY_AVAILABLE As Long = &H887A0022 '  A resource is not available at the time of the call, but may become available later.
'Private Const DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED As Long = &H887A0023 '  The application's remote device has been removed due to session disconnect or network disconnect.The application should call IDXGIFactory1::IsCurrent to find out when the remote device becomes available again.
'Private Const DXGI_ERROR_REMOTE_OUTOFMEMORY As Long = &H887A0024 '  The device has been removed during a remote session because the remote computer ran out of memory.
'Private Const DXGI_ERROR_ACCESS_LOST As Long = &H887A0026 '  The keyed mutex was abandoned.
'Private Const DXGI_ERROR_WAIT_TIMEOUT As Long = &H887A0027 '  The timeout value has elapsed and the resource is not yet available.
'Private Const DXGI_ERROR_SESSION_DISCONNECTED As Long = &H887A0028 '  The output duplication has been turned off because the Windows session ended or was disconnected.This happens when a remote user disconnects, or when "switch user" is used locally.
'Private Const DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE As Long = &H887A0029 '  The DXGI outuput (monitor) to which the swapchain content was restricted, has been disconnected or changed.
'Private Const DXGI_ERROR_CANNOT_PROTECT_CONTENT As Long = &H887A002A '  DXGI is unable to provide content protection on the swapchain. This is typically caused by an older driver,or by the application using a swapchain that is incompatible with content protection.
'Private Const DXGI_ERROR_ACCESS_DENIED As Long = &H887A002B '  The application is trying to use a resource to which it does not have the required access privileges.This is most commonly caused by writing to a shared resource with read-only access.
'Private Const DXGI_ERROR_NAME_ALREADY_EXISTS As Long = &H887A002C '  The application is trying to create a shared handle using a name that is already associated with some other resource.
'Private Const DXGI_ERROR_SDK_COMPONENT_MISSING As Long = &H887A002D '  The application requested an operation that depends on an SDK component that is missing or mismatched.
'Private Const DXGI_STATUS_UNOCCLUDED As Long = &H87A0009 '  The swapchain has become unoccluded.
'Private Const DXGI_STATUS_DDA_WAS_STILL_DRAWING As Long = &H87A000A '  The adapter did not have access to the required resources to complete the Desktop Duplication Present() call, the Present() call needs to be made again
'Private Const DXGI_ERROR_MODE_CHANGE_IN_PROGRESS As Long = &H887A0025 '  An on-going mode change prevented completion of the call. The call may succeed if attempted later.
'Private Const DXGI_DDI_ERR_WASSTILLDRAWING As Long = &H887B0001 '  The GPU was busy when the operation was requested.
'Private Const DXGI_DDI_ERR_UNSUPPORTED As Long = &H887B0002 '  The driver has rejected the creation of this resource.
'Private Const DXGI_DDI_ERR_NONEXCLUSIVE As Long = &H887B0003 '  The GPU counter was in use by another process or d3d device when application requested access to it.
'Private Const D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS As Long = &H88790001 '  The application has exceeded the maximum number of unique state objects per Direct3D device.The limit is 4096 for feature levels up to 11.1.
'Private Const D3D10_ERROR_FILE_NOT_FOUND As Long = &H88790002 '  The specified file was not found.
'Private Const D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS As Long = &H887C0001 '  The application has exceeded the maximum number of unique state objects per Direct3D device.The limit is 4096 for feature levels up to 11.1.
'Private Const D3D11_ERROR_FILE_NOT_FOUND As Long = &H887C0002 '  The specified file was not found.
'Private Const D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS As Long = &H887C0003 '  The application has exceeded the maximum number of unique view objects per Direct3D device.The limit is 2^20 for feature levels up to 11.1.
'Private Const D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD As Long = &H887C0004 '  The application's first call per command list to Map on a deferred context did not use D3D11_MAP_WRITE_DISCARD.
'Private Const D2DERR_WRONG_STATE As Long = &H88990001 '  The object was not in the correct state to process the method.
'Private Const D2DERR_NOT_INITIALIZED As Long = &H88990002 '  The object has not yet been initialized.
'Private Const D2DERR_UNSUPPORTED_OPERATION As Long = &H88990003 '  The requested operation is not supported.
'Private Const D2DERR_SCANNER_FAILED As Long = &H88990004 '  The geometry scanner failed to process the data.
'Private Const D2DERR_SCREEN_ACCESS_DENIED As Long = &H88990005 '  Direct2D could not access the screen.
'Private Const D2DERR_DISPLAY_STATE_INVALID As Long = &H88990006 '  A valid display state could not be determined.
'Private Const D2DERR_ZERO_VECTOR As Long = &H88990007 '  The supplied vector is zero.
'Private Const D2DERR_INTERNAL_ERROR As Long = &H88990008 '  An internal error (Direct2D bug) occurred. On checked builds, we would assert. The application should close this instance of Direct2D and should consider restarting its process.
'Private Const D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED As Long = &H88990009 '  The display format Direct2D needs to render is not supported by the hardware device.
'Private Const D2DERR_INVALID_CALL As Long = &H8899000A '  A call to this method is invalid.
'Private Const D2DERR_NO_HARDWARE_DEVICE As Long = &H8899000B '  No hardware rendering device is available for this operation.
'Private Const D2DERR_RECREATE_TARGET As Long = &H8899000C '  There has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present.
'Private Const D2DERR_TOO_MANY_SHADER_ELEMENTS As Long = &H8899000D '  Shader construction failed because it was too complex.
'Private Const D2DERR_SHADER_COMPILE_FAILED As Long = &H8899000E '  Shader compilation failed.
'Private Const D2DERR_MAX_TEXTURE_SIZE_EXCEEDED As Long = &H8899000F '  Requested DirectX surface size exceeded maximum texture size.
'Private Const D2DERR_UNSUPPORTED_VERSION As Long = &H88990010 '  The requested Direct2D version is not supported.
'Private Const D2DERR_BAD_NUMBER As Long = &H88990011 '  Invalid number.
'Private Const D2DERR_WRONG_FACTORY As Long = &H88990012 '  Objects used together must be created from the same factory instance.
'Private Const D2DERR_LAYER_ALREADY_IN_USE As Long = &H88990013 '  A layer resource can only be in use once at any point in time.
'Private Const D2DERR_POP_CALL_DID_NOT_MATCH_PUSH As Long = &H88990014 '  The pop call did not match the corresponding push call.
'Private Const D2DERR_WRONG_RESOURCE_DOMAIN As Long = &H88990015 '  The resource was realized on the wrong render target.
'Private Const D2DERR_PUSH_POP_UNBALANCED As Long = &H88990016 '  The push and pop calls were unbalanced.
'Private Const D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT As Long = &H88990017 '  Attempt to copy from a render target while a layer or clip rect is applied.
'Private Const D2DERR_INCOMPATIBLE_BRUSH_TYPES As Long = &H88990018 '  The brush types are incompatible for the call.
'Private Const D2DERR_WIN32_ERROR As Long = &H88990019 '  An unknown win32 failure occurred.
'Private Const D2DERR_TARGET_NOT_GDI_COMPATIBLE As Long = &H8899001A '  The render target is not compatible with GDI.
'Private Const D2DERR_TEXT_EFFECT_IS_WRONG_TYPE As Long = &H8899001B '  A text client drawing effect object is of the wrong type.
'Private Const D2DERR_TEXT_RENDERER_NOT_RELEASED As Long = &H8899001C '  The application is holding a reference to the IDWriteTextRenderer interface after the corresponding DrawText or DrawTextLayout call has returned. The IDWriteTextRenderer instance will be invalid.
'Private Const D2DERR_EXCEEDS_MAX_BITMAP_SIZE As Long = &H8899001D '  The requested size is larger than the guaranteed supported texture size at the Direct3D device's current feature level.
'Private Const D2DERR_INVALID_GRAPH_CONFIGURATION As Long = &H8899001E '  There was a configuration error in the graph.
'Private Const D2DERR_INVALID_INTERNAL_GRAPH_CONFIGURATION As Long = &H8899001F '  There was a internal configuration error in the graph.
'Private Const D2DERR_CYCLIC_GRAPH As Long = &H88990020 '  There was a cycle in the graph.
'Private Const D2DERR_BITMAP_CANNOT_DRAW As Long = &H88990021 '  Cannot draw with a bitmap that has the D2D1_BITMAP_OPTIONS_CANNOT_DRAW option.
'Private Const D2DERR_OUTSTANDING_BITMAP_REFERENCES As Long = &H88990022 '  The operation cannot complete while there are outstanding references to the target bitmap.
'Private Const D2DERR_ORIGINAL_TARGET_NOT_BOUND As Long = &H88990023 '  The operation failed because the original target is not currently bound as a target.
'Private Const D2DERR_INVALID_TARGET As Long = &H88990024 '  Cannot set the image as a target because it is either an effect or is a bitmap that does not have the D2D1_BITMAP_OPTIONS_TARGET flag set.
'Private Const D2DERR_BITMAP_BOUND_AS_TARGET As Long = &H88990025 '  Cannot draw with a bitmap that is currently bound as the target bitmap.
'Private Const D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES As Long = &H88990026 '  D3D Device does not have sufficient capabilities to perform the requested action.
'Private Const D2DERR_INTERMEDIATE_TOO_LARGE As Long = &H88990027 '  The graph could not be rendered with the context's current tiling settings.
'Private Const D2DERR_EFFECT_IS_NOT_REGISTERED As Long = &H88990028 '  The CLSID provided to Unregister did not correspond to a registered effect.
'Private Const D2DERR_INVALID_PROPERTY As Long = &H88990029 '  The specified property does not exist.
'Private Const D2DERR_NO_SUBPROPERTIES As Long = &H8899002A '  The specified sub-property does not exist.
'Private Const D2DERR_PRINT_JOB_CLOSED As Long = &H8899002B '  AddPage or Close called after print job is already closed.
'Private Const D2DERR_PRINT_FORMAT_NOT_SUPPORTED As Long = &H8899002C '  Error during print control creation. Indicates that none of the package target types (representing printer formats) are supported by Direct2D print control.
'Private Const D2DERR_TOO_MANY_TRANSFORM_INPUTS As Long = &H8899002D '  An effect attempted to use a transform with too many inputs.
'Private Const DWRITE_E_FILEFORMAT As Long = &H88985000 '  Indicates an error in an input file such as a font file.
'Private Const DWRITE_E_UNEXPECTED As Long = &H88985001 '  Indicates an error originating in DirectWrite code, which is not expected to occur but is safe to recover from.
'Private Const DWRITE_E_NOFONT As Long = &H88985002 '  Indicates the specified font does not exist.
'Private Const DWRITE_E_FILENOTFOUND As Long = &H88985003 '  A font file could not be opened because the file, directory, network location, drive, or other storage location does not exist or is unavailable.
'Private Const DWRITE_E_FILEACCESS As Long = &H88985004 '  A font file exists but could not be opened due to access denied, sharing violation, or similar error.
'Private Const DWRITE_E_FONTCOLLECTIONOBSOLETE As Long = &H88985005 '  A font collection is obsolete due to changes in the system.
'Private Const DWRITE_E_ALREADYREGISTERED As Long = &H88985006 '  The given interface is already registered.
'Private Const DWRITE_E_CACHEFORMAT As Long = &H88985007 '  The font cache contains invalid data.
'Private Const DWRITE_E_CACHEVERSION As Long = &H88985008 '  A font cache file corresponds to a different version of DirectWrite.
'Private Const DWRITE_E_UNSUPPORTEDOPERATION As Long = &H88985009 '  The operation is not supported for this type of font.
'Private Const DWRITE_E_TEXTRENDERERINCOMPATIBLE As Long = &H8898500A '  The version of the text renderer interface is not compatible.
'Private Const DWRITE_E_FLOWDIRECTIONCONFLICTS As Long = &H8898500B '  The flow direction conflicts with the reading direction. They must be perpendicular to each other.
'Private Const DWRITE_E_NOCOLOR As Long = &H8898500C '  The font or glyph run does not contain any colored glyphs.
'Private Const WINCODEC_ERR_WRONGSTATE As Long = &H88982F04 '  The codec is in the wrong state.
'Private Const WINCODEC_ERR_VALUEOUTOFRANGE As Long = &H88982F05 '  The value is out of range.
'Private Const WINCODEC_ERR_UNKNOWNIMAGEFORMAT As Long = &H88982F07 '  The image format is unknown.
'Private Const WINCODEC_ERR_UNSUPPORTEDVERSION As Long = &H88982F0B '  The SDK version is unsupported.
'Private Const WINCODEC_ERR_NOTINITIALIZED As Long = &H88982F0C '  The component is not initialized.
'Private Const WINCODEC_ERR_ALREADYLOCKED As Long = &H88982F0D '  There is already an outstanding read or write lock.
'Private Const WINCODEC_ERR_PROPERTYNOTFOUND As Long = &H88982F40 '  The specified bitmap property cannot be found.
'Private Const WINCODEC_ERR_PROPERTYNOTSUPPORTED As Long = &H88982F41 '  The bitmap codec does not support the bitmap property.
'Private Const WINCODEC_ERR_PROPERTYSIZE As Long = &H88982F42 '  The bitmap property size is invalid.
'Private Const WINCODEC_ERR_CODECPRESENT As Long = &H88982F43 '  An unknown error has occurred.
'Private Const WINCODEC_ERR_CODECNOTHUMBNAIL As Long = &H88982F44 '  The bitmap codec does not support a thumbnail.
'Private Const WINCODEC_ERR_PALETTEUNAVAILABLE As Long = &H88982F45 '  The bitmap palette is unavailable.
'Private Const WINCODEC_ERR_CODECTOOMANYSCANLINES As Long = &H88982F46 '  Too many scanlines were requested.
'Private Const WINCODEC_ERR_INTERNALERROR As Long = &H88982F48 '  An internal error occurred.
'Private Const WINCODEC_ERR_SOURCERECTDOESNOTMATCHDIMENSIONS As Long = &H88982F49 '  The bitmap bounds do not match the bitmap dimensions.
'Private Const WINCODEC_ERR_COMPONENTNOTFOUND As Long = &H88982F50 '  The component cannot be found.
'Private Const WINCODEC_ERR_IMAGESIZEOUTOFRANGE As Long = &H88982F51 '  The bitmap size is outside the valid range.
'Private Const WINCODEC_ERR_TOOMUCHMETADATA As Long = &H88982F52 '  There is too much metadata to be written to the bitmap.
'Private Const WINCODEC_ERR_BADIMAGE As Long = &H88982F60 '  The image is unrecognized.
'Private Const WINCODEC_ERR_BADHEADER As Long = &H88982F61 '  The image header is unrecognized.
'Private Const WINCODEC_ERR_FRAMEMISSING As Long = &H88982F62 '  The bitmap frame is missing.
'Private Const WINCODEC_ERR_BADMETADATAHEADER As Long = &H88982F63 '  The image metadata header is unrecognized.
'Private Const WINCODEC_ERR_BADSTREAMDATA As Long = &H88982F70 '  The stream data is unrecognized.
'Private Const WINCODEC_ERR_STREAMWRITE As Long = &H88982F71 '  Failed to write to the stream.
'Private Const WINCODEC_ERR_STREAMREAD As Long = &H88982F72 '  Failed to read from the stream.
'Private Const WINCODEC_ERR_STREAMNOTAVAILABLE As Long = &H88982F73 '  The stream is not available.
'Private Const WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT As Long = &H88982F80 '  The bitmap pixel format is unsupported.
'Private Const WINCODEC_ERR_UNSUPPORTEDOPERATION As Long = &H88982F81 '  The operation is unsupported.
'Private Const WINCODEC_ERR_INVALIDREGISTRATION As Long = &H88982F8A '  The component registration is invalid.
'Private Const WINCODEC_ERR_COMPONENTINITIALIZEFAILURE As Long = &H88982F8B '  The component initialization has failed.
'Private Const WINCODEC_ERR_INSUFFICIENTBUFFER As Long = &H88982F8C '  The buffer allocated is insufficient.
'Private Const WINCODEC_ERR_DUPLICATEMETADATAPRESENT As Long = &H88982F8D '  Duplicate metadata is present.
'Private Const WINCODEC_ERR_PROPERTYUNEXPECTEDTYPE As Long = &H88982F8E '  The bitmap property type is unexpected.
'Private Const WINCODEC_ERR_UNEXPECTEDSIZE As Long = &H88982F8F '  The size is unexpected.
'Private Const WINCODEC_ERR_INVALIDQUERYREQUEST As Long = &H88982F90 '  The property query is invalid.
'Private Const WINCODEC_ERR_UNEXPECTEDMETADATATYPE As Long = &H88982F91 '  The metadata type is unexpected.
'Private Const WINCODEC_ERR_REQUESTONLYVALIDATMETADATAROOT As Long = &H88982F92 '  The specified bitmap property is only valid at root level.
'Private Const WINCODEC_ERR_INVALIDQUERYCHARACTER As Long = &H88982F93 '  The query string contains an invalid character.
'Private Const WINCODEC_ERR_WIN32ERROR As Long = &H88982F94 '  Windows Codecs received an error from the Win32 system.
'Private Const WINCODEC_ERR_INVALIDPROGRESSIVELEVEL As Long = &H88982F95 '  The requested level of detail is not present.
'Private Const MILERR_OBJECTBUSY As Long = &H88980001 '  MILERR_OBJECTBUSY
'Private Const MILERR_INSUFFICIENTBUFFER As Long = &H88980002 '  MILERR_INSUFFICIENTBUFFER
'Private Const MILERR_WIN32ERROR As Long = &H88980003 '  MILERR_WIN32ERROR
'Private Const MILERR_SCANNER_FAILED As Long = &H88980004 '  MILERR_SCANNER_FAILED
'Private Const MILERR_SCREENACCESSDENIED As Long = &H88980005 '  MILERR_SCREENACCESSDENIED
'Private Const MILERR_DISPLAYSTATEINVALID As Long = &H88980006 '  MILERR_DISPLAYSTATEINVALID
'Private Const MILERR_NONINVERTIBLEMATRIX As Long = &H88980007 '  MILERR_NONINVERTIBLEMATRIX
'Private Const MILERR_ZEROVECTOR As Long = &H88980008 '  MILERR_ZEROVECTOR
'Private Const MILERR_TERMINATED As Long = &H88980009 '  MILERR_TERMINATED
'Private Const MILERR_BADNUMBER As Long = &H8898000A '  MILERR_BADNUMBER
'Private Const MILERR_INTERNALERROR As Long = &H88980080 '  An internal error (MIL bug) occurred. On checked builds, an assert would be raised.
'Private Const MILERR_DISPLAYFORMATNOTSUPPORTED As Long = &H88980084 '  The display format we need to render is not supported by the hardware device.
'Private Const MILERR_INVALIDCALL As Long = &H88980085 '  A call to this method is invalid.
'Private Const MILERR_ALREADYLOCKED As Long = &H88980086 '  Lock attempted on an already locked object.
'Private Const MILERR_NOTLOCKED As Long = &H88980087 '  Unlock attempted on an unlocked object.
'Private Const MILERR_DEVICECANNOTRENDERTEXT As Long = &H88980088 '  No algorithm avaliable to render text with this device
'Private Const MILERR_GLYPHBITMAPMISSED As Long = &H88980089 '  Some glyph bitmaps, required for glyph run rendering, are not contained in glyph cache.
'Private Const MILERR_MALFORMEDGLYPHCACHE As Long = &H8898008A '  Some glyph bitmaps in glyph cache are unexpectedly big.
'Private Const MILERR_GENERIC_IGNORE As Long = &H8898008B '  Marker error for known Win32 errors that are currently being ignored by the compositor. This is to avoid returning S_OK when an error has occurred, but still unwind the stack in the correct location.
'Private Const MILERR_MALFORMED_GUIDELINE_DATA As Long = &H8898008C '  Guideline coordinates are not sorted properly or contain NaNs.
'Private Const MILERR_NO_HARDWARE_DEVICE As Long = &H8898008D '  No HW rendering device is available for this operation.
'Private Const MILERR_NEED_RECREATE_AND_PRESENT As Long = &H8898008E '  There has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present.There are two known case for this: 1) D3D Driver Internal error 2) D3D E_FAIL 2a) Unknown root cause b) When resizing too quickly for DWM and D3D stay in sync
'Private Const MILERR_ALREADY_INITIALIZED As Long = &H8898008F '  The object has already been initialized.
'Private Const MILERR_MISMATCHED_SIZE As Long = &H88980090 '  The size of the object does not match the expected size.
'Private Const MILERR_NO_REDIRECTION_SURFACE_AVAILABLE As Long = &H88980091 '  No Redirection surface available.
'Private Const MILERR_REMOTING_NOT_SUPPORTED As Long = &H88980092 '  Remoting of this content is not supported.
'Private Const MILERR_QUEUED_PRESENT_NOT_SUPPORTED As Long = &H88980093 '  Queued Presents are not supported.
'Private Const MILERR_NOT_QUEUING_PRESENTS As Long = &H88980094 '  Queued Presents are not being used.
'Private Const MILERR_NO_REDIRECTION_SURFACE_RETRY_LATER As Long = &H88980095 '  No redirection surface was available. Caller should retry the call.
'Private Const MILERR_TOOMANYSHADERELEMNTS As Long = &H88980096 '  Shader construction failed because it was too complex.
'Private Const MILERR_MROW_READLOCK_FAILED As Long = &H88980097 '  MROW attempt to get a read lock failed.
'Private Const MILERR_MROW_UPDATE_FAILED As Long = &H88980098 '  MROW attempt to update the data failed because another update was outstanding.
'Private Const MILERR_SHADER_COMPILE_FAILED As Long = &H88980099 '  Shader compilation failed.
'Private Const MILERR_MAX_TEXTURE_SIZE_EXCEEDED As Long = &H8898009A '  Requested DX redirection surface size exceeded maximum texture size.
'Private Const MILERR_QPC_TIME_WENT_BACKWARD As Long = &H8898009B '  QueryPerformanceCounter returned a time in the past.
'Private Const MILERR_DXGI_ENUMERATION_OUT_OF_SYNC As Long = &H8898009D '  Primary Display device returned an invalid refresh rate.
'Private Const MILERR_ADAPTER_NOT_FOUND As Long = &H8898009E '  DWM can not find the adapter specified by the LUID.
'Private Const MILERR_COLORSPACE_NOT_SUPPORTED As Long = &H8898009F '  The requested bitmap color space is not supported.
'Private Const MILERR_PREFILTER_NOT_SUPPORTED As Long = &H889800A0 '  The requested bitmap pre-filtering state is not supported.
'Private Const MILERR_DISPLAYID_ACCESS_DENIED As Long = &H889800A1 '  Access is denied to the requested bitmap for the specified display id.
'Private Const UCEERR_INVALIDPACKETHEADER As Long = &H88980400 '  UCEERR_INVALIDPACKETHEADER
'Private Const UCEERR_UNKNOWNPACKET As Long = &H88980401 '  UCEERR_UNKNOWNPACKET
'Private Const UCEERR_ILLEGALPACKET As Long = &H88980402 '  UCEERR_ILLEGALPACKET
'Private Const UCEERR_MALFORMEDPACKET As Long = &H88980403 '  UCEERR_MALFORMEDPACKET
'Private Const UCEERR_ILLEGALHANDLE As Long = &H88980404 '  UCEERR_ILLEGALHANDLE
'Private Const UCEERR_HANDLELOOKUPFAILED As Long = &H88980405 '  UCEERR_HANDLELOOKUPFAILED
'Private Const UCEERR_RENDERTHREADFAILURE As Long = &H88980406 '  UCEERR_RENDERTHREADFAILURE
'Private Const UCEERR_CTXSTACKFRSTTARGETNULL As Long = &H88980407 '  UCEERR_CTXSTACKFRSTTARGETNULL
'Private Const UCEERR_CONNECTIONIDLOOKUPFAILED As Long = &H88980408 '  UCEERR_CONNECTIONIDLOOKUPFAILED
'Private Const UCEERR_BLOCKSFULL As Long = &H88980409 '  UCEERR_BLOCKSFULL
'Private Const UCEERR_MEMORYFAILURE As Long = &H8898040A '  UCEERR_MEMORYFAILURE
'Private Const UCEERR_PACKETRECORDOUTOFRANGE As Long = &H8898040B '  UCEERR_PACKETRECORDOUTOFRANGE
'Private Const UCEERR_ILLEGALRECORDTYPE As Long = &H8898040C '  UCEERR_ILLEGALRECORDTYPE
'Private Const UCEERR_OUTOFHANDLES As Long = &H8898040D '  UCEERR_OUTOFHANDLES
'Private Const UCEERR_UNCHANGABLE_UPDATE_ATTEMPTED As Long = &H8898040E '  UCEERR_UNCHANGABLE_UPDATE_ATTEMPTED
'Private Const UCEERR_NO_MULTIPLE_WORKER_THREADS As Long = &H8898040F '  UCEERR_NO_MULTIPLE_WORKER_THREADS
'Private Const UCEERR_REMOTINGNOTSUPPORTED As Long = &H88980410 '  UCEERR_REMOTINGNOTSUPPORTED
'Private Const UCEERR_MISSINGENDCOMMAND As Long = &H88980411 '  UCEERR_MISSINGENDCOMMAND
'Private Const UCEERR_MISSINGBEGINCOMMAND As Long = &H88980412 '  UCEERR_MISSINGBEGINCOMMAND
'Private Const UCEERR_CHANNELSYNCTIMEDOUT As Long = &H88980413 '  UCEERR_CHANNELSYNCTIMEDOUT
'Private Const UCEERR_CHANNELSYNCABANDONED As Long = &H88980414 '  UCEERR_CHANNELSYNCABANDONED
'Private Const UCEERR_UNSUPPORTEDTRANSPORTVERSION As Long = &H88980415 '  UCEERR_UNSUPPORTEDTRANSPORTVERSION
'Private Const UCEERR_TRANSPORTUNAVAILABLE As Long = &H88980416 '  UCEERR_TRANSPORTUNAVAILABLE
'Private Const UCEERR_FEEDBACK_UNSUPPORTED As Long = &H88980417 '  UCEERR_FEEDBACK_UNSUPPORTED
'Private Const UCEERR_COMMANDTRANSPORTDENIED As Long = &H88980418 '  UCEERR_COMMANDTRANSPORTDENIED
'Private Const UCEERR_GRAPHICSSTREAMUNAVAILABLE As Long = &H88980419 '  UCEERR_GRAPHICSSTREAMUNAVAILABLE
'Private Const UCEERR_GRAPHICSSTREAMALREADYOPEN As Long = &H88980420 '  UCEERR_GRAPHICSSTREAMALREADYOPEN
'Private Const UCEERR_TRANSPORTDISCONNECTED As Long = &H88980421 '  UCEERR_TRANSPORTDISCONNECTED
'Private Const UCEERR_TRANSPORTOVERLOADED As Long = &H88980422 '  UCEERR_TRANSPORTOVERLOADED
'Private Const UCEERR_PARTITION_ZOMBIED As Long = &H88980423 '  UCEERR_PARTITION_ZOMBIED
'Private Const MILAVERR_NOCLOCK As Long = &H88980500 '  MILAVERR_NOCLOCK
'Private Const MILAVERR_NOMEDIATYPE As Long = &H88980501 '  MILAVERR_NOMEDIATYPE
'Private Const MILAVERR_NOVIDEOMIXER As Long = &H88980502 '  MILAVERR_NOVIDEOMIXER
'Private Const MILAVERR_NOVIDEOPRESENTER As Long = &H88980503 '  MILAVERR_NOVIDEOPRESENTER
'Private Const MILAVERR_NOREADYFRAMES As Long = &H88980504 '  MILAVERR_NOREADYFRAMES
'Private Const MILAVERR_MODULENOTLOADED As Long = &H88980505 '  MILAVERR_MODULENOTLOADED
'Private Const MILAVERR_WMPFACTORYNOTREGISTERED As Long = &H88980506 '  MILAVERR_WMPFACTORYNOTREGISTERED
'Private Const MILAVERR_INVALIDWMPVERSION As Long = &H88980507 '  MILAVERR_INVALIDWMPVERSION
'Private Const MILAVERR_INSUFFICIENTVIDEORESOURCES As Long = &H88980508 '  MILAVERR_INSUFFICIENTVIDEORESOURCES
'Private Const MILAVERR_VIDEOACCELERATIONNOTAVAILABLE As Long = &H88980509 '  MILAVERR_VIDEOACCELERATIONNOTAVAILABLE
'Private Const MILAVERR_REQUESTEDTEXTURETOOBIG As Long = &H8898050A '  MILAVERR_REQUESTEDTEXTURETOOBIG
'Private Const MILAVERR_SEEKFAILED As Long = &H8898050B '  MILAVERR_SEEKFAILED
'Private Const MILAVERR_UNEXPECTEDWMPFAILURE As Long = &H8898050C '  MILAVERR_UNEXPECTEDWMPFAILURE
'Private Const MILAVERR_MEDIAPLAYERCLOSED As Long = &H8898050D '  MILAVERR_MEDIAPLAYERCLOSED
'Private Const MILAVERR_UNKNOWNHARDWAREERROR As Long = &H8898050E '  MILAVERR_UNKNOWNHARDWAREERROR
'Private Const MILEFFECTSERR_UNKNOWNPROPERTY As Long = &H8898060E '  MILEFFECTSERR_UNKNOWNPROPERTY
'Private Const MILEFFECTSERR_EFFECTNOTPARTOFGROUP As Long = &H8898060F '  MILEFFECTSERR_EFFECTNOTPARTOFGROUP
'Private Const MILEFFECTSERR_NOINPUTSOURCEATTACHED As Long = &H88980610 '  MILEFFECTSERR_NOINPUTSOURCEATTACHED
'Private Const MILEFFECTSERR_CONNECTORNOTCONNECTED As Long = &H88980611 '  MILEFFECTSERR_CONNECTORNOTCONNECTED
'Private Const MILEFFECTSERR_CONNECTORNOTASSOCIATEDWITHEFFECT As Long = &H88980612 '  MILEFFECTSERR_CONNECTORNOTASSOCIATEDWITHEFFECT
'Private Const MILEFFECTSERR_RESERVED As Long = &H88980613 '  MILEFFECTSERR_RESERVED
'Private Const MILEFFECTSERR_CYCLEDETECTED As Long = &H88980614 '  MILEFFECTSERR_CYCLEDETECTED
'Private Const MILEFFECTSERR_EFFECTINMORETHANONEGRAPH As Long = &H88980615 '  MILEFFECTSERR_EFFECTINMORETHANONEGRAPH
'Private Const MILEFFECTSERR_EFFECTALREADYINAGRAPH As Long = &H88980616 '  MILEFFECTSERR_EFFECTALREADYINAGRAPH
'Private Const MILEFFECTSERR_EFFECTHASNOCHILDREN As Long = &H88980617 '  MILEFFECTSERR_EFFECTHASNOCHILDREN
'Private Const MILEFFECTSERR_ALREADYATTACHEDTOLISTENER As Long = &H88980618 '  MILEFFECTSERR_ALREADYATTACHEDTOLISTENER
'Private Const MILEFFECTSERR_NOTAFFINETRANSFORM As Long = &H88980619 '  MILEFFECTSERR_NOTAFFINETRANSFORM
'Private Const MILEFFECTSERR_EMPTYBOUNDS As Long = &H8898061A '  MILEFFECTSERR_EMPTYBOUNDS
'Private Const MILEFFECTSERR_OUTPUTSIZETOOLARGE As Long = &H8898061B '  MILEFFECTSERR_OUTPUTSIZETOOLARGE
'Private Const DWMERR_STATE_TRANSITION_FAILED As Long = &H88980700 '  DWMERR_STATE_TRANSITION_FAILED
'Private Const DWMERR_THEME_FAILED As Long = &H88980701 '  DWMERR_THEME_FAILED
'Private Const DWMERR_CATASTROPHIC_FAILURE As Long = &H88980702 '  DWMERR_CATASTROPHIC_FAILURE
'Private Const DCOMPOSITION_ERROR_WINDOW_ALREADY_COMPOSED As Long = &H88980800 '  DCOMPOSITION_ERROR_WINDOW_ALREADY_COMPOSED
'Private Const DCOMPOSITION_ERROR_SURFACE_BEING_RENDERED As Long = &H88980801 '  DCOMPOSITION_ERROR_SURFACE_BEING_RENDERED
'Private Const DCOMPOSITION_ERROR_SURFACE_NOT_BEING_RENDERED As Long = &H88980802 '  DCOMPOSITION_ERROR_SURFACE_NOT_BEING_RENDERED
'Private Const ONL_E_INVALID_AUTHENTICATION_TARGET As Long = &H80860001 '  Authentication target is invalid or not configured correctly.
'Private Const ONL_E_ACCESS_DENIED_BY_TOU As Long = &H80860002 '  Your application cannot get the Online Id properties due to the Terms of Use accepted by the user.
'Private Const ONL_E_INVALID_APPLICATION As Long = &H80860003 '  The application requesting authentication tokens is either disabled or incorrectly configured.
'Private Const ONL_E_PASSWORD_UPDATE_REQUIRED As Long = &H80860004 '  Online Id password must be updated before signin.
'Private Const ONL_E_ACCOUNT_UPDATE_REQUIRED As Long = &H80860005 '  Online Id account properties must be updated before signin.
'Private Const ONL_E_FORCESIGNIN As Long = &H80860006 '  To help protect your Online Id account you must signin again.
'Private Const ONL_E_ACCOUNT_LOCKED As Long = &H80860007 '  Online Id account was locked because there have been too many attempts to sign in.
'Private Const ONL_E_PARENTAL_CONSENT_REQUIRED As Long = &H80860008 '  Online Id account requires parental consent before proceeding.
'Private Const ONL_E_EMAIL_VERIFICATION_REQUIRED As Long = &H80860009 '  Online Id signin name is not yet verified. Email verification is required before signin.
'Private Const ONL_E_ACCOUNT_SUSPENDED_COMPROIMISE As Long = &H8086000A '  We have noticed some unusual activity in your Online Id account. Your action is needed to make sure no one else is using your account.
'Private Const ONL_E_ACCOUNT_SUSPENDED_ABUSE As Long = &H8086000B '  We detected some suspicious activity with your Online Id account. To help protect you, we've temporarily blocked your account.
'Private Const ONL_E_ACTION_REQUIRED As Long = &H8086000C '  User interaction is required for authentication.
'Private Const ONL_CONNECTION_COUNT_LIMIT As Long = &H8086000D '  User has reached the maximum device associations per user limit.
'Private Const ONL_E_CONNECTED_ACCOUNT_CAN_NOT_SIGNOUT As Long = &H8086000E '  Cannot sign out from the application since the user account is connected.
'Private Const ONL_E_USER_AUTHENTICATION_REQUIRED As Long = &H8086000F '  User authentication is required for this operation.
'Private Const ONL_E_REQUEST_THROTTLED As Long = &H80860010 '  We want to make sure this is you. User interaction is required for authentication.
'Private Const FA_E_MAX_PERSISTED_ITEMS_REACHED As Long = &H80270220 '  The maximum number of items for the access list has been reached. An item must be removed before another item is added.
'Private Const FA_E_HOMEGROUP_NOT_AVAILABLE As Long = &H80270222 '  Cannot access Homegroup. Homegroup may not be set up or may have encountered an error.
'Private Const E_MONITOR_RESOLUTION_TOO_LOW As Long = &H80270250 '  This app can't start because the screen resolution is below 1024x768. Choose a higher screen resolution and then try again.
'Private Const E_ELEVATED_ACTIVATION_NOT_SUPPORTED As Long = &H80270251 '  This app can't be activated from an elevated context.
'Private Const E_UAC_DISABLED As Long = &H80270252 '  This app can't be activated when UAC is disabled.
'Private Const E_FULL_ADMIN_NOT_SUPPORTED As Long = &H80270253 '  This app can't be activated by the Built-in Administrator.
'Private Const E_APPLICATION_NOT_REGISTERED As Long = &H80270254 '  This app does not support the contract specified or is not installed.
'Private Const E_MULTIPLE_EXTENSIONS_FOR_APPLICATION As Long = &H80270255 '  This app has mulitple extensions registered to support the specified contract. Activation by AppUserModelId is ambiguous.
'Private Const E_MULTIPLE_PACKAGES_FOR_FAMILY As Long = &H80270256 '  This app's package family has more than one package installed. This is not supported.
'Private Const E_APPLICATION_MANAGER_NOT_RUNNING As Long = &H80270257 '  The app manager is required to activate applications, but is not running.
'Private Const S_STORE_LAUNCHED_FOR_REMEDIATION As Long = &H270258  '  The Store was launched instead of the specified app because the app's package was in an invalid state.
'Private Const S_APPLICATION_ACTIVATION_ERROR_HANDLED_BY_DIALOG As Long = &H270259  '  This app failed to launch, but the error was handled with a dialog.
'Private Const E_APPLICATION_ACTIVATION_TIMED_OUT As Long = &H8027025A '  The app didn't start in the required time.
'Private Const E_APPLICATION_ACTIVATION_EXEC_FAILURE As Long = &H8027025B '  The app didn't start.
'Private Const E_APPLICATION_TEMPORARY_LICENSE_ERROR As Long = &H8027025C '  This app failed to launch because of an issue with its license. Please try again in a moment.
'Private Const E_APPLICATION_TRIAL_LICENSE_EXPIRED As Long = &H8027025D '  This app failed to launch because its trial license has expired.
'Private Const E_SKYDRIVE_ROOT_TARGET_FILE_SYSTEM_NOT_SUPPORTED As Long = &H80270260 '  Please choose a folder on a drive that's formatted with the NTFS file system.
'Private Const E_SKYDRIVE_ROOT_TARGET_OVERLAP As Long = &H80270261 '  This location is already being used. Please choose a different location.
'Private Const E_SKYDRIVE_ROOT_TARGET_CANNOT_INDEX As Long = &H80270262 '  This location cannot be indexed. Please choose a different location.
'Private Const E_SKYDRIVE_FILE_NOT_UPLOADED As Long = &H80270263 '  Sorry, the action couldn't be completed because the file hasn't finished uploading. Try again later.
'Private Const E_SKYDRIVE_UPDATE_AVAILABILITY_FAIL As Long = &H80270264 '  Sorry, the action couldn't be completed.
'Private Const E_SKYDRIVE_ROOT_TARGET_VOLUME_ROOT_NOT_SUPPORTED As Long = &H80270265 '  This content can only be moved to a folder. To move the content to this drive, please choose or create a folder.
'Private Const E_SYNCENGINE_FILE_SIZE_OVER_LIMIT As Long = &H8802B001 '  The file size is larger than supported by the sync engine.
'Private Const E_SYNCENGINE_FILE_SIZE_EXCEEDS_REMAINING_QUOTA As Long = &H8802B002 '  The file cannot be uploaded because it doesn't fit in the user's available service provided storage space.
'Private Const E_SYNCENGINE_UNSUPPORTED_FILE_NAME As Long = &H8802B003 '  The file name contains invalid characters.
'Private Const E_SYNCENGINE_FOLDER_ITEM_COUNT_LIMIT_EXCEEDED As Long = &H8802B004 '  The maximum file count has been reached for this folder in the sync engine.
'Private Const E_SYNCENGINE_FILE_SYNC_PARTNER_ERROR As Long = &H8802B005 '  The file sync has been delegated to another program and has run into an issue.
'Private Const E_SYNCENGINE_SYNC_PAUSED_BY_SERVICE As Long = &H8802B006 '  Sync has been delayed due to a throttling request from the service.
'Private Const E_SYNCENGINE_FILE_IDENTIFIER_UNKNOWN As Long = &H8802C002 '  We can't seem to find that file. Please try again later.
'Private Const E_SYNCENGINE_SERVICE_AUTHENTICATION_FAILED As Long = &H8802C003 '  The account you're signed in with doesn't have permission to open this file.
'Private Const E_SYNCENGINE_UNKNOWN_SERVICE_ERROR As Long = &H8802C004 '  There was a problem connecting to the service. Please try again later.
'Private Const E_SYNCENGINE_SERVICE_RETURNED_UNEXPECTED_SIZE As Long = &H8802C005 '  Sorry, there was a problem downloading the file.
'Private Const E_SYNCENGINE_REQUEST_BLOCKED_BY_SERVICE As Long = &H8802C006 '  We're having trouble downloading the file right now. Please try again later.
'Private Const E_SYNCENGINE_REQUEST_BLOCKED_DUE_TO_CLIENT_ERROR As Long = &H8802C007 '  We're having trouble downloading the file right now. Please try again later.
'Private Const E_SYNCENGINE_FOLDER_INACCESSIBLE As Long = &H8802D001 '  The sync engine does not have permissions to access a local folder under the sync root.
'Private Const E_SYNCENGINE_UNSUPPORTED_FOLDER_NAME As Long = &H8802D002 '  The folder name contains invalid characters.
'Private Const E_SYNCENGINE_UNSUPPORTED_MARKET As Long = &H8802D003 '  The sync engine is not allowed to run in your current market.
'Private Const E_SYNCENGINE_PATH_LENGTH_LIMIT_EXCEEDED As Long = &H8802D004 '  All files and folders can't be uploaded because a path of a file or folder is too long.
'Private Const E_SYNCENGINE_REMOTE_PATH_LENGTH_LIMIT_EXCEEDED As Long = &H8802D005 '  All file and folders cannot be synchronized because a path of a file or folder would exceed the local path limit.
'Private Const E_SYNCENGINE_CLIENT_UPDATE_NEEDED As Long = &H8802D006 '  Updates are needed in order to use the sync engine.
'Private Const E_SYNCENGINE_PROXY_AUTHENTICATION_REQUIRED As Long = &H8802D007 '  The sync engine needs to authenticate with a proxy server.
'Private Const E_SYNCENGINE_STORAGE_SERVICE_PROVISIONING_FAILED As Long = &H8802D008 '  There was a problem setting up the storage services for the account.
'Private Const E_SYNCENGINE_UNSUPPORTED_REPARSE_POINT As Long = &H8802D009 '  Files can't be uploaded because there's an unsupported reparse point.
'Private Const E_SYNCENGINE_STORAGE_SERVICE_BLOCKED As Long = &H8802D00A '  The service has blocked your account from accessing the storage service.
'Private Const E_SYNCENGINE_FOLDER_IN_REDIRECTION As Long = &H8802D00B '  The action can't be performed right now because this folder is being moved. Please try again later.
'Private Const EAS_E_POLICY_NOT_MANAGED_BY_OS As Long = &H80550001 '  Windows cannot evaluate this EAS policy since this is not managed by the operating system.
'Private Const EAS_E_POLICY_COMPLIANT_WITH_ACTIONS As Long = &H80550002 '  The system can be made compliant to this EAS policy if certain actions are performed by the user.
'Private Const EAS_E_REQUESTED_POLICY_NOT_ENFORCEABLE As Long = &H80550003 '  The EAS policy being evaluated cannot be enforced by the system.
'Private Const EAS_E_CURRENT_USER_HAS_BLANK_PASSWORD As Long = &H80550004 '  EAS password policies for the user cannot be evaluated as the user has a blank password.
'Private Const EAS_E_REQUESTED_POLICY_PASSWORD_EXPIRATION_INCOMPATIBLE As Long = &H80550005 '  EAS password expiration policy cannot be satisfied as the password expiration interval is less than the minimum password interval of the system.
'Private Const EAS_E_USER_CANNOT_CHANGE_PASSWORD As Long = &H80550006 '  The user is not allowed to change her password.
'Private Const EAS_E_ADMINS_HAVE_BLANK_PASSWORD As Long = &H80550007 '  EAS password policies cannot be evaluated as one or more admins have blank passwords.
'Private Const EAS_E_ADMINS_CANNOT_CHANGE_PASSWORD As Long = &H80550008 '  One or more admins are not allowed to change their password.
'Private Const EAS_E_LOCAL_CONTROLLED_USERS_CANNOT_CHANGE_PASSWORD As Long = &H80550009 '  There are other standard users present who are not allowed to change their password.
'Private Const EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CONNECTED_ADMINS As Long = &H8055000A '  The EAS password policy cannot be enforced by the connected account provider of at least one administrator.
'Private Const EAS_E_CONNECTED_ADMINS_NEED_TO_CHANGE_PASSWORD As Long = &H8055000B '  There is at least one administrator whose connected account password needs to be changed for EAS password policy compliance.
'Private Const EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CURRENT_CONNECTED_USER As Long = &H8055000C '  The EAS password policy cannot be enforced by the connected account provider of the current user.
'Private Const EAS_E_CURRENT_CONNECTED_USER_NEED_TO_CHANGE_PASSWORD As Long = &H8055000D '  The connected account password of the current user needs to be changed for EAS password policy compliance.
'Private Const WEB_E_UNSUPPORTED_FORMAT As Long = &H83750001 '  Unsupported format.
'Private Const WEB_E_INVALID_XML As Long = &H83750002 '  Invalid XML.
'Private Const WEB_E_MISSING_REQUIRED_ELEMENT As Long = &H83750003 '  Missing required element.
'Private Const WEB_E_MISSING_REQUIRED_ATTRIBUTE As Long = &H83750004 '  Missing required attribute.
'Private Const WEB_E_UNEXPECTED_CONTENT As Long = &H83750005 '  Unexpected content.
'Private Const WEB_E_RESOURCE_TOO_LARGE As Long = &H83750006 '  Resource too large.
'Private Const WEB_E_INVALID_JSON_STRING As Long = &H83750007 '  Invalid JSON string.
'Private Const WEB_E_INVALID_JSON_NUMBER As Long = &H83750008 '  Invalid JSON number.
'Private Const WEB_E_JSON_VALUE_NOT_FOUND As Long = &H83750009 '  JSON value not found.
'Private Const HTTP_E_STATUS_UNEXPECTED As Long = &H80190001 '  Unexpected HTTP status code.
'Private Const HTTP_E_STATUS_UNEXPECTED_REDIRECTION As Long = &H80190003 '  Unexpected redirection status code (3xx).
'Private Const HTTP_E_STATUS_UNEXPECTED_CLIENT_ERROR As Long = &H80190004 '  Unexpected client error status code (4xx).
'Private Const HTTP_E_STATUS_UNEXPECTED_SERVER_ERROR As Long = &H80190005 '  Unexpected server error status code (5xx).
'Private Const HTTP_E_STATUS_AMBIGUOUS As Long = &H8019012C '  Multiple choices (300).
'Private Const HTTP_E_STATUS_MOVED As Long = &H8019012D '  Moved permanently (301).
'Private Const HTTP_E_STATUS_REDIRECT As Long = &H8019012E '  Found (302).
'Private Const HTTP_E_STATUS_REDIRECT_METHOD As Long = &H8019012F '  See Other (303).
'Private Const HTTP_E_STATUS_NOT_MODIFIED As Long = &H80190130 '  Not modified (304).
'Private Const HTTP_E_STATUS_USE_PROXY As Long = &H80190131 '  Use proxy (305).
'Private Const HTTP_E_STATUS_REDIRECT_KEEP_VERB As Long = &H80190133 '  Temporary redirect (307).
'Private Const HTTP_E_STATUS_BAD_REQUEST As Long = &H80190190 '  Bad request (400).
'Private Const HTTP_E_STATUS_DENIED As Long = &H80190191 '  Unauthorized (401).
'Private Const HTTP_E_STATUS_PAYMENT_REQ As Long = &H80190192 '  Payment required (402).
'Private Const HTTP_E_STATUS_FORBIDDEN As Long = &H80190193 '  Forbidden (403).
'Private Const HTTP_E_STATUS_NOT_FOUND As Long = &H80190194 '  Not found (404).
'Private Const HTTP_E_STATUS_BAD_METHOD As Long = &H80190195 '  Method not allowed (405).
'Private Const HTTP_E_STATUS_NONE_ACCEPTABLE As Long = &H80190196 '  Not acceptable (406).
'Private Const HTTP_E_STATUS_PROXY_AUTH_REQ As Long = &H80190197 '  Proxy authentication required (407).
'Private Const HTTP_E_STATUS_REQUEST_TIMEOUT As Long = &H80190198 '  Request timeout (408).
'Private Const HTTP_E_STATUS_CONFLICT As Long = &H80190199 '  Conflict (409).
'Private Const HTTP_E_STATUS_GONE As Long = &H8019019A '  Gone (410).
'Private Const HTTP_E_STATUS_LENGTH_REQUIRED As Long = &H8019019B '  Length required (411).
'Private Const HTTP_E_STATUS_PRECOND_FAILED As Long = &H8019019C '  Precondition failed (412).
'Private Const HTTP_E_STATUS_REQUEST_TOO_LARGE As Long = &H8019019D '  Request entity too large (413).
'Private Const HTTP_E_STATUS_URI_TOO_LONG As Long = &H8019019E '  Request-URI too long (414).
'Private Const HTTP_E_STATUS_UNSUPPORTED_MEDIA As Long = &H8019019F '  Unsupported media type (415).
'Private Const HTTP_E_STATUS_RANGE_NOT_SATISFIABLE As Long = &H801901A0 '  Requested range not satisfiable (416).
'Private Const HTTP_E_STATUS_EXPECTATION_FAILED As Long = &H801901A1 '  Expectation failed (417).
'Private Const HTTP_E_STATUS_SERVER_ERROR As Long = &H801901F4 '  Internal server error (500).
'Private Const HTTP_E_STATUS_NOT_SUPPORTED As Long = &H801901F5 '  Not implemented (501).
'Private Const HTTP_E_STATUS_BAD_GATEWAY As Long = &H801901F6 '  Bad gateway (502).
'Private Const HTTP_E_STATUS_SERVICE_UNAVAIL As Long = &H801901F7 '  Service unavailable (503).
'Private Const HTTP_E_STATUS_GATEWAY_TIMEOUT As Long = &H801901F8 '  Gateway timeout (504).
'Private Const HTTP_E_STATUS_VERSION_NOT_SUP As Long = &H801901F9 '  Version not supported (505).
'Private Const E_INVALID_PROTOCOL_OPERATION As Long = &H83760001 '  Invalid operation performed by the protocol.
'Private Const E_INVALID_PROTOCOL_FORMAT As Long = &H83760002 '  Invalid data format for the specific protocol operation.
'Private Const E_PROTOCOL_EXTENSIONS_NOT_SUPPORTED As Long = &H83760003 '  Protocol extensions are not supported.
'Private Const E_SUBPROTOCOL_NOT_SUPPORTED As Long = &H83760004 '  Subrotocol is not supported.
'Private Const E_PROTOCOL_VERSION_NOT_SUPPORTED As Long = &H83760005 '  Incorrect protocol version.
'Private Const INPUT_E_OUT_OF_ORDER As Long = &H80400000 '  Input data cannot be processed in the non-chronological order.
'Private Const INPUT_E_REENTRANCY As Long = &H80400001 '  Requested operation cannot be performed inside the callback or event handler.
'Private Const INPUT_E_MULTIMODAL As Long = &H80400002 '  Input cannot be processed because there is ongoing interaction with another pointer type.
'Private Const INPUT_E_PACKET As Long = &H80400003 '  One or more fields in the input packet are invalid.
'Private Const INPUT_E_FRAME As Long = &H80400004 '  Packets in the frame are inconsistent. Either pointer ids are not unique or there is a discrepancy in timestamps, frame ids, pointer types or source devices.
'Private Const INPUT_E_HISTORY As Long = &H80400005 '  The history of frames is inconsistent. Pointer ids, types, source devices don't match, or frame ids are not unique, or timestamps are out of order.
'Private Const INPUT_E_DEVICE_INFO As Long = &H80400006 '  Failed to retrieve information about the input device.
'Private Const INPUT_E_TRANSFORM As Long = &H80400007 '  Coordinate system transformation failed to transform the data.
'Private Const INPUT_E_DEVICE_PROPERTY As Long = &H80400008 '  The property is not supported or not reported correctly by the input device.
'Private Const INET_E_INVALID_URL As Long = &H800C0002 '  The URL is invalid.
'Private Const INET_E_NO_SESSION As Long = &H800C0003 '  No Internet session has been established.
'Private Const INET_E_CANNOT_CONNECT As Long = &H800C0004 '  Unable to connect to the target server.
'Private Const INET_E_RESOURCE_NOT_FOUND As Long = &H800C0005 '  The system cannot locate the resource specified.
'Private Const INET_E_OBJECT_NOT_FOUND As Long = &H800C0006 '  The system cannot locate the object specified.
'Private Const INET_E_DATA_NOT_AVAILABLE As Long = &H800C0007 '  No data is available for the requested resource.
'Private Const INET_E_DOWNLOAD_FAILURE As Long = &H800C0008 '  The download of the specified resource has failed.
'Private Const INET_E_AUTHENTICATION_REQUIRED As Long = &H800C0009 '  Authentication is required to access this resource.
'Private Const INET_E_NO_VALID_MEDIA As Long = &H800C000A '  The server could not recognize the provided mime type.
'Private Const INET_E_CONNECTION_TIMEOUT As Long = &H800C000B '  The operation was timed out.
'Private Const INET_E_INVALID_REQUEST As Long = &H800C000C '  The server did not understand the request, or the request was invalid.
'Private Const INET_E_UNKNOWN_PROTOCOL As Long = &H800C000D '  The specified protocol is unknown.
'Private Const INET_E_SECURITY_PROBLEM As Long = &H800C000E '  A security problem occurred.
'Private Const INET_E_CANNOT_LOAD_DATA As Long = &H800C000F '  The system could not load the persisted data.
'Private Const INET_E_CANNOT_INSTANTIATE_OBJECT As Long = &H800C0010 '  Unable to instantiate the object.
'Private Const INET_E_INVALID_CERTIFICATE As Long = &H800C0019 '  Security certificate required to access this resource is invalid.
'Private Const INET_E_REDIRECT_FAILED As Long = &H800C0014 '  A redirection problem occurred.
'Private Const INET_E_REDIRECT_TO_DIR As Long = &H800C0015 '  The requested resource is a directory, not a file.
'Private Const ERROR_DBG_CREATE_PROCESS_FAILURE_LOCKDOWN As Long = &H80B00001 '  Could not create new process from ARM architecture device.
'Private Const ERROR_DBG_ATTACH_PROCESS_FAILURE_LOCKDOWN As Long = &H80B00002 '  Could not attach to the application process from ARM architecture device.
'Private Const ERROR_DBG_CONNECT_SERVER_FAILURE_LOCKDOWN As Long = &H80B00003 '  Could not connect to dbgsrv server from ARM architecture device.
'Private Const ERROR_DBG_START_SERVER_FAILURE_LOCKDOWN As Long = &H80B00004 '  Could not start dbgsrv server from ARM architecture device.
'Private Const ERROR_IO_PREEMPTED As Long = &H89010001 '  The operation was preempted by a higher priority operation. It must be resumed later.
'Private Const JSCRIPT_E_CANTEXECUTE As Long = &H89020001 '  Function could not execute because it was deleted or garbage collected.
'Private Const WEP_E_NOT_PROVISIONED_ON_ALL_VOLUMES As Long = &H88010001 '  One or more fixed volumes are not provisioned with the 3rd party encryption providers to support device encryption. Enable encryption with the 3rd party provider to comply with policy.
'Private Const WEP_E_FIXED_DATA_NOT_SUPPORTED As Long = &H88010002 '  This computer is not fully encrypted. There are fixed volumes present which are not supported for encryption.
'Private Const WEP_E_HARDWARE_NOT_COMPLIANT As Long = &H88010003 '  This computer does not meet the hardware requirements to support device encryption with the installed 3rd party provider.
'Private Const WEP_E_LOCK_NOT_CONFIGURED As Long = &H88010004 '  This computer cannot support device encryption because the requisites for the device lock feature are not configured.
'Private Const WEP_E_PROTECTION_SUSPENDED As Long = &H88010005 '  Protection is enabled on this volume but is not in the active state.
'Private Const WEP_E_NO_LICENSE As Long = &H88010006 '  The 3rd party provider has been installed, but cannot activate encryption beacuse a license has not been activated.
'Private Const WEP_E_OS_NOT_PROTECTED As Long = &H88010007 '  The operating system drive is not protected by 3rd party drive encryption.
'Private Const WEP_E_UNEXPECTED_FAIL As Long = &H88010008 '  Unexpected failure was encountered while calling into the 3rd Party drive encryption plugin.
'Private Const WEP_E_BUFFER_TOO_LARGE As Long = &H88010009 '  The input buffer size for the lockout metadata used by the 3rd party drive encryption is too large.
'Private Const ERROR_SVHDX_ERROR_STORED As Long = &HC05C0000 '  The proper error code with sense data was stored on server side.
'Private Const ERROR_SVHDX_ERROR_NOT_AVAILABLE As Long = &HC05CFF00 '  The requested error data is not available on the server.
'Private Const ERROR_SVHDX_UNIT_ATTENTION_AVAILABLE As Long = &HC05CFF01 '  Unit Attention data is available for the initiator to query.
'Private Const ERROR_SVHDX_UNIT_ATTENTION_CAPACITY_DATA_CHANGED As Long = &HC05CFF02 '  The data capacity of the device has changed, resulting in a Unit Attention condition.
'Private Const ERROR_SVHDX_UNIT_ATTENTION_RESERVATIONS_PREEMPTED As Long = &HC05CFF03 '  A previous operation resulted in this initiator's reservations being preempted, resulting in a Unit Attention condition.
'Private Const ERROR_SVHDX_UNIT_ATTENTION_RESERVATIONS_RELEASED As Long = &HC05CFF04 '  A previous operation resulted in this initiator's reservations being released, resulting in a Unit Attention condition.
'Private Const ERROR_SVHDX_UNIT_ATTENTION_REGISTRATIONS_PREEMPTED As Long = &HC05CFF05 '  A previous operation resulted in this initiator's registrations being preempted, resulting in a Unit Attention condition.
'Private Const ERROR_SVHDX_UNIT_ATTENTION_OPERATING_DEFINITION_CHANGED As Long = &HC05CFF06 '  The data storage format of the device has changed, resulting in a Unit Attention condition.
'Private Const ERROR_SVHDX_RESERVATION_CONFLICT As Long = &HC05CFF07 '  The current initiator is not allowed to perform the SCSI command because of a reservation conflict.
'Private Const ERROR_SVHDX_WRONG_FILE_TYPE As Long = &HC05CFF08 '  Multiple virtual machines sharing a virtual hard disk is supported only on Fixed or Dynamic VHDX format virtual hard disks.
'Private Const ERROR_SVHDX_VERSION_MISMATCH As Long = &HC05CFF09 '  The server version does not match the requested version.
'Private Const ERROR_VHD_SHARED As Long = &HC05CFF0A '  The requested operation cannot be performed on the virtual disk as it is currently used in shared mode.
'Private Const WININET_E_OUT_OF_HANDLES As Long = &H80072EE1 '  No more Internet handles can be allocated
'Private Const WININET_E_TIMEOUT As Long = &H80072EE2 '  The operation timed out
'Private Const WININET_E_EXTENDED_ERROR As Long = &H80072EE3 '  The server returned extended information
'Private Const WININET_E_INTERNAL_ERROR As Long = &H80072EE4 '  An internal error occurred in the Microsoft Internet extensions
'Private Const WININET_E_INVALID_URL As Long = &H80072EE5 '  The URL is invalid
'Private Const WININET_E_UNRECOGNIZED_SCHEME As Long = &H80072EE6 '  The URL does not use a recognized protocol
'Private Const WININET_E_NAME_NOT_RESOLVED As Long = &H80072EE7 '  The server name or address could not be resolved
'Private Const WININET_E_PROTOCOL_NOT_FOUND As Long = &H80072EE8 '  A protocol with the required capabilities was not found
'Private Const WININET_E_INVALID_OPTION As Long = &H80072EE9 '  The option is invalid
'Private Const WININET_E_BAD_OPTION_LENGTH As Long = &H80072EEA '  The length is incorrect for the option type
'Private Const WININET_E_OPTION_NOT_SETTABLE As Long = &H80072EEB '  The option value cannot be set
'Private Const WININET_E_SHUTDOWN As Long = &H80072EEC '  Microsoft Internet Extension support has been shut down
'Private Const WININET_E_INCORRECT_USER_NAME As Long = &H80072EED '  The user name was not allowed
'Private Const WININET_E_INCORRECT_PASSWORD As Long = &H80072EEE '  The password was not allowed
'Private Const WININET_E_LOGIN_FAILURE As Long = &H80072EEF '  The login request was denied
'Private Const WININET_E_INVALID_OPERATION As Long = &H80072EF0 '  The requested operation is invalid
'Private Const WININET_E_OPERATION_CANCELLED As Long = &H80072EF1 '  The operation has been canceled
'Private Const WININET_E_INCORRECT_HANDLE_TYPE As Long = &H80072EF2 '  The supplied handle is the wrong type for the requested operation
'Private Const WININET_E_INCORRECT_HANDLE_STATE As Long = &H80072EF3 '  The handle is in the wrong state for the requested operation
'Private Const WININET_E_NOT_PROXY_REQUEST As Long = &H80072EF4 '  The request cannot be made on a Proxy session
'Private Const WININET_E_REGISTRY_VALUE_NOT_FOUND As Long = &H80072EF5 '  The registry value could not be found
'Private Const WININET_E_BAD_REGISTRY_PARAMETER As Long = &H80072EF6 '  The registry parameter is incorrect
'Private Const WININET_E_NO_DIRECT_ACCESS As Long = &H80072EF7 '  Direct Internet access is not available
'Private Const WININET_E_NO_CONTEXT As Long = &H80072EF8 '  No context value was supplied
'Private Const WININET_E_NO_CALLBACK As Long = &H80072EF9 '  No status callback was supplied
'Private Const WININET_E_REQUEST_PENDING As Long = &H80072EFA '  There are outstanding requests
'Private Const WININET_E_INCORRECT_FORMAT As Long = &H80072EFB '  The information format is incorrect
'Private Const WININET_E_ITEM_NOT_FOUND As Long = &H80072EFC '  The requested item could not be found
'Private Const WININET_E_CANNOT_CONNECT As Long = &H80072EFD '  A connection with the server could not be established
'Private Const WININET_E_CONNECTION_ABORTED As Long = &H80072EFE '  The connection with the server was terminated abnormally
'Private Const WININET_E_CONNECTION_RESET As Long = &H80072EFF '  The connection with the server was reset
'Private Const WININET_E_FORCE_RETRY As Long = &H80072F00 '  The action must be retried
'Private Const WININET_E_INVALID_PROXY_REQUEST As Long = &H80072F01 '  The proxy request is invalid
'Private Const WININET_E_NEED_UI As Long = &H80072F02 '  User interaction is required to complete the operation
'Private Const WININET_E_HANDLE_EXISTS As Long = &H80072F04 '  The handle already exists
'Private Const WININET_E_SEC_CERT_DATE_INVALID As Long = &H80072F05 '  The date in the certificate is invalid or has expired
'Private Const WININET_E_SEC_CERT_CN_INVALID As Long = &H80072F06 '  The host name in the certificate is invalid or does not match
'Private Const WININET_E_HTTP_TO_HTTPS_ON_REDIR As Long = &H80072F07 '  A redirect request will change a non-secure to a secure connection
'Private Const WININET_E_HTTPS_TO_HTTP_ON_REDIR As Long = &H80072F08 '  A redirect request will change a secure to a non-secure connection
'Private Const WININET_E_MIXED_SECURITY As Long = &H80072F09 '  Mixed secure and non-secure connections
'Private Const WININET_E_CHG_POST_IS_NON_SECURE As Long = &H80072F0A '  Changing to non-secure post
'Private Const WININET_E_POST_IS_NON_SECURE As Long = &H80072F0B '  Data is being posted on a non-secure connection
'Private Const WININET_E_CLIENT_AUTH_CERT_NEEDED As Long = &H80072F0C '  A certificate is required to complete client authentication
'Private Const WININET_E_INVALID_CA As Long = &H80072F0D '  The certificate authority is invalid or incorrect
'Private Const WININET_E_CLIENT_AUTH_NOT_SETUP As Long = &H80072F0E '  Client authentication has not been correctly installed
'Private Const WININET_E_ASYNC_THREAD_FAILED As Long = &H80072F0F '  An error has occurred in a Wininet asynchronous thread. You may need to restart
'Private Const WININET_E_REDIRECT_SCHEME_CHANGE As Long = &H80072F10 '  The protocol scheme has changed during a redirect operaiton
'Private Const WININET_E_DIALOG_PENDING As Long = &H80072F11 '  There are operations awaiting retry
'Private Const WININET_E_RETRY_DIALOG As Long = &H80072F12 '  The operation must be retried
'Private Const WININET_E_NO_NEW_CONTAINERS As Long = &H80072F13 '  There are no new cache containers
'Private Const WININET_E_HTTPS_HTTP_SUBMIT_REDIR As Long = &H80072F14 '  A security zone check indicates the operation must be retried
'Private Const WININET_E_SEC_CERT_ERRORS As Long = &H80072F17 '  The SSL certificate contains errors.
'Private Const WININET_E_SEC_CERT_REV_FAILED As Long = &H80072F19 '  It was not possible to connect to the revocation server or a definitive response could not be obtained.
'Private Const WININET_E_HEADER_NOT_FOUND As Long = &H80072F76 '  The requested header was not found
'Private Const WININET_E_DOWNLEVEL_SERVER As Long = &H80072F77 '  The server does not support the requested protocol level
'Private Const WININET_E_INVALID_SERVER_RESPONSE As Long = &H80072F78 '  The server returned an invalid or unrecognized response
'Private Const WININET_E_INVALID_HEADER As Long = &H80072F79 '  The supplied HTTP header is invalid
'Private Const WININET_E_INVALID_QUERY_REQUEST As Long = &H80072F7A '  The request for a HTTP header is invalid
'Private Const WININET_E_HEADER_ALREADY_EXISTS As Long = &H80072F7B '  The HTTP header already exists
'Private Const WININET_E_REDIRECT_FAILED As Long = &H80072F7C '  The HTTP redirect request failed
'Private Const WININET_E_SECURITY_CHANNEL_ERROR As Long = &H80072F7D '  An error occurred in the secure channel support
'Private Const WININET_E_UNABLE_TO_CACHE_FILE As Long = &H80072F7E '  The file could not be written to the cache
'Private Const WININET_E_TCPIP_NOT_INSTALLED As Long = &H80072F7F '  The TCP/IP protocol is not installed properly
'Private Const WININET_E_DISCONNECTED As Long = &H80072F83 '  The computer is disconnected from the network
'Private Const WININET_E_SERVER_UNREACHABLE As Long = &H80072F84 '  The server is unreachable
'Private Const WININET_E_PROXY_SERVER_UNREACHABLE As Long = &H80072F85 '  The proxy server is unreachable
'Private Const WININET_E_BAD_AUTO_PROXY_SCRIPT As Long = &H80072F86 '  The proxy auto-configuration script is in error
'Private Const WININET_E_UNABLE_TO_DOWNLOAD_SCRIPT As Long = &H80072F87 '  Could not download the proxy auto-configuration script file
'Private Const WININET_E_SEC_INVALID_CERT As Long = &H80072F89 '  The supplied certificate is invalid
'Private Const WININET_E_SEC_CERT_REVOKED As Long = &H80072F8A '  The supplied certificate has been revoked
'Private Const WININET_E_FAILED_DUETOSECURITYCHECK As Long = &H80072F8B '  The Dialup failed because file sharing was turned on and a failure was requested if security check was needed
'Private Const WININET_E_NOT_INITIALIZED As Long = &H80072F8C '  Initialization of the WinINet API has not occurred
'Private Const WININET_E_LOGIN_FAILURE_DISPLAY_ENTITY_BODY As Long = &H80072F8E '  Login failed and the client should display the entity body to the user
'Private Const WININET_E_DECODING_FAILED As Long = &H80072F8F '  Content decoding has failed
'Private Const WININET_E_NOT_REDIRECTED As Long = &H80072F80 '  The HTTP request was not redirected
'Private Const WININET_E_COOKIE_NEEDS_CONFIRMATION As Long = &H80072F81 '  A cookie from the server must be confirmed by the user
'Private Const WININET_E_COOKIE_DECLINED As Long = &H80072F82 '  A cookie from the server has been declined acceptance
'Private Const WININET_E_REDIRECT_NEEDS_CONFIRMATION As Long = &H80072F88 '  The HTTP redirect request must be confirmed by the user
'




Option Explicit


Sub Main()

    Dim dic As Scripting.Dictionary
    Set dic = New Scripting.Dictionary
    dic.Add 0, "Option Explicit"
    dic.Add 1, vbNullString

    Dim lLineNumber As Long
    lLineNumber = 0

    Const sPath As String = "C:\Program Files (x86)\Windows Kits\8.1\Include\shared\winerror.h"
    Dim txtIn As Scripting.TextStream
    With New Scripting.FileSystemObject
        Debug.Assert .FileExists(sPath)
        Set txtIn = .OpenTextFile(sPath, ForReading)
    End With



    While Not txtIn.AtEndOfStream
        DoEvents
        lLineNumber = lLineNumber + 1
        Dim sLine As String
        sLine = txtIn.ReadLine
    
        Dim sSymbolicName As String: sSymbolicName = vbNullString
        Dim sMessageId As String: sMessageId = vbNullString
        Dim sErrorNumber As String: sErrorNumber = vbNullString
        Dim sMessageText As String: sMessageText = vbNullString
        
        sSymbolicName = RegExpSubGroup0("\/\/ SymbolicName=(.*)", sLine)  '// SymbolicName=
    
        If LenB(sSymbolicName) > 0 Then
        
            sLine = txtIn.ReadLine
            While (Trim(sLine) = "//")
                sLine = txtIn.ReadLine
            Wend
        
            sMessageId = "&h" & RegExpSubGroup0("\/\/ MessageId: 0x([0-9|A-F]{8})L\s* \(No symbolic name defined\)", sLine)
        Else
            sMessageId = RegExpSubGroup0("\/\/ MessageId: (.*)", sLine)
        End If
        

        
        If VBA.LenB(sMessageId) > 0 Then
            'sCurrentMessageId = sMessageId
        
            sLine = txtIn.ReadLine
            Debug.Assert Trim(sLine) = "//"
            sLine = txtIn.ReadLine
            Debug.Assert Trim(sLine) = "// MessageText:"
            
            sLine = txtIn.ReadLine
            While (Trim(sLine) = "//")
                sLine = txtIn.ReadLine
            Wend
            
            
            If LenB(sSymbolicName) > 0 Then
                While (Len(Trim(sLine)) > 0)
                    If (Trim(sLine) <> "//") Then
                        sMessageText = sMessageText & Mid$(sLine, 4)
                    End If
                    sLine = txtIn.ReadLine
                Wend
            
            
            Else
            
                While (Left$(sLine, Len("#define")) <> "#define")
                    If (Trim(sLine) <> "//") Then
                        sMessageText = sMessageText & Mid$(sLine, 4)
                    End If
                    sLine = txtIn.ReadLine
                Wend
                
                
                'While (Trim(sLine) = "//")
                '    sLine = txtIn.ReadLine
                'Wend
            End If
            
            If LenB(sSymbolicName) > 0 Then
                sErrorNumber = sMessageId
                sMessageId = sSymbolicName
            Else
                
                Debug.Assert Left(sLine, Len("#define " & sMessageId)) = "#define " & sMessageId
                sErrorNumber = ExtractErrorNumber(sMessageId, sLine)
            End If
            
            'Debug.Print sMessageId
            'Debug.Print sMessageText
            'Debug.Print sErrorNumber
            Debug.Assert Len(sErrorNumber) > 0
            
            Dim sConstLine1 As String
            sConstLine1 = "Private Const " & UCase$(sMessageId) & " As Long = " & sErrorNumber & "'  " & sMessageText
            
            'Dim sConstLine2 As String
            'sConstLine2 = "Private Const s" & UCase$(sMessageId) & " As String = """ & sMessageText & """"
            
            'Debug.Print sConstLine1
            'Debug.Print sConstLine2
            'Debug.Print ""
            dic.Add dic.Count, "''" & sConstLine1
            'dic.Add dic.Count, "''" & sConstLine2
            'dic.Add dic.Count, "''"
            sLine = vbNullString
        End If
    
    Wend

    txtIn.Close
    Set txtIn = Nothing
    
    
    ReDim vSplat(1 To dic.Count, 1 To 1) As Variant
    Dim vLoop As Variant, lLoop As Long
    Dim vItems As Variant
    vItems = dic.Items
    
    For Each vLoop In vItems
        lLoop = lLoop + 1
        vSplat(lLoop, 1) = vItems(lLoop - 1)
    
    Next
    
    Dim ws As Excel.Worksheet
    Set ws = MySheet
    ws.Range(ws.Cells(1, 1), ws.Cells(dic.Count, 1)) = vSplat
    

End Sub


Function MySheet() As Excel.Worksheet
    On Error Resume Next
    Set MySheet = ThisWorkbook.Worksheets.Item("WinError_h")
    Debug.Assert Not MySheet Is Nothing
End Function


Function RegExpSubGroup0(ByVal sPattern As String, ByVal sText As String) As String

    Static oRegEx As VBScript_RegExp_55.RegExp
    If oRegEx Is Nothing Then Set oRegEx = New VBScript_RegExp_55.RegExp

    oRegEx.Pattern = sPattern

    Dim oMatches As VBScript_RegExp_55.MatchCollection
    Dim oMatch As VBScript_RegExp_55.Match

    If oRegEx.Test(sText) Then
        Set oMatches = oRegEx.Execute(sText)
        Debug.Assert oMatches.Count = 1
    
        Set oMatch = oMatches.Item(0)
        If oMatch.SubMatches.Count = 1 Then
            RegExpSubGroup0 = Trim(oMatch.SubMatches.Item(0))
        End If
    End If


End Function

Function ExtractErrorNumber(ByRef sMessageId As String, ByRef sLine As String) As String

    Dim vArray As Variant
    vArray = VBA.Array("#define $MessageId$\s*(\d*)L\s*\/\/ dderror", _
                        "#define $MessageId$\s*(\d*)L", _
                        "#define $MessageId$\s*_HRESULT_TYPEDEF_\(0x([0-9|A-F]{8})L\)", _
                        "#define $MessageId$\s*_NDIS_ERROR_TYPEDEF_\(0x([0-9|A-F]{8})L\)")

    Dim sPattern As String
    Dim lLoop As Long
    
    For lLoop = 0 To 3
        sPattern = VBA.Replace(vArray(lLoop), "$MessageId$", sMessageId)
        Dim sExtract As String
        sExtract = RegExpSubGroup0(sPattern, sLine)
        
        If VBA.LenB(sExtract) > 0 Then
            If lLoop >= 2 Then
                ExtractErrorNumber = "&h" & sExtract
            Else
                ExtractErrorNumber = sExtract
            End If
            GoTo SingleExit
        End If
    Next lLoop
    
SingleExit:

End Function


Sub TestExtractErrorNumber()
    'https://regex101.com/
    Debug.Assert ExtractErrorNumber("ERROR_INVALID_FUNCTION", _
                    "#define ERROR_INVALID_FUNCTION           1L    // dderror") = "1"


    Debug.Assert ExtractErrorNumber("ERROR_ARENA_TRASHED", _
                    "#define ERROR_ARENA_TRASHED           7L") = "7"


    Debug.Assert ExtractErrorNumber("E_UNEXPECTED", _
        "#define E_UNEXPECTED                     _HRESULT_TYPEDEF_(0x8000FFFFL)") = "&h8000FFFF"

    Debug.Assert ExtractErrorNumber("ERROR_NDIS_INTERFACE_CLOSING", _
        "#define ERROR_NDIS_INTERFACE_CLOSING     _NDIS_ERROR_TYPEDEF_(0x80340002L)") = "&h80340002"


End Sub


Sub TestRegExpSubGroup0()
    Debug.Assert RegExpSubGroup0("#define ERROR_INVALID_FUNCTION\s*(\d*)L    \/\/ dderror", _
                    "#define ERROR_INVALID_FUNCTION           1L    // dderror") = "1"

    Debug.Assert RegExpSubGroup0("#define ERROR_INVALID_FUNCTION           (\d*)L", _
                    "#define ERROR_INVALID_FUNCTION           1L  ") = "1"


    'Debug.Assert RegExpSubGroup0("#define E_UNEXPECTED           _HRESULT_TYPEDEF_(0x8000FFFFL)", _
                    "#define E_UNEXPECTED         _HRESULT_TYPEDEF_(0x8000FFFFL) ") = "1"
    '"E_UNEXPECTED", "#define E_UNEXPECTED                     _HRESULT_TYPEDEF_(0x8000FFFFL)") = ""

    Debug.Assert RegExpSubGroup0("([0-9|A-F])", _
                    "8") = "8"

    Debug.Assert RegExpSubGroup0("([0-9|A-F]{8})", _
                    "8000FFFF") = "8000FFFF"

    Debug.Assert RegExpSubGroup0("([0-9|A-F]{8})L", _
                    "8000FFFFL") = "8000FFFF"

    Debug.Assert RegExpSubGroup0("0x([0-9|A-F]{8})L", _
                    "0x8000FFFFL") = "8000FFFF"

    Debug.Assert RegExpSubGroup0("\(0x([0-9|A-F]{8})L\)", _
                    "(0x8000FFFFL)") = "8000FFFF"

    Debug.Assert RegExpSubGroup0("_\(0x([0-9|A-F]{8})L\)", _
                    "_(0x8000FFFFL)") = "8000FFFF"

    Debug.Assert RegExpSubGroup0("_HRESULT_TYPEDEF_\(0x([0-9|A-F]{8})L\)", _
                    "_HRESULT_TYPEDEF_(0x8000FFFFL)") = "8000FFFF"

    Debug.Assert RegExpSubGroup0("\s*_HRESULT_TYPEDEF_\(0x([0-9|A-F]{8})L\)", _
                    "  _HRESULT_TYPEDEF_(0x8000FFFFL)") = "8000FFFF"

    Debug.Assert RegExpSubGroup0("E_UNEXPECTED\s*_HRESULT_TYPEDEF_\(0x([0-9|A-F]{8})L\)", _
                    "E_UNEXPECTED  _HRESULT_TYPEDEF_(0x8000FFFFL)") = "8000FFFF"

    Debug.Assert RegExpSubGroup0("define E_UNEXPECTED\s*_HRESULT_TYPEDEF_\(0x([0-9|A-F]{8})L\)", _
                    "define E_UNEXPECTED  _HRESULT_TYPEDEF_(0x8000FFFFL)") = "8000FFFF"

    Debug.Assert RegExpSubGroup0("#define E_UNEXPECTED\s*_HRESULT_TYPEDEF_\(0x([0-9|A-F]{8})L\)", _
                    "#define E_UNEXPECTED  _HRESULT_TYPEDEF_(0x8000FFFFL)") = "8000FFFF"


End Sub


'Sub Test()
'    Dim dic As Scripting.Dictionary
'    Set dic = New Scripting.Dictionary
'
'    dic.Add "Red", 0
'    dic.Add "Green", 0
'    dic.Add "Blue", 0
'
'    Dim ws As Excel.Worksheet
'    Set ws = MySheet
'    ws.Range(ws.Cells(1, 1), ws.Cells(dic.Count, 1)) = Application.Transpose(dic.Keys)
'End Sub