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