COMAdmin, COM interface constants for VB.Net / VBScript

COMAdmin - interface constants

     This page contains simple VBA include for the COMAdmin COM library.

library parameters

File NameWINDOWS\system32\Com\comadmin.dll
Guid{F618C513-DFB8-11D1-A2CF-00805FC79235}
Enums20

COMAdminInUse

enum, 6 members.
  'InUse values for IsSafeToDelete
Public Enum COMAdminInUse
  COMAdminNotInUse = 0  '&H0
  COMAdminInUseByCatalog = 1  '&H1
  COMAdminInUseByRegistryUnknown = 2  '&H2
  COMAdminInUseByRegistryProxyStub = 3  '&H3
  COMAdminInUseByRegistryTypeLib = 4  '&H4
  COMAdminInUseByRegistryClsid = 5  '&H5
End Enum

COMAdminComponentType

enum, 2 members.
  'ComponentType values for ImportComponentAsLegacy
Public Enum COMAdminComponentType
  COMAdmin32BitComponent = 1  '&H1
  COMAdmin64BitComponent = 2  '&H2
End Enum

COMAdminApplicationInstallOptions

enum, 3 members.
  'Application install options - these options can be or'ed together
Public Enum COMAdminApplicationInstallOptions
  COMAdminInstallNoUsers = 0  '&H0
  COMAdminInstallUsers = 1  '&H1
  COMAdminInstallForceOverwriteOfFiles = 2  '&H2
End Enum

COMAdminApplicationExportOptions

enum, 5 members.
  'Application export options - these options can be or'ed together
Public Enum COMAdminApplicationExportOptions
  COMAdminExportNoUsers = 0  '&H0
  COMAdminExportUsers = 1  '&H1
  COMAdminExportApplicationProxy = 2  '&H2
  COMAdminExportForceOverwriteOfFiles = 4  '&H4
  COMAdminExportIn10Format = 16  '&H10
End Enum

COMAdminThreadingModels

enum, 6 members.
  'Threading Model Enumerations
Public Enum COMAdminThreadingModels
  COMAdminThreadingModelApartment = 0  '&H0
  COMAdminThreadingModelFree = 1  '&H1
  COMAdminThreadingModelMain = 2  '&H2
  COMAdminThreadingModelBoth = 3  '&H3
  COMAdminThreadingModelNeutral = 4  '&H4
  COMAdminThreadingModelNotSpecified = 5  '&H5
End Enum

COMAdminTransactionOptions

enum, 5 members.
  'Transaction Settings Enumerations
Public Enum COMAdminTransactionOptions
  COMAdminTransactionIgnored = 0  '&H0
  COMAdminTransactionNone = 1  '&H1
  COMAdminTransactionSupported = 2  '&H2
  COMAdminTransactionRequired = 3  '&H3
  COMAdminTransactionRequiresNew = 4  '&H4
End Enum

COMAdminTxIsolationLevelOptions

enum, 5 members.
  'Transaction Isolation Level Enumerations
Public Enum COMAdminTxIsolationLevelOptions
  COMAdminTxIsolationLevelAny = 0  '&H0
  COMAdminTxIsolationLevelReadUnCommitted = 1  '&H1
  COMAdminTxIsolationLevelReadCommitted = 2  '&H2
  COMAdminTxIsolationLevelRepeatableRead = 3  '&H3
  COMAdminTxIsolationLevelSerializable = 4  '&H4
End Enum

COMAdminSynchronizationOptions

enum, 5 members.
  'Synchronization Settings Enumerations
Public Enum COMAdminSynchronizationOptions
  COMAdminSynchronizationIgnored = 0  '&H0
  COMAdminSynchronizationNone = 1  '&H1
  COMAdminSynchronizationSupported = 2  '&H2
  COMAdminSynchronizationRequired = 3  '&H3
  COMAdminSynchronizationRequiresNew = 4  '&H4
End Enum

COMAdminActivationOptions

enum, 2 members.
  'Activation Settings Enumerations
Public Enum COMAdminActivationOptions
  COMAdminActivationInproc = 0  '&H0
  COMAdminActivationLocal = 1  '&H1
End Enum

COMAdminAccessChecksLevelOptions

enum, 2 members.
  'Access Level Settings Enumerations
Public Enum COMAdminAccessChecksLevelOptions
  COMAdminAccessChecksApplicationLevel = 0  '&H0
  COMAdminAccessChecksApplicationComponentLevel = 1  '&H1
End Enum

COMAdminAuthenticationLevelOptions

enum, 7 members.
  'Authentication Level Settings Enumerations
Public Enum COMAdminAuthenticationLevelOptions
  COMAdminAuthenticationDefault = 0  '&H0
  COMAdminAuthenticationNone = 1  '&H1
  COMAdminAuthenticationConnect = 2  '&H2
  COMAdminAuthenticationCall = 3  '&H3
  COMAdminAuthenticationPacket = 4  '&H4
  COMAdminAuthenticationIntegrity = 5  '&H5
  COMAdminAuthenticationPrivacy = 6  '&H6
End Enum

COMAdminImpersonationLevelOptions

enum, 4 members.
  'Impersonation Level Settings Enumerations
Public Enum COMAdminImpersonationLevelOptions
  COMAdminImpersonationAnonymous = 1  '&H1
  COMAdminImpersonationIdentify = 2  '&H2
  COMAdminImpersonationImpersonate = 3  '&H3
  COMAdminImpersonationDelegate = 4  '&H4
End Enum

COMAdminAuthenticationCapabilitiesOptions

enum, 4 members.
  'Authentication Capabilities Settings Enumerations
Public Enum COMAdminAuthenticationCapabilitiesOptions
  COMAdminAuthenticationCapabilitiesNone = 0  '&H0
  COMAdminAuthenticationCapabilitiesSecureReference = 2  '&H2
  COMAdminAuthenticationCapabilitiesStaticCloaking = 32  '&H20
  COMAdminAuthenticationCapabilitiesDynamicCloaking = 64  '&H40
End Enum

COMAdminOS

enum, 19 members.
  'Operating System Enumerations
Public Enum COMAdminOS
  COMAdminOSNotInitialized = 0  '&H0
  COMAdminOSWindows3_1 = 1  '&H1
  COMAdminOSWindows9x = 2  '&H2
  COMAdminOSWindows2000 = 3  '&H3
  COMAdminOSWindows2000AdvancedServer = 4  '&H4
  COMAdminOSWindows2000Unknown = 5  '&H5
  COMAdminOSUnknown = 6  '&H6
  COMAdminOSWindowsXPPersonal = 11  '&HB
  COMAdminOSWindowsXPProfessional = 12  '&HC
  COMAdminOSWindowsNETStandardServer = 13  '&HD
  COMAdminOSWindowsNETEnterpriseServer = 14  '&HE
  COMAdminOSWindowsNETDatacenterServer = 15  '&HF
  COMAdminOSWindowsNETWebServer = 16  '&H10
  COMAdminOSWindowsLonghornPersonal = 17  '&H11
  COMAdminOSWindowsLonghornProfessional = 18  '&H12
  COMAdminOSWindowsLonghornStandardServer = 19  '&H13
  COMAdminOSWindowsLonghornEnterpriseServer = 20  '&H14
  COMAdminOSWindowsLonghornDatacenterServer = 21  '&H15
  COMAdminOSWindowsLonghornWebServer = 22  '&H16
End Enum

COMAdminServiceOptions

enum, 1 members.
  'Service Enumerations
Public Enum COMAdminServiceOptions
  COMAdminServiceLoadBalanceRouter = 1  '&H1
End Enum

COMAdminServiceStatusOptions

enum, 8 members.
  'Service Status Enumerations
Public Enum COMAdminServiceStatusOptions
  COMAdminServiceStopped = 0  '&H0
  COMAdminServiceStartPending = 1  '&H1
  COMAdminServiceStopPending = 2  '&H2
  COMAdminServiceRunning = 3  '&H3
  COMAdminServiceContinuePending = 4  '&H4
  COMAdminServicePausePending = 5  '&H5
  COMAdminServicePaused = 6  '&H6
  COMAdminServiceUnknownState = 7  '&H7
End Enum

COMAdminQCMessageAuthenticateOptions

enum, 3 members.
  'Queued Components Message Authenticate Enumeration
Public Enum COMAdminQCMessageAuthenticateOptions

  'Require authenticated messages if available from MSMQ and application Authentication Level For Calls is other than NONE
  COMAdminQCMessageAuthenticateSecureApps = 0  '&H0

  'Do not require MSMQ message authentication
  COMAdminQCMessageAuthenticateOff = 1  '&H1

  'Require authenticated messages
  COMAdminQCMessageAuthenticateOn = 2  '&H2
End Enum

COMAdminFileFlags

enum, 19 members.
  'File Flags
Public Enum COMAdminFileFlags

  'File is Loadable
  COMAdminFileFlagLoadable = 1  '&H1

  'File contains COM Objects
  COMAdminFileFlagCOM = 2  '&H2

  'File contains a proxy stub
  COMAdminFileFlagContainsPS = 4  '&H4

  'File contains a component
  COMAdminFileFlagContainsComp = 8  '&H8

  'File contains a typelibrary
  COMAdminFileFlagContainsTLB = 16  '&H10

  'File contains self registration code
  COMAdminFileFlagSelfReg = 32  '&H20

  'File contains self un-registration code
  COMAdminFileFlagSelfUnReg = 64  '&H40

  'File is unloadable
  COMAdminFileFlagUnloadableDLL = 128  '&H80

  'File does not exist
  COMAdminFileFlagDoesNotExist = 256  '&H100

  'File is already installed
  COMAdminFileFlagAlreadyInstalled = 512  '&H200

  'File contains a bad typelibrary
  COMAdminFileFlagBadTLB = 1024  '&H400

  'GetClassObj call failed on file
  COMAdminFileFlagGetClassObjFailed = 2048  '&H800

  'Class is not available
  COMAdminFileFlagClassNotAvailable = 4096  '&H1000

  'File uses a registrar to register
  COMAdminFileFlagRegistrar = 8192  '&H2000

  'File does not use a registrar to register
  COMAdminFileFlagNoRegistrar = 16384  '&H4000

  'Regsvr call on file failed
  COMAdminFileFlagDLLRegsvrFailed = 32768  '&H8000

  'Register typelibrary call on file failed
  COMAdminFileFlagRegTLBFailed = 65536  '&H10000

  'Registrar failed to register file
  COMAdminFileFlagRegistrarFailed = 131072  '&H20000

  'Generic file error ocurred
  COMAdminFileFlagError = 262144  '&H40000
End Enum

COMAdminComponentFlags

enum, 6 members.
  'Component Flags
Public Enum COMAdminComponentFlags

  'Component type information not found
  COMAdminCompFlagTypeInfoFound = 1  '&H1

  'COM Plus Properties Found
  COMAdminCompFlagCOMPlusPropertiesFound = 2  '&H2

  'Proxy Found
  COMAdminCompFlagProxyFound = 4  '&H4

  'Interfaces Found
  COMAdminCompFlagInterfacesFound = 8  '&H8

  'Component is already installed
  COMAdminCompFlagAlreadyInstalled = 16  '&H10

  'Component is not in application
  COMAdminCompFlagNotInApplication = 32  '&H20
End Enum

COMAdminErrorCodes

enum, 88 members.
  'Error codes (HRESULTS)
Public Enum COMAdminErrorCodes

  'Errors occurred accessing one or more objects - the ErrorInfo collection may have more detail
  COMAdminErrObjectErrors = -2146368511  '&H80110401

  'One or more of the object's properties are missing or invalid
  COMAdminErrObjectInvalid = -2146368510  '&H80110402

  'The object was not found in the catalog
  COMAdminErrKeyMissing = -2146368509  '&H80110403

  'The object is already registered
  COMAdminErrAlreadyInstalled = -2146368508  '&H80110404

  'Error occurred writing to the application file
  COMAdminErrAppFileWriteFail = -2146368505  '&H80110407

  'Error occurred reading the application file
  COMAdminErrAppFileReadFail = -2146368504  '&H80110408

  'Invalid version number in application file
  COMAdminErrAppFileVersion = -2146368503  '&H80110409

  'The file path is invalid
  COMAdminErrBadPath = -2146368502  '&H8011040A

  'The application is already installed
  COMAdminErrApplicationExists = -2146368501  '&H8011040B

  'The role already exists
  COMAdminErrRoleExists = -2146368500  '&H8011040C

  'An error occurred copying the file
  COMAdminErrCantCopyFile = -2146368499  '&H8011040D

  'One or more users are not valid
  COMAdminErrNoUser = -2146368497  '&H8011040F

  'One or more users in the application file are not valid
  COMAdminErrInvalidUserids = -2146368496  '&H80110410

  'The component's CLSID is missing or corrupt
  COMAdminErrNoRegistryCLSID = -2146368495  '&H80110411

  'The component's progID is missing or corrupt
  COMAdminErrBadRegistryProgID = -2146368494  '&H80110412

  'Unable to set required authentication level for update request
  COMAdminErrAuthenticationLevel = -2146368493  '&H80110413

  'The identity or password set on the application is not valid
  COMAdminErrUserPasswdNotValid = -2146368492  '&H80110414

  'Application file CLSIDs or IIDs do not match corresponding DLLs
  COMAdminErrCLSIDOrIIDMismatch = -2146368488  '&H80110418

  'Interface information is either missing or changed
  COMAdminErrRemoteInterface = -2146368487  '&H80110419

  'DllRegisterServer failed on component install
  COMAdminErrDllRegisterServer = -2146368486  '&H8011041A

  'No server file share available
  COMAdminErrNoServerShare = -2146368485  '&H8011041B

  'DLL could not be loaded
  COMAdminErrDllLoadFailed = -2146368483  '&H8011041D

  'The registered TypeLib ID is not valid
  COMAdminErrBadRegistryLibID = -2146368482  '&H8011041E

  'Application install directory not found
  COMAdminErrAppDirNotFound = -2146368481  '&H8011041F

  'Errors occurred while in the component registrar
  COMAdminErrRegistrarFailed = -2146368477  '&H80110423

  'The file does not exist
  COMAdminErrCompFileDoesNotExist = -2146368476  '&H80110424

  'The DLL could not be loaded
  COMAdminErrCompFileLoadDLLFail = -2146368475  '&H80110425

  'GetClassObject failed in the DLL
  COMAdminErrCompFileGetClassObj = -2146368474  '&H80110426

  'The DLL does not support the components listed in the TypeLib
  COMAdminErrCompFileClassNotAvail = -2146368473  '&H80110427

  'The TypeLib could not be loaded
  COMAdminErrCompFileBadTLB = -2146368472  '&H80110428

  'The file does not contain components or component information
  COMAdminErrCompFileNotInstallable = -2146368471  '&H80110429

  'Changes to this object and its sub-objects have been disabled
  COMAdminErrNotChangeable = -2146368470  '&H8011042A

  'The delete function has been disabled for this object
  COMAdminErrNotDeletable = -2146368469  '&H8011042B

  'The server catalog version is not supported
  COMAdminErrSession = -2146368468  '&H8011042C

  'The component move was disallowed, because the source or destination application is either a system application or currently locked against changes
  COMAdminErrCompMoveLocked = -2146368467  '&H8011042D

  'The component move failed because the destination package no longer exists
  COMAdminErrCompMoveBadDest = -2146368466  '&H8011042E

  'The system was unable to register the TypeLib
  COMAdminErrRegisterTLB = -2146368464  '&H80110430

  'This operation can not be performed on the system application
  COMAdminErrSystemApp = -2146368461  '&H80110433

  'The component registrar referenced in this file is not available
  COMAdminErrCompFileNoRegistrar = -2146368460  '&H80110434

  'A component in the same DLL is already installed
  COMAdminErrCoReqCompInstalled = -2146368459  '&H80110435

  'The service is not installed
  COMAdminErrServiceNotInstalled = -2146368458  '&H80110436

  'One or more property settings are either invalid or in conflict with each other
  COMAdminErrPropertySaveFailed = -2146368457  '&H80110437

  'The object you are attempting to add or rename already exists
  COMAdminErrObjectExists = -2146368456  '&H80110438

  'The component you are attempting to add or rename already exists
  COMAdminErrComponentExists = -2146368455  '&H80110439

  'The registration file is corrupt
  COMAdminErrRegFileCorrupt = -2146368453  '&H8011043B

  'The property value is too large
  COMAdminErrPropertyOverflow = -2146368452  '&H8011043C

  'Object was not found in registry
  COMAdminErrNotInRegistry = -2146368450  '&H8011043E

  'This object is not poolable
  COMAdminErrObjectNotPoolable = -2146368449  '&H8011043F

  'A CLSID with the same GUID as the new application ID is already installed on this machine
  COMAdminErrApplidMatchesClsid = -2146368442  '&H80110446

  'A role assigned to a component, interface, or method did not exist in the application
  COMAdminErrRoleDoesNotExist = -2146368441  '&H80110447

  'You must have components in an application in order to start the application.
  COMAdminErrStartAppNeedsComponents = -2146368440  '&H80110448

  'This operation is not enabled on this platform.
  COMAdminErrRequiresDifferentPlatform = -2146368439  '&H80110449

  'The queuing service is not installed
  COMAdminErrQueuingServiceNotAvailable = -2146367998  '&H80110602

  'One of the objects being inserted or updated does not belong to a valid parent collection
  COMAdminErrObjectParentMissing = -2146367480  '&H80110808

  'One of the objects being updated or worked on does not exist
  COMAdminErrObjectDoesNotExist = -2146367479  '&H80110809

  'Application Proxy is not exportable
  COMAdminErrCanNotExportAppProxy = -2146368438  '&H8011044A

  'Failed to start application because it is either a library application or an application proxy
  COMAdminErrCanNotStartApp = -2146368437  '&H8011044B

  'System application is not exportable
  COMAdminErrCanNotExportSystemApp = -2146368436  '&H8011044C

  'Can not subscribe to this component (the component may have been imported)
  COMAdminErrCanNotSubscribeToComponent = -2146368435  '&H8011044D

  'The specified application is not currently running
  COMAdminErrAppNotRunning = -2146367478  '&H8011080A

  'An event class cannot also be a subscriber component
  COMAdminErrEventClassCannotBeSubscriber = -2146368434  '&H8011044E

  'Library applications and application proxies are incompatible
  COMAdminErrLibAppProxyIncompatible = -2146368433  '&H8011044F

  'This function is valid for the base partition only
  COMAdminErrBasePartitionOnly = -2146368432  '&H80110450

  'The specified partition name is already in use on this computer
  COMAdminErrDuplicatePartitionName = -2146368425  '&H80110457

  'The partition cannot be deleted because it is the default partition for one or more users
  COMAdminErrPartitionInUse = -2146368423  '&H80110459

  'Applications that contain one or more imported components cannot be installed into a partition
  COMAdminErrImportedComponentsNotAllowed = -2146368421  '&H8011045B

  'The COM+ registry database has not been initialized
  COMAdminErrRegdbNotInitialized = -2146368398  '&H80110472

  'The COM+ registry database is not open
  COMAdminErrRegdbNotOpen = -2146368397  '&H80110473

  'The COM+ registry database detected a system error
  COMAdminErrRegdbSystemErr = -2146368396  '&H80110474

  'The COM+ registry database is already running
  COMAdminErrRegdbAlreadyRunning = -2146368395  '&H80110475

  'This version of the COM+ registry database cannot be migrated
  COMAdminErrMigVersionNotSupported = -2146368384  '&H80110480

  'The schema version to be migrated could not be found in the COM+ registry database
  COMAdminErrMigSchemaNotFound = -2146368383  '&H80110481

  'There was a type mismatch between binaries
  COMAdminErrCatBitnessMismatch = -2146368382  '&H80110482

  'A binary of unknown or invalid type was provided
  COMAdminErrCatUnacceptableBitness = -2146368381  '&H80110483

  'There was a type mismatch between a binary and an application
  COMAdminErrCatWrongAppBitnessBitness = -2146368380  '&H80110484

  'The application cannot be paused or resumed
  COMAdminErrCatPauseResumeNotSupported = -2146368379  '&H80110485

  'The COM+ Catalog Server threw an exception during execution
  COMAdminErrCatServerFault = -2146368378  '&H80110486

  'Library applications may not be recycled
  COMAdminErrCantRecycleLibraryApps = -2146367473  '&H8011080F

  'Applications running as NT services may not be recycled
  COMAdminErrCantRecycleServiceApps = -2146367471  '&H80110811

  'The process has already been recycled
  COMAdminErrProcessAlreadyRecycled = -2146367470  '&H80110812

  'A paused process may not be recycled
  COMAdminErrPausedProcessMayNotBeRecycled = -2146367469  '&H80110813

  'The specified partition does not exist or access to it is denied
  COMAdminErrInvalidPartition = -2146367477  '&H8011080B

  'Only Application Files (*.MSI files) can be installed into partitions
  COMAdminErrPartitionMsiOnly = -2146367463  '&H80110819

  'You cannot start an application that has been disabled
  COMAdminErrStartAppDisabled = -2146368431  '&H80110451

  'A component cannot be moved (or copied) from the System Application, an application proxy or a non-changeable application
  COMAdminErrCompMoveSource = -2146367460  '&H8011081C

  'A component cannot be moved (or copied) to the System Application, an application proxy or a non-changeable application
  COMAdminErrCompMoveDest = -2146367459  '&H8011081D

  'A private component cannot be moved (or copied) to a library application or to the base partition
  COMAdminErrCompMovePrivate = -2146367458  '&H8011081E

  'Event Class components cannot be aliased.
  COMAdminErrCannotCopyEventClass = -2146367456  '&H80110820
End Enum
WUtils.com