How OS diffentiates COM dll and assembly??
I can't think of a situation where the OS has to do that.
But if it does, it can look at the PE headers to determine if a
library is a managed module or not.
COM in-proc libraries are required to export certain entry points,
such as DllGetClassObject.
Mattias