Showing archive results for 2007

Nov 6, 2007
Post comments count0
Post likes count0

VirtualLock only locks your memory into the working set

Raymond Chen

When you lock memory with it locks the memory into your process's working set. It doesn't mean that the memory will never be paged out. It just means that the memory won't be paged out as long as there is a thread executing in your process, because a process's working set need be present in memory only when the process is actually executing. (Ear...

Code
Nov 5, 2007
Post comments count0
Post likes count2

Why do we even have the DefWindowProc function?

Raymond Chen

Some time ago, I looked at two ways of reimplementing the dialog procedure (method 1, method 2). Commenter "8" wondered why we have a function at all. Couldn't window procedures have followed the dialog box model, where they simply return to indicate that they want default processing to occur? Then there would be no need to export th...

Code
Nov 1, 2007
Post comments count0
Post likes count0

Buy an island, or a country, or at least a replica of one

Raymond Chen

Off the coast of Dubai, Al Nakheel Properties is building a chain of 300 islands in the shape of the world. Learn more about the project by watching their video. The growing artificiality and commercialization of Dubai concerns some people, however. Locals joke that Dubai's call to prayer is "Attention shoppers!" The naysayers can cluck their...

Non-Computer
Nov 1, 2007
Post comments count0
Post likes count1

Why does GetDiskFreeSpaceEx return the wrong amount of free space?

Raymond Chen

One customer discovered that viewing the properties of a drive from Explorer shows the amount of disk free space significantly lower than the actual amount of free disk space as resported by the disk management snap-in. The command prompt agrees with Explorer and shows the incorrect result. What's going on? Not surprisingly, both Explorer and the ...

Code
Oct 31, 2007
Post comments count0
Post likes count0

The Acorn Wand, key to a magical puzzle hunt

Raymond Chen

Puzzle hunts are a popular pastime at Microsoft. For the Microsoft Intern Puzzleday 2007, the puzzle design team decided upon a Harry Potter theme. Competitors ("students") formed teams ("study groups") as they attended classes at the Hogwarts campus at Microsoft. Of course, since this is Harry Potter, you need a magic wand, so the puzzle design te...

Non-Computer
Oct 31, 2007
Post comments count0
Post likes count1

It rather involved being on the other side of this airtight hatchway: Local execution

Raymond Chen

The security response team gets all sorts of reports, and a good number of them are from people who just get excited that they were able to do something unusual, even if it isn't a security vulnerability. Attached please find a security exploit in the ABC ActiveX control. If you save this Web page to a file and double-click it, it <does somethi...

Other
Oct 30, 2007
Post comments count0
Post likes count0

Email tips from Adam Phillabaum

Raymond Chen

Adam Phillabaum of Doing Boeing (who kept the name even though he left Boeing and now works for PayScale) has his own tips for writing email. Recommended reading.

Non-Computeremail
Oct 30, 2007
Post comments count0
Post likes count1

You can't change it, but you can hide it and add something that looks like it

Raymond Chen

Today we have another case of "Now you have two problems." The corporate customer already solved their problem halfway and needed help on the other half. The impossible half. We want to change the Add or Remove Programs icon in the Windows XP control panel so it runs our custom install management program instead of running the one built into ...

Tips/Support
Oct 29, 2007
Post comments count0
Post likes count1

Why doesn't Explorer show recursive directory size as an optional column?

Raymond Chen

"Why start up another program to see folder sizes, when they should just be right there, in Explorer, all the time?" The same reason \\ does not autocomplete to all the computers on the network: Because it would destroy corporate networks. Showing folder sizes "all the time" means that when you open, say, the root of a large server, Explorer wou...

History