Codexpert – 2014 Articles Summary

Microsoft Libraries Multiple-View File Explorer Shows how to easily make a Windows file manager with multiple views by using MFC framework and IExplorerBrowser interface. MFC Support for Direct2D – Part 1 Using the MFC D2D classes for making a simple image viewer. MFC Support for Direct2D – Part 2 Demonstrates how to easily make a … Read more

WIC Wrapper Library – Version 1.1

WIC Wrapper Library v1.1 has the following: new and completed methods for existing wrapper classes in the previous version; new classes: wic::Bitmap and wic::Palette; a new header containg enums, WicWrapEnums.h. Download: Example 2: Using wic::ImagingFactory::CreateBitmapFromHICON and wic::Bitmap The following example is close to the previous one, except that it uses wic::ImagingFactory::CreateBitmapFromHICON to display an icon … Read more

Multiple-View File Explorer

File Explorer (aka Windows Explorer) is a well known and commonly used file manager application, shipped since early Windows 95 operating system. There are also other replacements that can be found over the Internet, however, let’s see how can we make our own file manager, having multiple (tabbed) views. A brief tour of possible ways … Read more

Listing Windows Known Folders

If the target system is Windows Vista, Windows Server 2008 or newer, enumerating known folders (formerly known as special folders) like Desktop, Documents, Program Files, etc is quite easy by calling GetFolderIds method of IKnownFolderManager interface. It gets an array of all registered known folder IDs (KNOWNFOLDERID). Once having a folder ID, we can call IKnownFolderManager::GetFolder … Read more

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

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