Archive for the 'System' Category

16 Jun

Set priority level of running application (process)

Using SetPriorityClass function, you can set priority level of your running application. Same functionality is in the Task Manager (just rightclick the process in the list and select priority level).

16 Jun

Flash application button on taskbar

If your application is minimized and you still want to alert user, you should flash icon on taksbar instead of bring your application to front. Here is how to do it…

01 Apr

Global system hotkey

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.

25 Mar

How to detect (and prevent) system shutdown

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 way to detect, that Windows wants to shutdown and your application can do everything necessary to close properly.

15 Mar

Disable / enable Start button

The Start button will be still visible, but not clickable. Completely useless trick.

14 Mar

Hide and show taskbar programmatically

Just few lines of code to hide and show Windows taskbar programmatically.

10 Mar

Run default screensaver from a code

If you want to run default system screensaver from your application, it’s really easy. Just few lines of code. Here’s how to do it…