RasLog Version 2.0 - (c) 1997-89 by IMSoft DI Michael Karg
Graf Starhemberrg. 32/2/3
1040 Wien
Austria
Phone: ++43 (1) 5056190
e-Mail: michael.karg@bigfoot.com

RasLog is a utility to log the connection duration of the remote access
(dialup) network. It can be used for NT or Windows 95 systems. There are
different versions of the program for each system. raslog.exe is for
Windows NT systems (4.0 or higher), raslog95.exe is for Windows 95
systems.

===========
Windows NT:
===========

(for Windows 95 installation see later in this file)
It is very easy to install. You need to start a command prompt...

1. Copy raslog.exe to <WinNTDir>\SYSTEM32 e.g.
   Your Windows directory is C:\WINNT:

      COPY raslog.exe C:\WINNT\SYSTEM32

2. Copy MSVCRT40.DLL to Your SYSTEM32 directoy (the same as
   above) ONLY if You have no or an older version of MSVCRT40.DLL in
   Your SYSTEM32 directory e.g.:

      DIR C:\WINNT\SYSTEM32\MSVCRT40*.*

      DIR MSVCRT40*.*

      Compare the dates, and copy if the one distributed with raslog1.zip
      is newer.

      COPY MSVCRT40.DLL C:\WINNT\SYSTEM32

3. Register the Remote Access Logger Service as a service under WinNT:

      RASLOG /Register DOMAIN\USERNAME PASSWORD

   If You are connected to a DOMAIN controller pass Your Domain, or
   if You are a single Workstation pass as DOMAIN the name of Your
   Workstation or simply ".". Use an Username and a Password from
   the Administrator (must have write access to ...\SYSTEM32\RAS).

   e.g.
      RASLOG /Register MyDomain\Administrator theAdminPassword
   or, for local accounts
      RASLOG /Register .\Administrator theAdminPassword

4. Restart the computer,

5. Start up the service.

   Select Start->Settings->Control Panel->Services

   Scroll down the list to "Remote Access Logger" and select the "Start"
   button. You do not need to do this at every reboot because the service
   is registered with "Automatic" startup. This means that the service
   starts up automatically at every reboot.


Now You are ready to use RasLog. Connect to a remote computer with remote
access. Wait a little bit and disconnect...

Raslog writes a file in ...\SYSTEM32\RAS named connect.log
The file has the form

Username;FromDate;FromTime;ToDate;ToTime;ConnectionName;PhoneNo;Ras-UserName

FromDate and ToDate are in the form DD.MM.YYYY
FromTime and ToTime are in teh form HH.MM.SS
Username is the currently logged username on the NT-System,
ConnectionName is the name of the Dial-Up connection,
PhoneNo is the dialed phone number (could not be obtained in some configurations).
Ras-UserName is the username used to log on on the remote system.

Usually PhoneNo is in the form of ++CountryCode (AreaCode) Number,
if the Telephone TAPI is used, elsewhere the number is just in the form
as entered by the user.

You can get help of the command line options of RasLog if You type

RASLOG /Help


If You have problems with RasLog try the following:

- Stop the Service in Control Panel->Services.
- Start Raslog manually by typing
  RASLOG /Console
- Connect with Remote Access and disconnect
- Look if any error messages appears in the window.

If You cannot solve the problem please e-mail to michael.karg@bigfoot.com.

===========
Windows 95:
===========

1.) Just add raslog95 to Your autostart Program folder (by creating a
    new shortcut). Or simply start raslog95.exe every time you whish
    to log your Dial-up networking.

Raslog writes a file in WINDOWS\SYSTEM named connect.log
The file has the form

Username;FromDate;FromTime;ToDate;ToTime;ConnectionName;PhoneNo;Ras-UserName

FromDate and ToDate are in the form DD.MM.YYYY
FromTime and ToTime are in teh form HH.MM.SS
Username is always "<local>" for Windows 95.
ConnectionName is the name of the Dial-Up connection,
PhoneNo is the dialed phone number (could not be obtained in some configurations).
Ras-UserName is the username used to log on on the remote system.

The PhoneNo could not be obtained, if the TAPI is used. Currently there is
no API available to query this from Win95. In this case "<unknown>" is
used as PhoneNo.

-------------------------------------------------------------------------

The "connect.log" file can be read easily by MS Excel or any other text
editor. Maybe i will write program to display the contents of the log file
in several ways...

For Your information the source code "raslog.cpp" is also included.

Have much fun with RasLog

Michael Karg
