Showing archive results for 2010

Sep 3, 2010
Post comments count0
Post likes count1

What happens to a named object when all handles to it are closed?

Raymond Chen

A customer had a question about named kernel objects: I understand that handles in a process if leaked will be destroyed by the kernel when the process exits. My question would be around named objects. Would named objects hold their value indefinitely? If I run a small utility app to increment a named counting semaphore, the count of that named...

Code
Sep 2, 2010
Post comments count0
Post likes count1

It rather involved being on the other side of this airtight hatchway: If you grant users full control over critical files, then it's not the fault of the system for letting users modify them

Raymond Chen

Today's dubious security vulnerability is another example of If you reconfigure your computer to be insecure, don't be surprised that there's a security vulnerability. This example comes from by an actual security vulnerability report submitted to Microsoft: I have found a critical security vulnerability that allows arbitrary elevation to admin...

Other
Sep 1, 2010
Post comments count0
Post likes count1

Yes, the Windows 7 beta wallpaper was a picture of a betta fish

Raymond Chen

It wasn't long before people realized that the fish in the default wallpaper for the Windows 7 beta was a betta fish. This was intended to be a cute little pun, though some people took the semiotics to an extreme, Dude, this is Windows, not The Da Vinci Code. It's not like the people who chose the wallpaper are using a backchannel to pass se...

History
Aug 31, 2010
Post comments count0
Post likes count0

Be on the alert: Mainstream and alternative medicines mixed together on the store shelves, not clearly distinguished

Raymond Chen

I was in the supermarket looking for cold medicine, and as is my wont, I like to read the fine print before choosing a product. Most of the products listed their active ingredients in the form Active Ingredient: XYZ 150mg. But there were a few that said Active Ingredient: XYZ 6X. What is this 6X? How much is 6X? Six times what? A closer...

Non-Computer
Aug 31, 2010
Post comments count0
Post likes count1

Shutdown reason codes are reason codes, not error codes or HRESULTs

Raymond Chen

A customer liaison asked the following question on behalf of his customer: My customer is finding that their Windows Server 2003 system has restarted, and they want to find out why. I've found some event log similar to the ones below, but I don't know what error code is. I've searched the Knowledge Base but couldn't find anything relevant. Ple...

Tips/Support
Aug 30, 2010
Post comments count0
Post likes count1

On LockWindowUpdate: Locking the taskbar

Raymond Chen

Andy Visser posted to the Suggestion Box something that wasn't so much a suggestion as a comment, presumably to get around the fact that comments on the original item had been closed: "I've found that the start bar seems to behave like it may be using this call incorrectly. I put my start bar on the left hand side of the screen. When I try to resiz...

Other
Aug 26, 2010
Post comments count0
Post likes count1

How do I recover the window handle passed to ShellExecute?

Raymond Chen

A customer had the following question: I'm using the function to launch a new process and am passing the handle to my application's main window as the parameter. From the new process, I want to get information from the old process, and to do that, I need the window handle. How can I recover that window handle from the new process? You can't. ...

Code
Aug 25, 2010
Post comments count0
Post likes count0

What young children do when they hear a foreign language

Raymond Chen

My young nieces live in a Chinese-speaking household, which is great for them because it means that when they grow up, they will be fluent in two languages. But it makes things a bit tricky at the beginning. The niece who is the subject of this story had just turned two at the time this story takes place, so her language skills even in Chinese are...

Non-Computer