Get Process Memory Info
If you want to know how many bytes of memory is using your process, here is simple example.
If you want to know how many bytes of memory is using your process, here is simple example.
The standard system font size in Windows XP is 96 dpi. You can also use 120 dpi, if your prefer bigger fonts or you can set this font size to… Read more »
When you rightclick application title bar (or leftclick icon on title bar), the system menu will appear. Here are common commands to close, minimize or maximize window. But you can… Read more »
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.
When Windows are being shutdown or restarted, all runnig applications are closed of course. This can be dangerous, because you can lost your unsaved documents. But there is an easy… Read more »