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

Jan 5, 2006
0
0

The first rule about knit club…

Raymond Chen
Raymond Chen

Knit Club (direct link), a student movie from Western Washington University, wherein each residence hall floor was given less than a week to produce a five-minute movie. Note: Not be confused with Pillow Fight Club (photos from the one-hour fight). Unfortunately, the original Pillow Fight Club page is gone, but the first rule of Pillow Fight Cl...

Non-Computer
Jan 4, 2006
0
0

Don't underestimate the resourcefulness of people trying to be annoying

Raymond Chen
Raymond Chen

TechNet Magazine's January • February 2006 issue is now available, including a short article from me on the resourcefulness of people trying to be annoying. The issue also has an article on how to use the Volume Shadow Copy Service which I mentioned a few months ago. (And if you had read that posting from last September, you'll...

Other
Jan 4, 2006
0
0

Taxes: Detecting session state changes, such as a locked workstation

Raymond Chen
Raymond Chen

Another developer tax is playing friendly with Fast User Switching and Terminal Services. When the workstation is locked or disconnected, you should turn off non-essential timers, minimize background activities, and generally send your program into a quiet state. If you already used the technique of painting only when your window is visible on th...

Code
Jan 3, 2006
0
0

Taxes: Remote Desktop Connection and painting

Raymond Chen
Raymond Chen

An increasingly important developer tax is supporting Remote Desktop Connection properly. When the user is connected via a Remote Desktop Connection, video operations are transferred over the network connection to the client for display. Since networks have high latency and nowhere near the bandwidth of a local PCI or AGP bus, you need to adapt to...

Code
Jan 3, 2006
0
0

The world's slowest RET instruction

Raymond Chen
Raymond Chen

Occasionally, somebody will ask I'm debugging a hang, and I see that many threads are stuck at a RET instruction. When I try to trace one instruction from that thread, the trace breakpoint never fires. It's as if the RET instruction itself is wedged! I've found the world's slowest RET instruction. (A common variation on this theme is that the th...

Code
Jan 3, 2006
0
0

2005 end-of-year link blowout sale

Raymond Chen
Raymond Chen

A quick list of links amassed over the past year. Not quite worth a posting on their own, but together they might mean something. [While Raymond was on vacation, the autopilot stopped working due to a power outage. This entry has been backdated.]

Other
Jan 3, 2006
0
0

On the abuse of properties

Raymond Chen
Raymond Chen

One thing that I see occasionally is the abuse of property syntax. IDispatch and CLR objects (and C++ objects if you want to avail yourself of a Microsoft-specific extension) support "properties", which syntactically look like fields but internally are treated as a pair of methods ("get" and "put"). An important principle is that given an object ...

Code
Jan 3, 2006
0
0

There's more to calling a function than just getting the types to match

Raymond Chen
Raymond Chen

Here's a classic novice error. You want to call a function, say GetBinaryType. What should you write for those question marks? Well, the prototype says that the second parameter is an LPDWORD, so let's pass it one. Hm, but that crashes. Well, maybe we can pass it an LPDWORD this way: Hm, that still crashes. Oh wait, it's because of the...

Code
Jan 3, 2006
0
0

If one certification is good, more must be better

Raymond Chen
Raymond Chen

In the discussion of driver signing, commenter ATZ Man suggested: Further, Microsoft should allow orgs that are peers of WHQL [to] certify drivers and allow drivers to obtain certs from any such org or set of such orgs as they choose. Over time users would know which orgs were on the ball and which had agendas. Would they? Let's take a real-...

Other
Jan 3, 2006
0
0

Why did the Windows 95 CD have extra fun stuff?

Raymond Chen
Raymond Chen

Why did the Windows 95 CD have extra fun stuff, like the Good Times and Buddy Holly music videos, the Rob Roy trailer, and the cartoons by Bill Plympton? Because it was fun! Why does one have to justify having fun? In addition to the multimedia fun, there was also video game fun, with the addition of Pinball and the mercifully-forgotten hovercra...

History