ICLRRuntimeInfo::GetDefaultStartupFlags Method

Gets the startup flags and host configuration file that will be used to start the runtime.

HRESULT GetDefaultStartupFlags(
     [out]  DWORD *pdwStartupFlags,
     [out, size_is(*pcchHostConfigFile)] LPWSTR pwzHostConfigFile,
     [in, out]  DWORD *pcchHostConfigFile);

Parameters

  • pdwStartupFlags
    [out] A pointer to the host startup flags that are currently set.

  • pwzHostConfigFile
    [out] A pointer to the directory path of the current host configuration file.

  • pcchHostConfigFile
    [in, out] On input, the size of pwzHostConfigFile, to avoid buffer overruns. If pwzHostConfigFile is null, the method returns the required size of pwzHostConfigFile for pre-allocation.

Return Value

This method returns the following specific HRESULT as well as HRESULT errors that indicate method failure.

HRESULT

Description

S_OK

The method completed successfully.

Remarks

This method returns the default flag values (STARTUP_CONCURRENT_GC and NULL), or the values provided by a previous call to the ICLRRuntimeInfo::SetDefaultStartupFlags method, or the values set by any of the CorBind* methods if they are bound to this runtime.

Requirements

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4

See Also

Reference

ICLRRuntimeInfo Interface

Other Resources

Hosting Interfaces

Hosting (Unmanaged API Reference)