Codexpert – 2013 Articles Summary

C++ Language and STL <filesystem> header in Visual Studio 2012 Shows sample usage of filesystem header, new to VS2012, that defines types and functions for working with files and folders. C++11 concurrency: threads An introduction to threads support in C++11. C++11 concurrency: locks A walk through the synchronization mechanism for multi-threading provided by C++11. C++11 … Read more

Listing Processes – Part 5: Using Windows Management Instrumentation (WMI)

Using Win32_Process WMI class A previous article shows how to use Win32_PhysicalMedia WMI class to get physical drive info. We can write something similar for getting a list of running processes. All we have to do is to replace the WQL query and get specific properties for Win32_Process. However, to simplify the things, I wrote … Read more

Get Physical Drive Serial Number – Part 2

The previous article shows how to get manufacturer-provided serial number for a physical drive by calling DeviceIoControl function. Now, let’s see how can it be made by using WMI (Windows Management Instrumentation). Get serial number by using Win32_PhysicalMedia WMI class To get the physical drive serial number by using Win32_PhysicalMedia class, follow these steps: Initialize COM. … Read more