
--- IK_LSCPU 1.5 ---
* by Dan Giralte
* Thanx to Francis Gastellu for his code from LSCPU
* Thanx to whodini for his code from ALSClock that got me thru Double 
  Buffering (finally)
* Thanx to everyone on #litestep that helped me code this.  I may yet
   be a competent programmer!
* Thanx to MrJukes for helping me kill a pesky memory leak!
* Thanx to Goran for his diff for the delay setting.


-- 1.5 Changes --
Added Goran's delay code

-- 1.3 Changes --
Killed memory leak

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

IK_LSCPU is a memory and cpu monitor wharf for Litestep.  You may
choose colors to use for the background, border, grid lines, and usage
lines.  You may also turn each element (The Background, Grid, and border) 
based on your own preference.  This module supports full transparancy.

INSTRUCTIONS
Add these lines to your MODULES.INI file

[ik_lscpu]
nobg=0
noborder=0
nogrid=0
nocpu=0
nomem=0
fillin=0
bordercolor=0x00FFFFFF
backcolor=0x00005000
gridcolor=0x00007000
cpucolor=0x00FF00FF
memcolor=0x000000FF
delay=1

You may change the last 6 characters in the 'color' lines to a BGR value
useing hex numbers.  '0x00' must be the first 4 characters in each color
line.  

The 'no??' lines can either be 1 or 0.  
* nobg turns the background paint off.
* noborder turns off the border.  
* nogrid turns off the grid. 
* nocpu turns off the cpu monitor
* nomem turns off the memory monitor
* fillin adds a line from the top of the present status down, so the 
  memory chart looks filled in.
* delay sets how many seconds will pass between refreshes

If you can write the code to make it transparant, please send me a DIFF.
I'm ikilledkenny@execpc.com.

-Dan

# The original README.txt info for lscpu

  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  ANY KIND, EITHER EXPRESSED OR IMPLIED.

  This is an example module. It simply shows a CPU usage graph updated
  every seconds.

  You may take this as a starting point to make your own modules, however
  if you need to provide bitmap based animations, you'll need to add
  double-buffering support to your module to avoid flickering.

  Basically, a double buffer works this way: create a memory DC and an
  associated bitmap, draw everything in your memory DC instead of the
  window DC. Then when an update is needed, fetch the results on the screen
  with BitBlt from your memory DC to the window DC.

  This modules uses the registry key HKEY_DYN_DATA to retrieve informations
  about the cpu usage. You may have a look at this registry key because it
  provides a lot of usefull information that you may want to monitor. However
  it seems that this method does not work on Windows NT. For NT, you'll
  have to monitor HKEY_PERFORMANCE_DATA.

  If you're an MFC lover, you should not have much problems converting the
  SDK to use with MFC. Just create a window object derived from the child
  window the module creates (hMainWnd) and you should be able to put any
  MFC object over it then (note that i haven't tried it, so don't blame
  me if this does not work, i personally prefer coding the bare Win32 API).

  That should be it, good luck!
  Francis.
  gastellu@club-internet.fr
