When Dial-Up Networking completes the physical connection, it loads the overlaying SMM to manage the session. Only the Dial-Up Networking process attaches to the overlaying SMM DLL. At load time, the overlaying SMM DLL's entry point will be notified that the Dial-Up Networking process is attaching to the DLL. The SMM's process-attach handler should do the following:
In the sample overlay SMM provided with the DDK , the sample SMM wants to overlay the PPP SMM so it loads RASAPI32.DLL which contains the PPPSMM and gets the entry point for the RnaSessInitialize function. It initializes the list for the session control block which will maintain the active session.