HOWTO: Windows 95/98 Session Management Modules (3/5)

ID: Q232716


The information in this article applies to:


SUMMARY

Dial-Up Networking uses Session Management Modules to abstract the interface presented by the Dial-up server. This is the third of five Knowledge Base articles describing the use of Session Management Modules.


MORE INFORMATION

3. Installing a Session Management Module

Session Management Modules are configured in the authentication key of the remote access branch of the registry. This section describes the layout of this key and how it is used.

3.1. Registry layout


  HKEY_LOCAL_MACHINE/SYSTEM/SERVICES/REMOTEACCESS/AUTHENTICATION
    CLASS
      <device class>
        <Dial-Up Adapter name 0>
        ...
        <Dial-Up Adapter name n>
      ...
    DRIVERS
      <Dial-Up Adapter name 0>
        0 = <Session Management Module 0>
        ...
        m = <Session Management Module m>
      ...
    SMM_FILES
      <Session Management Module 0>
        Desc = 
        Path = 
        Options = 
        Protocols = 
        Usage =
        <Overlaid_SMM>
          0 =
          1 =
          …
      ...  
SMMCFG_SW_COMPRESSION (0x00000001) The SMM can negotiate the software compression scheme.

SMMCFG_PW_ENCRYPTED (0x00000002) The SMM can use the encrypted password.

SMMCFG_NW_LOGON (0x00000004) The SMM allows Dial-Up Networking to log onto the network on the Dial-Up server automatically.

SMMCFG_SW_ENCRYPTION (0x00000010) The SMM can use the software encryption.

SMMPROT_NB (0x00000001) for NetBEUI
SMMPROT_IPX (0x00000002) for IPX/SPX Compatible
SMMPROT_IP (0x00000004) for TCP/IP
INITIATOR_TYPE (0x00000001) The SMM can be used for the client Dial-Up Networking.
RESPONDER_TYPE (0x00000002) The SMM can be used for the Dial-Up Networking server.

3.2. How Dial-Up Networking Uses the Registry

The following is the default registry layout when Dial-Up Networking is first installed:


  HKEY_LOCAL_MACHINE/SYSTEM/SERVICES/REMOTEACCESS/AUTHENTICATION
    CLASS
      COM
        PPPMAC
    DRIVERS
      PPPMAC
        0 = "PPP"
        1 = "RAS"
        2 = "NWC"
    SMM_FILES
      NWC
        Desc = "NRN: Netware Connect"
        Path = "rasapi32.dll"
        Options = 04 00 00 00
        Protocols = 02 00 00 00
        Usage = 01 00 00 00
      PPP
        Desc = "PPP: Windows 95, Windows NT 3.5, Internet"
        Path = "rasapi32.dll"
        Options = 17 00 00 00
        Protocols = 07 00 00 00
        Usage = 03 00 00 00
      RAS
        Desc = "Windows for Workgroup and Windows NT 3.1"
        Path = "rasapi32.dll"
        Options = 04 00 00 00
        Protocols = 01 00 00 00
        Usage = 03 00 00 00 
The default Dial-Up Adapter (Microsoft Dial-Up Adapter) is PPPMAC. PPPMAC handles a modem device and has three default Session Management Modules--NWC, PPP, and RAS. When the modem connection is established, Dial-Up Networking gets the device class of the modem from TAPI's lineGetID call for the NDIS type. The Unimodem service provider returns the COM device class for the modem. Dial-Up Networking looks for the Dial-Up adapters from the .../REMOTEACCESS/AUTHENCATION/CLASS/COM key and finds PPPMAC as the only adapter. Next, Dial-Up Networking enumerates the Session Management Modules for PPPMAC from the .../REMOTEACCESS/AUTHENCATION/-DRIVERS/PPPMAC key, starting from the PPP type. When Dial-Up Networking is ready to hand control off to the SMM, it looks up the Path value in the .../REMOTEACCESS/AUTHENCATION/SMM_FILES/PPP key for the DLL name, then loads it and starts the session management phase.


REFERENCES

For additional information about the use of Session Management Modules, please see the following articles in the Microsoft Knowledge Base:

Q232675 HOWTO: Windows 95/98 Session Management Modules (1/5)
Q232708 HOWTO: Windows 95/98 Session Management Modules (2/5)
Q232719 HOWTO: Windows 95/98 Session Management Modules (4/5)
Q232725 HOWTO: Windows 95/98 Session Management Modules (5/5)

Additional query words:


Keywords          : kbnetwork kbNDIS kbWinOS95 kbWinOS98 
Version           : WINDOWS:; Win95:; Win98:
Platform          : Win95 WINDOWS Win98 
Issue type        : kbhowto 

Last Reviewed: June 9, 1999