Partilhar via


STARTUP_FLAGS Enumeration

Contains values that indicate the startup behavior of the common language runtime (CLR). By default, garbage collection is non-concurrent, and only the base class library is loaded into the domain-neutral area.

typedef enum {
    STARTUP_CONCURRENT_GC                         = 0x1,
    STARTUP_LOADER_OPTIMIZATION_MASK              = 0x3<<1,
    STARTUP_LOADER_OPTIMIZATION_SINGLE_DOMAIN     = 0x1<<1,
    STARTUP_LOADER_OPTIMIZATION_MULTI_DOMAIN      = 0x2<<1,
    STARTUP_LOADER_OPTIMIZATION_MULTI_DOMAIN_HOST = 0x3<<1,

    STARTUP_LOADER_SAFEMODE                       = 0x10,
    STARTUP_LOADER_SETPREFERENCE                  = 0x100,

    STARTUP_SERVER_GC                             = 0x1000,
    STARTUP_HOARD_GC_VM                           = 0x2000,

    STARTUP_SINGLE_VERSION_HOSTING_INTERFACE      = 0x4000,
    STARTUP_LEGACY_IMPERSONATION                  = 0x10000,
    STARTUP_DISABLE_COMMITTHREADSTACK             = 0x20000,
    STARTUP_ALWAYSFLOW_IMPERSONATION              = 0x40000
} STARTUP_FLAGS;

Members

Member Description

STARTUP_CONCURRENT_GC

Specifies that concurrent garbage collection should be used. If the caller asks for the server build and concurrent garbage collection on a single-processor machine, the workstation build and non-concurrent garbage collection are run instead.

STARTUP_LOADER_OPTIMIZATION_MASK

Specifies that loader optimization shall occur

STARTUP_LOADER_OPTIMIZATION_SINGLE_DOMAIN

Specifies that no assemblies are loaded as domain-neutral.

STARTUP_LOADER_OPTIMIZATION_MULTI_DOMAIN

Specifies that all assemblies are loaded as domain-neutral.

STARTUP_LOADER_OPTIMIZATION_MULTI_DOMAIN_HOST

Specifies that all strong-named assemblies are loaded as domain-neutral.

STARTUP_LOADER_SAFEMODE

Specifies that CLR version policy will not be applied to the version passed in. The exact version specified of the CLR will be loaded. The shim does not evaluate policy to determine the latest compatible version.

STARTUP_LOADER_SETPREFERENCE

Specifies that the preferred runtime will be set, but not actually started.

STARTUP_SERVER_GC

Specifies that the server garbage collection will be used.

STARTUP_HOARD_GC_VM

Specifies that garbage collection keeps the virtual address used.

STARTUP_SINGLE_VERSION_HOSTING_INTERFACE

Specifies that mixing a hosting interface will not be allowed.

STARTUP_LEGACY_IMPERSONATION

Specifies that impersonation should not flow across asynchronous points by default.

STARTUP_DISABLE_COMMITTHREADSTACK

Do not eagerly commit a thread stack.

STARTUP_ALWAYSFLOW_IMPERSONATION

Force flow impersonation across asynchronous points. (Impersonations achieved through p/invoke and managed will flow. The default is to flow only managed impersonations.)

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: MSCorEE.dll

.NET Framework Version: 2.0

See Also

Other Resources

Hosting Enumerations