Setting Up The Registry

Before the counters can be installed in the Windows NT Registry, you must do some initial setup of the registry. Under the SYSTEM\CurrentControlSet\Services key, create a key with the same name as your gateway type (in our example, MyGate). Under that key create subkeys called Linkage and Performance.

Under the Linkage subkey, create a value called Export of type REG_MULTI_SZ with its value being the gateway name(s) that you chose above (in our example, MyGate1 and MyGate2).

Under the Performance subkey, create a value called Library of type REG_SZ with its value being the full pathname of the performance monitor DLL for your gateway. Create three other values called Open, Close, and Collect, and give them the exact types and values shown in the following registry tree. Here is how the tree should look:

SYSTEM\CurrentControlSet\Services\
        MyGate
               Linkage
                     Export:REG_MULTI_SZ:MyGate1 MyGate2
               Performance
                     Close:REG_SZ:CloseGatewayPerformanceData
                     Collect:REG_SZ:CollectGatewayPerformanceData
                     Library:REG_SZ:c:\...\GWPERF.DLL
                     Open:REG_SZ:OpenGatewayPerformanceData