DllCanUnloadNow entry point
is exported by COM in-proc servers.
COM host applications call
to ask COM to do DLL housecleaning,
and in response, COM asks each DLL if it is okay to be unloaded.
If so, then COM unloads the DLL.
What is not well-known is that COM also does DLL...