Run application only once per windows-session
Using this simple tip, you can block your application to be executable only once per windows sessions. To run application again, Windows must be restarted before.
Using this simple tip, you can block your application to be executable only once per windows sessions. To run application again, Windows must be restarted before.
Detecting clipboard change is very similar to detecting system time change. We will detect WM_DRAWCLIPBOARD system message.
If the user changes the system time either with Date and Time properties dialog box or using command line, we can detect this by catching WM_TIMECHANGE system message. Here is… Read more »
If you want to know how many bytes of memory is using your process, here is simple example.
Using GetTempFileName, we can create a unique name for temporary file. It’s useful when your application is using temporary files and you want to save them into default TEMP folder… Read more »
To get full path to application associated with any file type, we need standard ShellAPI unit and the rest will do the FindExecutable function.
When you minimize modal window, this window is “hidden” behind (or below) application main form. Using this simple trick, we can minimize also the main application window together with modal… Read more »
Using GetSystemMetrics function, we can detect how the system is started.
This simple function will return name of currently logged in user.
This short tip will show you how to delete file to Recycle Bin. We need ShellAPI unit and the rest is very simple.