Showing results for November 2012 - Page 2 of 3 - The Old New Thing

Nov 20, 2012
Post comments count0
Post likes count0

How do I use group policy to improve security of USB thumb drives in my organization?

Raymond Chen
Raymond Chen

A customer wanted to know how they could improve the security of USB thumb drives in their organization. Specifically, they wanted to block access to removable media devices (primarily USB thumb drives), but provide a list of exceptions for specific thumb drives. Fortunately, there's a whitepaper that covers exactly this topic and explains how to ...

Tips/Support
Nov 20, 2012
Post comments count0
Post likes count0

Microspeak: touch base

Raymond Chen
Raymond Chen

The verb phrase touch base is in general business jargon use, but it's quite popular at Microsoft. To touch base with someone is to contact someone in a lightweight and mostly-informal sort of way. In other words, it takes the form of a piece of email or a brief office visit rather than a formal meeting with an agenda. Bob, can you touch base w...

Non-ComputerMicrospeak
Nov 19, 2012
Post comments count0
Post likes count0

Raymond's podcast list (for 2011, at least)

Raymond Chen
Raymond Chen

Ry Jones wants to know what other podcasts I subscribe to. Remember, I wrote this back in 2011. Here's what I listen to. Note that I am not averse to fast-forwarding over parts that don't interest me, such as when they discuss a movie that I simply don't care about.

Non-Computer
Nov 16, 2012
Post comments count0
Post likes count0

How do I forward an exported function to an ordinal in another DLL?

Raymond Chen
Raymond Chen

The syntax for specifying that requests to import a function from your DLL should be forwarded to another DLL is This says that if somebody tries to call from , they are really calling in . This forwarding is done in the loader. Normally, when a client links to the function , the loader says, "Okay, let me get the address of the function in...

Code
Nov 15, 2012
Post comments count0
Post likes count0

If you're going to write your own allocator, you need to respect the MEMORY_ALLOCATION_ALIGNMENT

Raymond Chen
Raymond Chen

This time, I'm not going to set up a story. I'm just going to go straight to the punch line. A customer overrode the operator in order to add additional instrumentation. Something like this: This worked out okay on 32-bit systems because in 32-bit Windows, is 8, and is also 8. If you start with a value that is a multiple of 8, then add 8 ...

Code
Nov 13, 2012
Post comments count0
Post likes count0

Microsoft Money crashes during import of account transactions or when changing a payee of a downloaded transaction

Raymond Chen
Raymond Chen

Update: An official fix for this issue has been released to Windows Update, although I must say that I think my patch has more style than the official one. You do not need to patch your binary. Just keep your copy of Windows 8 up to date and you'll be fine. For the five remaining Microsoft Money holdouts (meekly raises hand), here's a patch...

Code
Nov 12, 2012
Post comments count0
Post likes count0

Frequentists vs Bayesians

Raymond Chen
Raymond Chen

But, I mean, c'mon. Frequentists vs Bayesians? Worst. Action. Movie. Ever.

Non-Computer
Nov 12, 2012
Post comments count0
Post likes count0

Why are taskbar live previews lost when you use Fast User Switching?

Raymond Chen
Raymond Chen

Anonymous asks a metric buttload of questions, which means that I feel compelled to answer all or none. And given the choice, I decided to answer none. Okay, I will answer one and ignore the rest. Why are taskbar live previews lost when you use Fast User Switching? When you switch away from a user via Fast User Switching, the Desktop Window Man...

Other
Nov 9, 2012
Post comments count0
Post likes count0

Thread affinity of user interface objects: Addendum

Raymond Chen
Raymond Chen

Some time ago, I discussed the thread affinity of device contexts, noting that the and functions must be called from the same thread. The same restriction also applies to printer DCs. Printer DCs must be created and destroyed on the same thread. The printing team imposed this additional rule in order to make it easier for printer driver vendors...

Code