MSDN is full of incorrect information. This is one of those cases, you can try the code if you'd like, make a dll from the template, put some debug in the DllMain, and load the library dynamically, it will never get called the way that it is. I'm reporting it to microsoft now.