Showing results for October 2008 - Page 3 of 4 - The Old New Thing

Oct 15, 2008
0
0

Disable your wireless network card to speed up VPN’ing

Raymond Chen
Raymond Chen

As a follow-up to my tip on speeding up connecting via RAS and a SmartCard, I've been told that another trick you can do is to disable your wireless networking card before initiating the VPN connection. Wireless networking cards are a huge attack surface, and the VPN software spends a lot of time trying to secure it. I don't have a wireless netw...

Tips/Support
Oct 14, 2008
0
0

Why does Task Manager let me kill critical system processes?

Raymond Chen
Raymond Chen

Because you told it to. If you run Task Manager, highlight a critical system process like Winlogon, click End Task, and confirm, then gosh darn it, you just killed Winlogon, and the system will reboot. (Assuming, of course, that you have sufficient privileges to terminate Winlogon in the first place.) Task Manager in earlier versions of Window...

Tips/Support
Oct 13, 2008
0
0

Why does killing Winlogon take down the entire system?

Raymond Chen
Raymond Chen

Commenter Demeli asks, "Why does Winlogon take down the entire system when you attach a debugger to it? (drwtsn32 -p <pid of Winlogon>)" This question already has a mistaken in it. Running drwtsn32 on a process isn't attaching a debugger to it. Attaching a debugger would be something like , and this does work, assuming you have the necessa...

Other
Oct 10, 2008
0
0

How do I suppress the CapsLock warning on password edit controls?

Raymond Chen
Raymond Chen

One of the features added to version 6 of the shell common controls is a warning balloon that appears if CapsLock is on in a password control. Let's demonstrate. Take the scratch program, add a manifest that requests version 6 of the common controls (perhaps by using a Visual C++ extension), and add the following: BOOL OnCreate(HWND ...

Code
Oct 9, 2008
0
0

How can I increase the number of files I can open at a time?

Raymond Chen
Raymond Chen

People who ask this question invariably under-specify the question. They just say, "How can I increase the number of files I can open at a time?" without saying how they're opening them. From the operating system's point of view, the number of files you can open at a time is limited only by available resources. Call until you drop. (This remark ap...

Code
Oct 8, 2008
0
0

Why does the Disk Management snap-in report my volume as Healthy when the drive is dying?

Raymond Chen
Raymond Chen

Windows Vista displays a big scary dialog when the hard drive's on-board circuitry reports that the hardware is starting to fail. Yet if you go to the Disk Management snap-in, it reports that the drive is Healthy. What's up with that? The Disk Management snap-in is interested in the logical structure of the drive. Is the partition table consiste...

Tips/Support
Oct 7, 2008
0
0

Microspeak: Teaming

Raymond Chen
Raymond Chen

At training sessions, you don't participate in team-building exercises. No, that's old-fashioned terminology, the sort of thing those old stodgy Web 1.0 dinosaurs would say. The new word is teaming. Note: This Microspeak entry was submitted by a colleague from the UK, so it may be peculiar to the UK dialect of Microspeak. Pre-emptive clev...

Non-ComputerMicrospeak
Oct 6, 2008
0
1

Eventually, nothing is special any more

Raymond Chen
Raymond Chen

Commenter ulric suggested that two functions for obtaining the "current" window should exist, one for normal everyday use and one for "special use" when you want to interact with windows outside your process. I'd be more at ease however if the default behaviour of the API was to return HWND for the current process only, and the apps that really ...

History
Oct 3, 2008
0
0

Stories of crossing into Canada: The wedding

Raymond Chen
Raymond Chen

When I cross the border into Canada, there's almost always a story. Rarely is there an uneventful crossing. In 2007, I attended a wedding in Vancouver, BC, and here's how the conversation went at the border crossing into Canada: Me: Good morning. (As I hand over passports and green cards for everybody in the car.) Border guard: Hello. What...

Non-Computer
Oct 3, 2008
0
0

Acquire and release sound like bass fishing terms, but they also apply to memory models

Raymond Chen
Raymond Chen

Many of the normal interlocked operations come with variants called InterlockedXxxAcquire and InterlockedXxxRelease. What do the terms Acquire and Release mean here? They have to do with the memory model and how aggressively the CPU can reorder operations around it. An operation with acquire semantics is one which does not permit subsequent me...

Code