The Old New Thing

An easy way to determine whether you have a particular file permission

Sometimes you might want to determine whether you can do something without actually doing it. For example, you might want to know whether you have a particular permission in a directory, say permission to delete files from it. One way is to retrieve the ACL and then check whether the current user has the desired permission. The AccessCheck ...

My first death threat

Actual feedback submitted to the microsoft.com web site many years ago. id: 13726 Date: 1996-07-29 17:27:41.997 Name: *********** Email: ************* Area: Windows 95 Comments: PLEASE read this entire email as it is quite serious. I just discovered today that in the Windows 95 operating system, there are no switches, command line...

Letter carriers rebel

Letter carriers in both Sweden and Scotland have taken to refusing to deliver political advertisements from parties they personally find offensive. This isn't quite the stunning synchronicity as it may appear at first glance: Europe is gearing up for a continent-wide election...

What does SHGFI_USEFILEATTRIBUTES mean?

One of the flags you can pass to the SHGetFileInfo function is SHGFI_USEFILEATTRIBUTES. What does this flag mean? It means, "Do not access the disk. Pretend that the file/directory exists, and that its file attributes are what I passed as the dwFileAttributes parameter. Do this regardless of whether it actually exists or not." You...