                                 LSNetLoad v0.2
                            Saturday, April 14, 2001
                           by Peter Grimm aka Dispater
                               pmg23@columbia.edu

Function:  Displays the current network usage on the wharf.  Both in and out 
           are displayed in a graphical manner.

Requirements:  Windows NT/2k, some sort of network connection or modem, 
               litestep, a computer.

Before you start: - Network Card
1. TCP/IP NetBIOS Helper Service needs to be enabled in order for the network 
    connection monitoring to take place, so enable it (Control Panel -> 
    Administrative Tools -> Services)

2. Open up Performance (Control Panel -> Administrative Tools -> Performance) 
    and right click on the graph area. Click add counters. Under performance 
    object, select network interface. Under select instance from list find 
    your network card's name. The module will need to know this in order to 
    get the nic performance variables properly.

Before you start: - Modem
1.  I think you need to install the TCP/IP NetBIOS Helper Service, but i am not
    sure.
    
2.  Open up Performance (Control Panel -> Administrative Tools -> Performance) 
    and right click on the graph area. Click add counters. Under performance 
    object, select RAS Port. Under select instance from list find the 
    communication port your modem uses. The module will need to know this in 
    order to get the modem performance variables properly.

Before you start: - Windows NT 4
1.  Make sure you have a copy of pdh.dll and it is either in the litestep 
    directory or the windows system32 directory.

step.rc settings:
   LSNetLoadModem
   Default: FALSE
   
    This is required to be set if you are using a modem.  If you are using a
    network card do not set this unless you wish to view your modem's usage.
   
   LSNetLoadTransparent
   Default: FALSE
   
    Causes the background to be transparent (lets the wharf tile show through).
    May flicker due to lack of double buffering.
   
   LSNetLoadNoGrid
   Default: FALSE
   
    Removes the grid.
   
   LSNetLoadNoBevel
   Default: FALSE
   
    Removes the bevel borders.
   
   LSNetLoadScrollingGrid
   Default: FALSE
   
    Causes the grid to scroll with the graph similar to the way it does in the
    Windows Task Manager.
    
   LSNetLoadGridColor color
   Default: 0x900000

    This is the color of the grid.

   LSNetLoadBackColor color
   Default: 0x500000
   
    This is the color of the background.
   
   LSNetLoadUpColor color
   Default: 0x00FF00
   
    This is the color of the network out graph.
   
   LSNetLoadDownColor color
   Default: 0xFF0000
   
    This is the color of the network in graph.

   LSNetLoadNWBevelColor
   Default: 0x000000

    The color of the top left part of the bevel border.
    	
   LSNetLoadSEBevelColor
   Default: 0xFFFFFF
   
    The color of the bottom right part of the bevel border.

   LSNetLoadMaxSpeed int
   Default: 10000
   
    This is the maximum value on the graph in bytes/second.  This does not
    have to be the maximum speed of your network card.  Divide bits/second by
    8 and you will get the bytes per second.  Modem baud rate is in bits per
    second.  So there is no reason to set this above 7000 (56/8) for a 56k
    modem.
   
   LSNetLoadRefreshDelay int
   Default: 1000
   
    This is the time in milliseconds between polls.  It is inversely 
    proportional to the speed of the graph.

   LSNetLoadVerticalGridLines int
   Default: 4

    The number of vertical grid lines.  This includes one for the right edge.
    If you use the scrolling feature, you will know why it is like this.

   LSNetLoadHorizontalGridLines
   Default: 4
   
    The number of horizontal grid lines.  This includes the top, so if you have
    a maximum bandwidth of 50000 and you want each gridline to represent 10000,
    set the number of horizontal grid lines to 5.
   
   LSNetLoadBorderSize
   Default: 4
   
    This is the amount of space between the bevels and the edge of the wharf 
    tile.

   LSNetLoadInterface string
   Default: PCI Bus Master Adapter
   or COM2 if modem
   
    This is the name of your network adapter.  It is very important that you 
    get this correct or the module will fail miserably!  If you have a modem it
    is the name of the respective port in your modem.

   
    
Sample settings:

   *Wharf "Network Load" ".none" "@LsNetLoad.dll"
   LSNetLoadInterface "COM2"
   LSNetLoadModem

More sample settings:

   *Wharf "Network Load" "picture.bmp" "@LsNetLoad.dll"
   LSNetLoadInterface "3Com EtherLink PCI"
   LSNetLoadGridColor 007000
   LSNetLoadUpColor FF0000
   LSNetLoadDownColor 00FF00
   LSNetLoadMaxSpeed 50000
   LSNetLoadScrollingGrid
   LSNetLoadRefreshDelay 500
   LSNetLoadTransparent
   LSNetLoadNWBevelColor 202020
   LSNetLoadSEBevelColor 909090
   LSNetLoadVerticalGridLines 5
   LSNetLoadHorizontalGridLines 5
   LSNetLoadBorderSize 2

To Do:
    + Double buffering
    + Toggleable Text showing in/out numbers  

Version History:
  0.2 - April 14, 2001
  --------------------------
    + Added transparency support.
    + Added variable number of gridlines.
    + Added ability to change bevel color.
    + Added ability to change border size.
    + Added modem support.
    + Added variable graph speed.
    + Added ability to remove bevel.
    + Added ability to remove grid.
    + Minor cosmetic enhancements to graphs. 
    
  0.1 - April 13, 2001
  --------------------------
    Initial Release.

If you have any questions, comments, bugs, and enhancements, please let me know.
My email is pmg23@columbia.edu.

Thanks to Francis Gastellu aka Lone Runner/Aegis for not only making litestep,
but also for making lscpu and releasing the source, which made this release
possible.  Thanks to jugg, noodge, furan and others for help and support.  
Thanks to the devteam and all those people that contribute to the ls community.
If I missed anyone let me know.
