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

Dec 20, 2011
0
0

Microspeak: Offline (noun)

Raymond Chen
Raymond Chen

Sure, any noun can be verbed, and any verb can be nouned. But today, we're going to noun an adjective. I have no written citations of this usage; the only report was via a colleague who overheard it in a hallway conversion. I had some offlines with Fred about that. In Microspeak, offline is an adjective which means "outside this meeting." In or...

Non-ComputerMicrospeak
Dec 19, 2011
0
0

Paint messages will come in as fast as you let them

Raymond Chen
Raymond Chen

There is a class of messages which are generated on demand rather than explicitly posted into a message queue. If you call or and the queue is empty, then the window manager will look to see if one of these generated-on-demand messages is due, messages like , , and . Neil wonders, "In that program that called 100,000 times, how many paint messa...

Code
Dec 16, 2011
0
0

Programmatically controlling which handles are inherited by new processes in Win32

Raymond Chen
Raymond Chen

In unix, file descriptors are inherited by child processes by default. This wasn't so much an active decision as it was a consequence of the fork/exec model. To exclude a file descriptor from being inherited by children, you set the flag on the file descriptor. Win32 sort of works like that, but backwards, and maybe a little upside-down. And i...

Code
Dec 15, 2011
0
0

Not even making it to the airtight hatchway: Execution even before you get there

Raymond Chen
Raymond Chen

Today's dubious security vulnerability comes from somebody who reported that the function had a security vulnerability which could lead to arbitrary code execution. This is a serious issue, but reading the report made us wonder if something was missing. According to the report, this sample program illustrates that the function will execute wh...

Other
Dec 14, 2011
0
0

The peculiar cadence of executive mail messages

Raymond Chen
Raymond Chen

When there's a piece of mail sent from a senior executive to the entire product team, it tends to follow a set pattern. It starts out with a history of Group X and commends them on what a great job they have been doing. Congratulating Group X is not the actual purpose of the message; it's just part of the template. Once you've seen enough...

Non-Computer
Dec 13, 2011
0
0

Online gift ordering + enthusiastic kids at the keyboard + Unicode, wait… Unicode?

Raymond Chen
Raymond Chen

I was completing an online gift order for my young nephew's birthday, and I was in the middle of typing Happy birthday into the gift card message when an enthusiastic child reached for the keyboard and held down the "a" key as I typed the final "a" in "birthday". I wanted to capture the spontaneous enthusiasm in the gift tag, but I had no idea wh...

Other
Dec 12, 2011
0
0

What is the API for accessing content on SkyDrive?

Raymond Chen
Raymond Chen

The last time I mentioned programmatic access to SkyDrive was last June, where I noted that the interface was given the confusing name Messenger Connect. At least now they renamed it to Live Connect, which is slightly less confusing. The SkyDrive folks have been pretty busy lately. A few days ago, Dare Obasanjo announced a new Live Connect SDK,...

Code
Dec 12, 2011
0
0

How can I tell whether a window is modal?

Raymond Chen
Raymond Chen

A customer wanted a way to determine whether a particular window is modal. They listed a few methods they had tried but found that it didn't work and asked for assistance. As Eric Lippert is fond of saying, "First, write your spec." Until you know what you want, you won't know how to get it. First, you need to define what you mean by a modal w...

Code
Dec 8, 2011
0
0

What does it mean when my program exits with the message "This application has requested the Runtime to terminate it in an unusual way"?

Raymond Chen
Raymond Chen

You're running your program, and then it suddenly exits with the message This application has requested the Runtime to terminate it in an unusual way. What happened? That message is printed by the C runtime function , the same function that also causes your program to terminate with exit code 3. Your program might call explicitly, or it m...

Code