If you want to know how many bytes of memory is using your process, here is simple example.
Using ShlObj unit and SHGetSpecialFolderLocation Windows API function, we can retrieve the location of a special folders, such as My computer, Desktop, Program Files etc… There are over 20 special… Read more »
If you want to detect user inactivity even if your application is in background (has no focus), it’s really simple. You can achieve this using GetLastInputInfo function.
This tip is very simple. Just use standard function GetTickCount and the rest is just elementary mathematics.
Using the RegisterHotKey function and few other lines of code, you can register a global system hotkey, which is active even if your application is minimized.