This documentation is archived and is not being maintained.

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);


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


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


[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.

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




The method completed successfully.

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.

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4