The following is a sample from the developer who owns mscoree.dll. The sample prints out all the CLR versions installed in the machine. The code will be shipped in .Net framework SDK as a sample. // This is the function pointer definition for the shim