How to listen for Printer Connections?

Hello everyone, The other day, a customer wanted to listen (in C++) for newly added printers. He was trying to use FindFirstPrinterChangeNotification but was never notified. It turned out that he was adding network printers, which belonged to a different print server (effectively creating a “Printer Connection”) and that FindFirstPrinterChangeNotification only works for printers belonging…


Problem running decoupled WMI providers simultaneously

Hello everyone, The other day, I had a customer who implemented a decoupled WMI provider in her application. She was running two instances simultaneously and when calling a function of the WMI provider, one of the two instances would crash with the following error message: Non-static method requires a target. The process that crashed would…


TFS 2010: An error occurred while validating. HRESULT = ‘8000000A’

Hello everyone, I’ve had a few cases already, where our customers came across a rare problem: They were building Visual Studio Installer projects with Team Build of Team Foundation Server 2010 and the build failed with the error: “An error occurred while validating. HRESULT = ‘8000000A’”. When running the build process again, it usually succeeded. The…

2

WPF ignoring BiDi control characters

Hello everyone, Have you ever tried using the following BiDirectional (Disclaimer: The content linked here is not from Microsoft: http://en.wikipedia.org/wiki/Bi-directional_text http://unicode.org/reports/tr9/) control characters in WPF? LRM (U+200E, Left-To-Right Mark) LRE (U+202A, Left-To-Right Embedding) LRO (U+202D, Left-To-Right Override) PDF (U+202C, Pop Directional Formatting) If the answer is yes, you will have noticed that WPF is completely…


File Server Resource Manager: Creating a custom classification module – Registration

Hello everyone, This is part 3 of my mini-series on how to create a custom file classification module that can be run by the File Server Resource Manager which ships with Windows Server 2008 R2. (If you missed the other parts, you can return to the index by clicking here)   Registering the Classification Module…


File Server Resource Manager: Creating a custom classification module – Implementation

Hello everyone, This is part 3 of my mini-series on how to create a custom file classification module that can be run by the File Server Resource Manager which ships with Windows Server 2008 R2. (If you missed the other parts, you can return to the index by clicking here) The Implementation To create a…


File Server Resource Manager: Creating a custom classification module – Introduction

Hello everyone, This is the first part of my mini-series on how to create a custom file classification module that can be run by the File Server Resource Manager which ships with Windows Server 2008 R2. (If you missed the other parts, you can return to the index by clicking here)   Introduction What is…


File Server Resource Manager: Creating a custom classification module – Index

Hello everyone, The other day a customer wanted to classify his documents using the File Resource Manager of Windows Server 2008 R2. He needed to classify a huge amount of files with dynamic values in a short amount of time. He found that opening the files programmatically, one by one, writing their classification properties and…


Communication between Windows Services and Applications in Windows Vista and higher

Hello everyone, If you are trying to migrate a Windows service that communicates with other applications via window messages to Windows Vista or higher (Vista, Server 2008 (+ R2), 7), or if you are implementing a new service, please remember: Windows Vista introduced a new concept called “Session 0 Isolation”! Have a look at the following quote…