Showing tag results for Other

May 15, 2006
Post comments count0
Post likes count1

The first word on the command line is the program name only by convention

Raymond Chen

The format of the command line returned by is "", but this is only a convention. If you pass for the to the function, then the function will treat the first word of the as the program name. However, if you pass a value for , then that string determines the program that is run, and the string passed as the is not used for that purpose. This ...

Other
May 12, 2006
Post comments count0
Post likes count1

When people mimic the display rather than the actual data

Raymond Chen

I recall a bug that we were investigating that was being caused by a registry key being set when it shouldn't have been. But when you looked at the key in Regedit, it say "(value not set)". Why were we going down the "value is set" branch? A little spelunking with the debugger revealed the reason directly: Whoever set up that registry key wrote the...

Other
May 11, 2006
Post comments count0
Post likes count0

Automatic messages when you're not in the office – the infamous OOF

Raymond Chen

"OOF" is a word you hear a lot at Microsoft. KC Lemson gave the etymology a while back (though my recollection is that it stood for "Out of Office Feature", not that my memory is good for much nowadays). Incidentally, KC is profiled on the Microsoft Careers site, though she goes under the top-secret code name "KC" there. Most people set their "...

Other
May 10, 2006
Post comments count0
Post likes count1

Solutions that don't actually solve anything

Raymond Chen

If changing a setting requires administrator privileges in the first place, then any behavior that results cannot be considered a security hole because in order to alter the setting, attackers must already have gained administrative privileges on the machine, at which point you've already lost the game. If attackers have administrative privileges,...

Other
May 9, 2006
Post comments count0
Post likes count1

Subtle ways your innocent program can be Internet-facing

Raymond Chen

Last time, we left off with a promise to discuss ways your program can be Internet-facing without your even realizing it, and probably the most common place for this is the command line. Thanks to CIFS, files can be shared across the Internet and accessed via UNC notation. This means that anybody can set up a CIFS server and create files like , an...

Other
Apr 27, 2006
Post comments count0
Post likes count1

A new scripting language doesn't solve everything

Raymond Chen

Yes, there are plenty of scripting languages that are much better than boring old batch. Batch files were definitely a huge improvement over back in 1981, but they've been showing their age for quite some time. The advanced age of boring old batch, on the other hand, means that you have millions of batch files out there that you had better not br...

Other
Apr 26, 2006
Post comments count0
Post likes count2

No good deed goes unpunished: Bug assignment

Raymond Chen

Sometimes you're better off keeping your fool mouth shut. The other day I got a piece of email requesting that I look at a crashed system because the tester believed it was another instance of bug 12345. While that may very well have been the case, bug 12345 was a kernel pool corruption bug in the object manager, something of which I kno...

OtherNo good deed goes unpunished
Apr 24, 2006
Post comments count0
Post likes count0

Troubleshooting tips are not formal product documentation

Raymond Chen

The Microsoft Knowledge Base is filled with product support tips, but be careful to understand the scope of those tips. Generally speaking, information provided in the Knowledge Base exists for troubleshooting purposes, not for program design. That's why each article lists specifically which operating system it applies to: There is no guarantee th...

Other
Apr 21, 2006
Post comments count0
Post likes count0

Then again, it might not be overclocking after all

Raymond Chen

While it's true that there's an awful lot of overclocking out there, it's also true that not everything that looks like overclocking actually is. Last Thanksgiving, I helped one of my relatives upgrade their computer by scavenging parts from another unused computer (installing more memory and replacing a broken CD drive). When I took the front pa...

Other