Unloading the Session Management Module Overlay

When Dial-Up Networking terminates the session, it unloads the SMM. The DLL's entry point will be notified that the Dial-Up Networking process is detaching from the DLL. The process-detach handler should do the following:

In the sample, the SMM frees all the session control blocks left in the list and unloads RASAPI32.DLL .