Showing results for January 2006 - Page 3 of 4 - The Old New Thing

Jan 16, 2006
0
0

Understanding what things mean in context: Dispatch interfaces

Raymond Chen
Raymond Chen

Remember that you have to understand what things mean in context. For example, the IActiveMovie3 interface has a method called get_MediaPlayer. If you come into this method without any context, you might expect it to return a pointer to an IMediaPlayer interface, yet the header file says that it returns a pointer to an IDispatch interface instead. ...

Code
Jan 13, 2006
0
0

France, she is, how you say, on sale!

Raymond Chen
Raymond Chen

Marketplace reports on the start of the winter sale season in France. By law, retailers are permitted sales only twice a year, so the onset of sale season generates quite a bit of shopping madness. There is also a proposal to allow more sale periods, but opponents argue that doing so would harm smaller businesses. Coming from the land of sale fat...

Non-Computer
Jan 13, 2006
0
0

Why do words beginning with "home" get treated as URLs?

Raymond Chen
Raymond Chen

Vitaly from the Suggestion Box asked (with grammatical editing), Could you explain why Windows starts the web browser if the file name passed to ShellExecute starts with "home". First thing to note is that this URL-ization happens only after the function has tried all the other possible interpretations. If a file named "homestar" is found in ...

Tips/Support
Jan 12, 2006
0
0

When web sites rely on security holes

Raymond Chen
Raymond Chen

Perhaps the biggest risk when making a change in the name of security is all the things that may have been relying on the previously-lax security settings. After all, disabling an insecure feature is easy. The hard part is disabling it while retaining compatibility with people who were relying on that feature. In the security investigations I've be...

History
Jan 11, 2006
0
0

The decoy visual style

Raymond Chen
Raymond Chen

During the development of Windows XP, the visual design team were very cloak-and-dagger about what the final visual look was going to be. They had done a lot of research and put a lot of work into their designs and wanted to make sure that they made a big splash at the E3 conference when Luna was unveiled. Nobody outside the visual styles team...

History
Jan 9, 2006
0
0

Beware the MSJ subscription scam

Raymond Chen
Raymond Chen

Stephen Toub from MSDN Magazine alerts us to the MSJ subscription scam. Somebody has been sending out (via paper mail) a fake subscription offer for Microsoft Systems Journal, a magazine that ceased publication back in 2000. Read Stephen's article for more details as well as a copy of the scam letter itself. (The address for the "publisher" is a...

Other
Jan 9, 2006
0
0

When programs assume that the system will never change, episode 3

Raymond Chen
Raymond Chen

One of the stranger application compatibility puzzles was solved by a colleague of mine who was trying to figure out why a particular program couldn't open the Printers Control Panel. Upon closer investigation, the reason became clear. The program launched the Control Panel, used to locate the window, then accessed that window's "File" menu and e...

History
Jan 6, 2006
0
0

Where do call signs come from?

Raymond Chen
Raymond Chen

In celebration of the impending return of Battlestar Galactica to the airwaves, I refer to you the blog of Major John M. Bell, one of our brave Marines stationed in Iraq. His entry from 26 Oct 2005 gives some real-world examples of military call signs and how they were chosen.

Non-Computer
Jan 6, 2006
0
0

Why do image lists and tool bars use horizontal strips if vertical is so much better?

Raymond Chen
Raymond Chen

Two people pointed out that the function and toolbars use horizontal strips even though we learned that vertical strips are much more efficient. While it's true that the images are passed to the and functions in horizontal strips, the image list and toolbar code copy them to a vertical strip. In other words, the horizontal strip is merely an...

Code
Jan 5, 2006
0
0

Converting between LCIDs and RFC 1766 language codes

Raymond Chen
Raymond Chen

Occasionally, I see someone ask for a function that converts between LCIDs (such as 0x0409 for English-US) and RFC 1766 language identifiers (such as "en-us"). The rule of thumb is, if it's something a web browser would need, and it has to do with locales and languages, you should look in the MLang library. In this case, the IMultiLanguage:...

Code