Under Win16 LibMain is supplied by the C run-time libraries. Win32 instead expects to find DllMain. One major way in which DllMain differs from LibMain in that the parameters passed in indicate the reason for which DllMain is being called. DLLMain takes over the functionality of both the LibMain and the WEP function.