Welcome to MSDN Blogs Sign in | Join | Help

November 2004 - Posts

What's the difference between GetKeyState and GetAsyncKeyState?

GetKeyState returns the virtualized key state; GetAsyncKeyState returns the current key state.
Posted by oldnewthing | 14 Comments
Filed under:

Why doesn't the RunAs program accept a password on the command line?

Because that would be inviting a security hole.
Posted by oldnewthing | 56 Comments
Filed under:

Simple things you can do with the ShellExecuteEx function

It's the general way of executing verbs in the shell.
Posted by oldnewthing | 29 Comments
Filed under:

A sample of desktop icon text effects

So you can see what they look like.
Posted by oldnewthing | 66 Comments
Filed under:

Why can't you drop directly onto a taskbar button?

There is no GetDropTargetFromWindow function.
Posted by oldnewthing | 73 Comments
Filed under:

Why do folders like "My Pictures" come back after I delete them?

Because some program asked for it to be re-created.
Posted by oldnewthing | 47 Comments
Filed under:

The various ways of sending a message

Working through the variations of SendMessage.
Posted by oldnewthing | 50 Comments
Filed under:

Am I sorry or not?

Duelling websites clearly calls for a competition.
Posted by oldnewthing | 14 Comments

If a program and a folder have the same name, the shell prefers the program

For compatibility with versions of Windows prior to Windows 95.
Posted by oldnewthing | 26 Comments
Filed under:

Poking at diploma mills: Kennedy-Western University

Ignore the man behind the sheepskin.
Posted by oldnewthing | 41 Comments
Filed under:

How do I break an integer into its component bytes?

This is what the BitConverter class is for.
Posted by oldnewthing | 20 Comments
Filed under:

Exploiting the inattentive

Just because it comes with a measuring cup doesn't mean you have to use it.

What is this Xerox directory doing in Program Files?

Windows File Protection is keeping an eye on it.
Posted by oldnewthing | 47 Comments
Filed under:

Asking questions where the answer is unreliable anyway

Race conditions render many questions pointless.
Posted by oldnewthing | 39 Comments
Filed under:

Advantages of knowing your x86 machine code

Some machine code you may find handy in your next debugging session.
Posted by oldnewthing | 75 Comments
Filed under:

A history of GlobalLock, part 4: A peek at the implementation

Optimizing a function that needs to exist even though it doesn't do anything.
Posted by oldnewthing | 11 Comments
Filed under:

A history of GlobalLock, part 3: Transitioning to Win32

Changing everything while still appearing to change nothing.
Posted by oldnewthing | 14 Comments
Filed under:

Ein hundert Dinge, die in den Vereinigten Staaten besser bleiben

What the United States looks like from Germany.
Posted by oldnewthing | 22 Comments
Filed under:

A history of GlobalLock, part 2: Selectors

Here come the selectors...
Posted by oldnewthing | 15 Comments
Filed under:

A history of GlobalLock, part 1: The early years

Trying to squeeze everything into 320K...
Posted by oldnewthing | 33 Comments
Filed under:

Why do I sometimes see redundant casts before casting to LPARAM?

It used to be a huge difference.
Posted by oldnewthing | 25 Comments
Filed under:

What was the point of the GMEM_SHARE flag?

It controlled the lifetime of the memory block.
Posted by oldnewthing | 4 Comments
Filed under:

And to think they let me get away with it for five years

Mad dogs, Englishmen, and New Jersey voters.
Posted by oldnewthing | 23 Comments
Filed under:

What was the difference between LocalAlloc and GlobalAlloc?

It used to be a huge difference.
Posted by oldnewthing | 26 Comments
Filed under:
 
Page view tracker