Where can I find the declaration of a HOST_E_CLRNOTAVAILABLE (type HRESULT) constant?

Can someone help me find a header file containing the HRESULT declaration returned by the function ExecuteInDefaultAppDomain(). The compiler does not see the value documented in the MSDN: HOST_E_CLRNOTAVAILABLE, HOST_E_NOT_OWNERetc. Please note that is <MSCorEE.h>included.

+5
source share
2 answers

These codes are in CorError.h. Simple #include <corerror.h>and they will be available.

+11
source

They are defined in corerror.h .

+4
source

All Articles