Showing results for July 2011 - Page 3 of 3 - The Old New Thing

Jul 6, 2011
Post comments count0
Post likes count0

The historical struggle over control of the Portuguese language

Raymond Chen
Raymond Chen

Portugal has been going through a rough patch. Its international stature has diminished over the years, its economy has always struggled to remain competitive, the government had to accept a bailout to avoid defaulting on its debt, and on top of it all, it is losing control of its own language. In Portugal, the latest round of Portuguese spelling...

Non-Computer
Jul 6, 2011
Post comments count0
Post likes count1

Looking at the problem at the wrong level: Closing a process's stdin

Raymond Chen
Raymond Chen

A customer was having trouble manipulating the stdin stream that was given to a process. How do you simulate sending Ctrl+Z to a hidden console process programmatically? I am using and want to send the console a Ctrl+Z. I've tried sending ASCII code 26, but that doesn't work. supports Ctrl+C and Ctrl+Break but not Ctrl+Z. Here's what I'm ...

Code
Jul 5, 2011
Post comments count0
Post likes count0

Microspeak: Reporting through

Raymond Chen
Raymond Chen

I'll start with the citation from a hypothetical conversation: "This is being handled by Jonathan Swift." — Who does he report through? "He reports up through Jane Austen's org." The Microspeak term report through (or report up through) comes up often in situations where people from different groups are working together. In its most ...

OtherMicrospeak
Jul 4, 2011
Post comments count0
Post likes count0

A handful of trips through the time machine

Raymond Chen
Raymond Chen

A few trips through the time machine: In the Internet Explorer time machine video, I was struck by the remark, "Appearance-wise, very little had changed [in Internet Explorer 4] since IE3. Not much changed in terms of functionality, either." In fact, Internet Explorer 4 was probably the most significant revision of Internet Explorer in its ...

History
Jul 1, 2011
Post comments count0
Post likes count0

The list of heaps returned by GetProcessHeaps is valid when it returns, but who knows what happens later

Raymond Chen
Raymond Chen

A customer had a problem involving heap corruption. In our code, we call and then for each heap, we call to enable the low fragmentation heap. However, the application crashes due to an invalid heap handle. My question is, why do we need to allocate an array of size 1025 even though we pass 1024 to ? Ha, faked you out with that question...

Code