Showing results for December 2012 - Page 2 of 3 - The Old New Thing

Dec 19, 2012
0
0

Why doesn't SHGetKnownFolderPath return the customized path?

Raymond Chen
Raymond Chen

A customer reported that the function was not working correctly. They moved their Videos folder to a new location, but when they called , they got the old path rather than the new one. A quick check of the code they provided showed why: Um, you're passing the flag. That flag means "Tell me where this folder would have been if its location ...

Code
Dec 17, 2012
0
0

2012 års Gävlebock gick upp i brand. Igen.

Raymond Chen
Raymond Chen

The town of Gävle in Sweden erects a large straw goat every year. The Yule Goat is a Scandinavian tradition, but the Gävle goat (Gävlebocken in Swedish) is by far the most famous, or perhaps the most notorious, because it has been the center of conflict from its very beginning, and over the years since its first appearance in 1966, ...

Non-Computer
Dec 17, 2012
0
0

Like the cake, WS_EX_TRANSPARENT is a lie, or at least not the entire truth

Raymond Chen
Raymond Chen

There is an extended window style known as . Explaining what this style does is kind of difficult, but it's been on the list of future topics since 2003. Better late than never, I guess. First of all, there are two unrelated senses of transparent in play. One is visual transparency: Pixels beneath the window can show through. The other is hit-...

Code
Dec 13, 2012
0
0

Why is it so hard to write a program that requires UI Access privilege?

Raymond Chen
Raymond Chen

If you want your program to have the UI Access privilege, you have to jump through a few hoops. The program needs to be digitally signed, and it needs to go into the directory. Why is it so hard to get UI Access? Because UI Access bypasses User Interface Privilege Isolation (UIPI) security measures. The more valuable the target, the more ...

Other
Dec 12, 2012
0
0

How am I supposed to free the information returned by the GetSecurityInfo function?

Raymond Chen
Raymond Chen

The function returns a copy of the security descriptor for a kernel object, along with pointers to specific portions you request. More than once, a customer has been confused by the guidelines for how to manage the memory returned by the function. Let's look at what the function says: ppsidOwner [out, optional] A pointer to a variable that ...

Code
Dec 11, 2012
0
3

Microspeak: v-team

Raymond Chen
Raymond Chen

Virtual team. But it's a real team, nothing virtual about it.

OtherMicrospeak