What does every self respecting *nix person pine for when they’re using Windows? If you said su or sudo, then congratulations. Make someone you likes’ festive season by making their Windows experience slightly more like their *nix one by implementing sudo, in 1 line of code.
December 21, 2010
December 16, 2010
Everybody likes to find out new stuff about tools they use. Fortunately, one of our frequently used tools has lots of undocumented and rarely used switches and behaviour that makes it a great candidate for fun discoveries of questionable value. So without further ado, here are seven things that the Visual Studio C++ compiler lets […]
October 21, 2010
They said VS2008 couldn’t use C++0x, they were wrong.
October 4, 2010
MSDN mentions as examples that an invalid HWND and an invalid message pointer can cause GetMessage to -1 instead of 0 and positively nonzero. Being curious about such things, I wondered what exactly causes such a return.
September 21, 2010
One thing not to do lightly in a Wow64 app is to disable the file system redirection that causes accesses to the System32 folder to be routed to the SysWOW64 folder. In new native code projects, you may be able to get away with it as all the code is under your purview. In a C++/CLI module or pinvoked in a .Net app however, it really is a bad idea.
August 22, 2010
Fading between desktops is something neat that the Vista+ logon process does after you enter your logon details. Want to make an application that creates desktops and fades between them in the same way? Yes, you say? Well, you ain’t going to.
August 6, 2010
Links to every service pack from NT3.1 SP3 to Vista/Server 2008 SP2.
April 19, 2010
During the course of an application, there will usually be times when it needs to do something requiring administrative powers. If the user is a true standard user and not just a standard running admin, then any elevated process it launches will be running as a different user.
In this, and every other scenario with a program running under a secondary logon, just how do you figure out who real interactive Slim Shady is, and how do you get him to stand up?
February 5, 2010
When mimicing the interface doesn’t mean copying the functionality, a short tale of coming unstuck at the hands of boost::ptr_vector.
January 18, 2010
The heap manager, every program uses it. Whether hidden behind the CRT, COM, OLE, or the crusty old Local/GlobalAlloc, it’s at the centre of the vast majority of memory related operations. Dealing out memory and reclaiming it are no doubt its most common utilities but it has a few more tricks up its sleeve.