Windows programming using MinGW

A short example of how to started with Windows programming in non-Visual Studio environments. In this example, we use the MinGW (Minimalist GNU for Windows) compiler within the Code::Blocks integrated development environment. MinGW can be obtained via the following link: http://www.mingw.org/ First select File > New > Project… and opt to create a new empty …

Continue reading ‘Windows programming using MinGW’ »

Using sc.exe to communicate with Windows Services in Visual C++

SC.exe is commonly used to retrieve and set control information about installed Windows services. Common tasks are to configure, start and stop a service, as well as retrieve the status of a specific service. These tasks can be achieved by executing sc.exe inside a command prompt as a batch (.bat) files that can call combinations …

Continue reading ‘Using sc.exe to communicate with Windows Services in Visual C++’ »