MTSAdmin, COM interface constants for VB.Net / VBScript

MTSAdmin - interface constants

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

library parameters

File NameWINDOWS\system32\dllcache\mtsadmin.tlb
Guid{6EB22880-8A19-11D0-81B6-00A0C9231C29}
Enums6

MTSPackageInstallOptions

alias, 1 members.
  'Package install options - these options can be or'ed together
Public Enum MTSPackageInstallOptions
  mtsInstallUsers = 1  '&H1
End Enum

__MIDL___MIDL_itf_mtxadmin_0107_0001

enum, 1 members.
  'Package install options - these options can be or'ed together
Public Enum MIDL___MIDL_itf_mtxadmin_0107_0001
  mtsInstallUsers = 1  '&H1
End Enum

MTSPackageExportOptions

alias, 1 members.
  'Package export options - these options can be or'ed together
Public Enum MTSPackageExportOptions
  mtsExportUsers = 1  '&H1
End Enum

__MIDL___MIDL_itf_mtxadmin_0107_0002

enum, 1 members.
  'Package export options - these options can be or'ed together
Public Enum MIDL___MIDL_itf_mtxadmin_0107_0002
  mtsExportUsers = 1  '&H1
End Enum

MTSAdminErrorCodes

alias, 45 members.
  'Error codes (HRESULTS)
Public Enum MTSAdminErrorCodes

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

  'One or more of the objects properties are missing or invalid
  mtsErrObjectInvalid = -2146368510  '&H80110402

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

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

  'Download of components files to client failed
  mtsErrDownloadFailed = -2146368507  '&H80110405

  'Error occured writing to the package file
  mtsErrPDFWriteFail = -2146368505  '&H80110407

  'Error occured reading the package file
  mtsErrPDFReadFail = -2146368504  '&H80110408

  'Invalid version number in PDF file
  mtsErrPDFVersion = -2146368503  '&H80110409

  'A component in the same DLL is already installed
  mtsErrCoReqCompInstalled = -2146368496  '&H80110410

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

  'The package is already installed
  mtsErrPackageExists = -2146368501  '&H8011040B

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

  'A error occured copying the file
  mtsErrCantCopyFile = -2146368499  '&H8011040D

  'The component does not have a typelib - it cannot be exported
  mtsErrNoTypeLib = -2146368498  '&H8011040E

  'A userid in role is invalid
  mtsErrNoUser = -2146368497  '&H8011040F

  'One or more users in the package file are not valid on this computer
  mtsErrInvalidUserids = -2146368496  '&H80110410

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

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

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

  'The user/password set for package identity are not valid
  mtsErrUserPasswdNotValid = -2146368492  '&H80110414

  'No permission to read the registry
  mtsErrNoRegistryRead = -2146368491  '&H80110415

  'No permission to write to the registry
  mtsErrNoRegistryWrite = -2146368490  '&H80110416

  'No permission to repair the registry
  mtsErrNoRegistryRepair = -2146368489  '&H80110417

  'Package file CLSIDs/IIDs do not match corresponding DLLs
  mtsErrCLSIDOrIIDMismatch = -2146368488  '&H80110418

  'Remote interface
  mtsErrRemoteInterface = -2146368487  '&H80110419

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

  'No server file share available to full component files to client
  mtsErrNoServerShare = -2146368485  '&H8011041B

  'Cannot access component files on network share
  mtsErrNoAccessToUNC = -2146368484  '&H8011041C

  'Dll could not be loaded
  mtsErrDllLoadFailed = -2146368483  '&H8011041D

  'Registered Typelib ID is not valid
  mtsErrBadRegistryLibID = -2146368482  '&H8011041E

  'Package install directory not found
  mtsErrPackDirNotFound = -2146368481  '&H8011041F

  'Component TreatAs key found - not supported
  mtsErrTreatAs = -2146368480  '&H80110420

  'Interface forward chain is invalid
  mtsErrBadForward = -2146368479  '&H80110421

  'Invalid IID
  mtsErrBadIID = -2146368478  '&H80110422

  'Errors occured while in the component registrar
  mtsErrRegistrarFailed = -2146368477  '&H80110423

  'The component file does not exist
  mtsErrCompFileDoesNotExist = -2146368476  '&H80110424

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

  'GetClassObject failed in the component DLL
  mtsErrCompFileGetClassObj = -2146368474  '&H80110426

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

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

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

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

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

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

  'The registrar referenced in this file is not available
  mtsErrCompFileNoRegistrar = -2146368460  '&H80110434
End Enum

__MIDL___MIDL_itf_mtxadmin_0107_0003

enum, 45 members.
  'Error codes (HRESULTS)
Public Enum MIDL___MIDL_itf_mtxadmin_0107_0003

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

  'One or more of the objects properties are missing or invalid
  mtsErrObjectInvalid = -2146368510  '&H80110402

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

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

  'Download of components files to client failed
  mtsErrDownloadFailed = -2146368507  '&H80110405

  'Error occured writing to the package file
  mtsErrPDFWriteFail = -2146368505  '&H80110407

  'Error occured reading the package file
  mtsErrPDFReadFail = -2146368504  '&H80110408

  'Invalid version number in PDF file
  mtsErrPDFVersion = -2146368503  '&H80110409

  'A component in the same DLL is already installed
  mtsErrCoReqCompInstalled = -2146368496  '&H80110410

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

  'The package is already installed
  mtsErrPackageExists = -2146368501  '&H8011040B

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

  'A error occured copying the file
  mtsErrCantCopyFile = -2146368499  '&H8011040D

  'The component does not have a typelib - it cannot be exported
  mtsErrNoTypeLib = -2146368498  '&H8011040E

  'A userid in role is invalid
  mtsErrNoUser = -2146368497  '&H8011040F

  'One or more users in the package file are not valid on this computer
  mtsErrInvalidUserids = -2146368496  '&H80110410

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

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

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

  'The user/password set for package identity are not valid
  mtsErrUserPasswdNotValid = -2146368492  '&H80110414

  'No permission to read the registry
  mtsErrNoRegistryRead = -2146368491  '&H80110415

  'No permission to write to the registry
  mtsErrNoRegistryWrite = -2146368490  '&H80110416

  'No permission to repair the registry
  mtsErrNoRegistryRepair = -2146368489  '&H80110417

  'Package file CLSIDs/IIDs do not match corresponding DLLs
  mtsErrCLSIDOrIIDMismatch = -2146368488  '&H80110418

  'Remote interface
  mtsErrRemoteInterface = -2146368487  '&H80110419

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

  'No server file share available to full component files to client
  mtsErrNoServerShare = -2146368485  '&H8011041B

  'Cannot access component files on network share
  mtsErrNoAccessToUNC = -2146368484  '&H8011041C

  'Dll could not be loaded
  mtsErrDllLoadFailed = -2146368483  '&H8011041D

  'Registered Typelib ID is not valid
  mtsErrBadRegistryLibID = -2146368482  '&H8011041E

  'Package install directory not found
  mtsErrPackDirNotFound = -2146368481  '&H8011041F

  'Component TreatAs key found - not supported
  mtsErrTreatAs = -2146368480  '&H80110420

  'Interface forward chain is invalid
  mtsErrBadForward = -2146368479  '&H80110421

  'Invalid IID
  mtsErrBadIID = -2146368478  '&H80110422

  'Errors occured while in the component registrar
  mtsErrRegistrarFailed = -2146368477  '&H80110423

  'The component file does not exist
  mtsErrCompFileDoesNotExist = -2146368476  '&H80110424

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

  'GetClassObject failed in the component DLL
  mtsErrCompFileGetClassObj = -2146368474  '&H80110426

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

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

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

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

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

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

  'The registrar referenced in this file is not available
  mtsErrCompFileNoRegistrar = -2146368460  '&H80110434
End Enum
WUtils.com