Category Archives: Win32
BluetoothAPIs.h Broken in Windows SDK
Summary The Microsoft Windows SDK versions 7.0 and 7.1 appear to have broken BluetoothAPIs.h header files. Update: Microsoft has fixed the errors in the Bluetooth header as of SDK version 8.0 for Windows 8. Details So far, I have uncovered … Continue reading
The Demise of CAPICOM
CAPICOM, a COM-based wrapper for the CryptoAPI library, is deprecated and on its way out. However, Microsoft has no time line for phasing it out, nor have they provided sufficient documentation of alternatives. Many CAPICOM pages contain a confusing, bright-red … Continue reading
GnuPG Plugin for vim Under Cygwin
GnuPG, GNU Privacy Guard, is a free system for encrypting files, emails, etc. The GnuPG plugin for vim provides automatic encryption and decryption of files within vim. If you attempt to edit a GnuPG-encrypted file with vim, it will prompt … Continue reading
CoCreateInstance Fails With “Class Not Registered”
Recently, I had a problem unique to my test machine. Attempting to call CoCreateInstance on a COM class provided by one of our DLLs resulted in HRESULT 0x80040154, which corresponds to “Class not registered”. This was a mystery since regsvr32 … Continue reading
SetThreadLocale and SetThreadUILanguage for Localization on Windows XP and Vista
Simple Localization In classic Windows programming, the quickest way to handle localized resources is to put all languages into the same resource file, then use SetThreadLocale to tell Windows that it should return resources tagged with the specified language identifier. … Continue reading
Underlining Characters in a ToolTip
My product, a toolbar for Outlook Express, uses tooltips to display keyboard shortcuts. For some localization work, I needed to display an underlined character within a tooltip. The only hint I could find was a reference to .Net tooltips. Apparently, … Continue reading