How does windows differentiate between regular exe and a .Net exe?
- by Yogendra
Hi All,
This might be a duplicate entry. Excuse me if it is.
I was asked in an interview as to how does Windows OS differentiate between regular exe and .Net exe.
My reply was, when .Net exe is build, the compiler emits some information into the header. The information is PE32 or PE32+. windows verifies the header to determine if it needs to load the MSCOREE.dll which loads the CLR and executes the exe.
I am not sure if my answer is correct ? Your inputs is appreciated.