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

Aug 18, 2011
0
0

Ow, I'm too safe!

Raymond Chen
Raymond Chen

One of my friends is a geek, and, naturally, fully researches everything he does, from cement pouring to bicycle parts, perhaps a bit obsessively. He made sure to get five-point restraints for his children's car seats, for example. And he naturally tightens the belts snugly when putting his children in the car. At one point, as he was strapping h...

Non-Computer
Aug 18, 2011
0
0

Why does IFileOperation skip junctions even though I passed FOFX_NOSKIPJUNCTIONS?

Raymond Chen
Raymond Chen

The method accepts a number of flags to modify the file operation, among them today's subject . A customer reported that they couldn't get this flag to work: Whether they set it or not, the skipped over file system junctions. The term junction evolved two independent different meanings. The shell team invented the term shell namespace junction ...

Other
Aug 17, 2011
0
0

Starting up inside the box

Raymond Chen
Raymond Chen

the shell team received two customer questions about a month apart which seemed unrelated but had the same root cause. I found that in Windows Vista, the command is ten times slower than it was in Windows XP. What is the source of this slowdown, and how can I fix it? We have an application which takes a very long time to start up on Window...

Tips/Support
Aug 16, 2011
0
0

Why does creating a shortcut to a file change its last-modified time… sometimes?

Raymond Chen
Raymond Chen

A customer observed that sometimes, the last-modified timestamp on a file would change even though nobody modified the file, or at least consciously took any steps to modify the file. In particular, they found that simply double-clicking the file in Explorer was enough to trigger the file modification. It took a while to puzzle out, but here's wha...

Tips/Support
Aug 15, 2011
0
0

Why does the runas command require its command line to be quoted?

Raymond Chen
Raymond Chen

Commenter teo complained that the command requires its command line to be quoted. Well, if you think about it, why single out ? Pretty much all programs require their command line to be quoted if they contain special characters (like spaces that you want to be interpreted as part of a file name instead of as an argument separator). The command ...

Other
Aug 11, 2011
0
0

The ways people mess up IUnknown::QueryInterface, episode 4

Raymond Chen
Raymond Chen

One of the rules for is so obvious that nobody even bothers to state it explicitly as a rule: "If somebody asks you for an interface, and you return , then the pointer you return must point to the interface the caller requested." (This feels like the software version of dumb warning labels.) During compatibility testing for Windows Vista,...

Code
Aug 9, 2011
0
0

Why does the Shift+F10 menu differ from the right-click menu?

Raymond Chen
Raymond Chen

The Shift+F10 key is a keyboard shortcut for calling up the context menu on the selected item. but if you look closely, you might discover that the right-click menu and the Shift+F10 menu differ in subtle ways. Shouldn't they be the same? After all, that's the point of being a keyboard shortcut, right? Let's set aside the possibility that a progr...

Tips/Support