In the first part of the article we have defined all the necessary interfaces and related API methods for extracting metadata from Windows Property System (WPS). In this part, we will put those definitions to work by extracting data in a simple WPF application. Before we dive into more code and the code gets complicated […]
Category: Code
Extracting metadata from Windows Property System – Part I
Windows Property System (WPS) encapsulates potentially dozens of metadata entries for shell items. Some of information provided from these entries can be observed by right clicking on the column header in detail view of Windows Explorer and selecting the desired properties. Depending on the particular item, these entries can range from ‘Number of audio channels’ […]
Extracting shell icons and thumbnails (WPF)
** Requires Windows Vista / Server 2008 or above. Introduction of IShellItemImageFactory interface in Windows Vista greatly simplified icon and thumbnail extractions. This article will explain the process of extraction using C# and WPF. Windows API Declarations We first need to declare the IShellItemImageFactory interface and its associated flags & struct: We will make an […]
Editing multiline text in DataGrid (UWP)
A project I am currently working on uses the DataGrid XAML Control from Windows Community Toolkit. By default the data grid only displays single line text-boxes while editing the bound data. The problem for me is that one of the columns in my data set is an address column that requires a multiline textbox editor. […]
LNK2022, LNK1255 Errors in C++/CLI Projects
I kept getting LNK2022 and LNK1255 ‘link failed because of metadata’ errors while working on a C++/CLI project. Apparently, the order in which the include statements appear matters in this type of project. The remedy was to move the “#include <Windows.h>” statement to the very top.