Showing tag results for History

Dec 8, 2003
Post comments count0
Post likes count0

If FlushInstructionCache doesn't do anything, why do you have to call it?

Raymond Chen
Raymond Chen

If you look at the implementation of FlushInstructionCache on Windows 95, you'll see that it's just a return instruction. It doesn't actually do anything. So why do you have to call it? Because the act of calling it is the whole point. The control transfers implicit in calling a function suffice to flush the instruction cache on a Pentium. The fu...

History
Dec 5, 2003
Post comments count0
Post likes count0

Why do I have to return this goofy value for WM_DEVICECHANGE?

Raymond Chen
Raymond Chen

To deny a device removal query, you must return the special value BROADCAST_QUERY_DENY, which has the curious value 0x424D5144. What's the story behind that? Well, we first tried following the pattern set by WM_QUERYENDSESSION, where returning TRUE allows the operation to proceed and returning FALSE causes the operation to fail. But when we did t...

History
Dec 1, 2003
Post comments count0
Post likes count0

What are these strange values returned from GWLP_WNDPROC?

Raymond Chen
Raymond Chen

GetWindowLongPtr(hwnd, GWLP_WNDPROC) [or GetWindowLong(hwnd, GWL_WNDPROC) if you haven't yet made your code 64-bit compatible] is supposed to return the current window procedure. Why do I sometimes get wacko values? Because sometimes "you can't handle the truth". If the current window procedure is incompatible with the caller of GetWindowLongPtr,...

History
Nov 21, 2003
Post comments count0
Post likes count1

Why isn't Fast User Switching enabled on domains?

Raymond Chen
Raymond Chen

Windows XP added a new feature called Fast User Switching which lets you switch between users without having to log off. But this feature is disabled if your computer is joined to a domain. Why? There were several reasons, none of them individually insurmountable, but they added up to quite a lot of work for something IT administrators weren't ev...

History
Nov 17, 2003
Post comments count0
Post likes count5

More stories of bad hardware

Raymond Chen
Raymond Chen

My favorite bad CD-ROM drive from Windows 95 was one where the manufacturer cut a corner to save probably twenty-five cents. The specification for CD-ROM controllers indicates that each can host up to four CD-ROM drives. When you talk to the card, you specify which drive you wish to communicate with. The manufacturer of a certain brand of contr...

History
Nov 3, 2003
Post comments count0
Post likes count1

The long and sad story of the Shell Folders key

Raymond Chen
Raymond Chen

When you are attempting to architect an operating system, backwards compatibility is one of the ones you just have to accept. But when new programs rely on app hacks designed for old programs, that makes you want to scream.

CodeHistory
Oct 30, 2003
Post comments count0
Post likes count0

I thought you said people don't know how to read analog clocks

Raymond Chen
Raymond Chen

I had mentioned in passing in a comment on 10/10/2003 10:07PM that one of the reasons the clock on the taskbar isn't analog is that some disturbingly high percentage of people (30%? 40%? I forget exactly) do not know how to read an analog clock. Yet there is is in the Longhorn sidebar. What g...

History
Oct 28, 2003
Post comments count0
Post likes count0

When vendors insult themselves

Raymond Chen
Raymond Chen

During Windows 95, when we were building the Plug and Play infrastructure, we got an angry letter from a hardware vendor (who shall remain nameless) complaining that we intentionally misspelled their company name in our INF files in a manner that made their company name similar to an insulting word. ...

History