Just Let It Flow

December 21, 2010

Rooting Windows

Filed under: Windows — adeyblue @ 10:15 pm

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 16, 2010

7 Questionably Useful Things Visual Studio Can Do

Filed under: Windows — adeyblue @ 10:31 pm

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

Visual Studio Goes Back to the Future

Filed under: Windows — adeyblue @ 3:26 am

They said VS2008 couldn’t use C++0x, they were wrong.

October 4, 2010

When Does GetMessage Return -1?

Filed under: Windows — adeyblue @ 4:44 am

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

Wow, Disabling Wow64 FS Redirection Can Cause Problems, Who Knew

Filed under: Wow, that was stupid — adeyblue @ 5:52 pm

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

Things Microsoft Can Do That You Can’t

Filed under: Windows — adeyblue @ 4:03 am

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

Packed With Service

Filed under: Windows — adeyblue @ 1:26 am

Links to every service pack from NT3.1 SP3 to Vista/Server 2008 SP2.

April 19, 2010

A Token Difference

Filed under: Code,Windows — adeyblue @ 11:46 pm

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

Send in the Clones

Filed under: Wow, that was stupid — adeyblue @ 3:00 am

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

A Whole Heap of Trouble

Filed under: Code,Windows — adeyblue @ 4:21 am

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.

« Newer PostsOlder Posts »

Powered by WordPress