Accepts an application domain ID. Returns an application domain name and the ID of the process that contains it.
HRESULT GetAppDomainInfo( [in] AppDomainID appDomainId, [in] ULONG cchName, [out] ULONG *pcchName, [out, size_is(cchName), length_is(*pcchName)] WCHAR szName , [out] ProcessID *pProcessId);
[in] The ID of the application domain.
[in] The length, in characters, of the
szName return buffer.
[out] A pointer to the total character length of the application domain name.
[out] A caller-provided wide character buffer. When the method returns,
szName will contain the full or partial application domain name.
[out] A pointer to the ID of the process that contains the application domain.
After this method returns, you must verify that the
szName buffer was large enough to contain the full name of the application domain. To do this, compare the value that
pcchName points to with the value of the
cchName parameter. If
pcchName points to a value that is larger than
cchName, allocate a larger
szName buffer, update
cchName with the new, larger size, and call
Alternatively, you can first call
GetAppDomainInfo with a zero-length
szName buffer to obtain the correct buffer size. You can then set the buffer size to the value returned in
pcchName and call
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
.NET Framework Versions: Available since 2.0