Export (0) Print
Expand All

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

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.

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

HRESULT

Description

S_OK

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

Community Additions

ADD
Show:
© 2014 Microsoft