I have been using a utility function in my TaskbarExt application for years to get the current Desktop ListView window handle (SysListView32 to be exact) to show/hide the icons depending on user preferences. This has worked well for years, but recently I enabled the Windows Desktop wallpaper rotation, and I noticed that this function randomly […]
Archive for the ‘Win32 API’ Category
Unicode Programming In Microsoft Visual C/C++
If you program Unicode applications using Microsoft Visual C/C++ compiler, then you most probably use the TCHAR strings. While using TCHAR strings is very easy, one of the most common problem for me, after a years of ANSI string experience, is to find a correct C/C++ string function to do the same job as I […]
Command Line Arguments Processing in Win32 Application
It’s common for Windows executable to get and process the additional parameters from the command line. This way you can pass any custom actions when launching an application i.e. open a particular file, print a file, control the application visibility state, etc. If you are working on C/C++ console application, then you can easily get […]
Forcing just one instance of an Application to execute at a time
When developing a desktop application, it’s often required that only one instance of application should be executable at a time. This is usually implemented in different ways depending on Language/Tools you are using to build the application. Some common techniques used are either using the Mutex or getting a list of active processes and making […]