XP Usage
XPU is an utility to show available/used/total resources such as processor, memory, pagefile, disk partitions and trash. Written in WinAPI (95%) and KOL. Tested on Windows XP Profesional x64 and it's stable. Please let me know if it's working also on your Windows version.
Yeah, I know it's too big. I'll try to reduce it's size and memory usage in future. Sorry!

Download:
xpu, xpuconf and sample settings.ini [17 kB]
WinAPI documentation (only for developers) [7 MB]
Usage:
Before you can use XP Usage you should configure it. For a first time I suggest to use XPU Configuration (xpuconf.exe) which will modify configuration file (basing on options you've selected). If configuration file (settings.ini) is not in the directory, the program will create it. Later you can modify this file by yourself (if you really know what you're doing) or again with XPU Configuration.
Configuration:
1) Memory, Pagefile, Disk - enable/disable component. You also have to check what exactly (usage/total/available) you'd like to see.
2) CPU - enable/disable component. It's showing current CPU usage.
3) Trash - enable/disable component. It's showing total size of all files in trash.
4) Pos.X, Pos.Y - position of XP Usage. While running it's still possible to move it's window, hovewer default position can only be set here.
5) Refresh, - time interval for updating all data. Definitely not recommended to set it to lower value than 1000.
6) Selected partitions - you can choose specific partitions to show (works only if Disk component is enabled).
7) Main Text - font selection for component name
8) Description - font selection for values
9) Color - color which will be used for text and for drawing bars (if selected). You should set at least one color (this one or Background) to different value. By default each color is not set (or if you like: is set to '0' - which means Black color), resulting in having Black font and Black background at the same time.
10) Show icons - draw system icon next to the component name.
11) User icons - instead of predefined icons you can use your own icons. In order to make it working, you need to prepare enough icons named xpuZ, where Z is a number starting from 0. For example, if you've selected 3 components: Memory, Pagefile and Trash, you need to insert icons: xpu0.ico, xpu1.ico and xpu2.ico into the same directory as XPU. Please note that every partition is being treated as a standalone component (if you enable Disk and select 3 partitions, you have 3 components, not 1). Works only if Show icons is enabled.
12) Show bars - make horizontal status bar under each component.
13) Rounded - the same as above except it draws rounded corners. Works only if Show bars is enabled.
14) Background - color which will be used as a background (works only if Transparent is not enabled). You should set at least one color (this one or Font Color) to different value. By default each color is not set (or if you like: is set to '0' - which means Black color), resulting in having Black font and Black background at the same time.
15) Transparent - the whole background is transparent.
General hints:
- DON'T play with it too much or you can be quite surprised (in a wrong way), due to decreased size and memory consumption, safety exceptions are limited to absolute minimum
- MOREOVER, don't change font size to a higher value than limited in font dialog, or the program will crash (it's not possible to draw text outside drawing area)
Performance hints:
- use only components you really need, especially Trash (while having a lot of files inside) and CPU can really slowdown
- set Refresh to higher value: this means less updates and more stability, it's strongly NOT advised to make it lower than 1000 ms
- if Show bars options is enabled, then each time interval occurs Usage has to be counted, this is especially slow for Disks, because they don't support native API function to retrieve their used space
- if you have 1-color desktop background set correct Background color and DISABLE Transparent, as it consumes more resources
Copyright © 2009 Zbigniew Chlondowski