MSDN Magazine recently made the sample code for my App Lockdown article available online. Unfortunately the code and structure was changed accidentally, resulting in the sample code not compiling.
Download the original sample code , which should compile and work without any errors or warnings with Visual C++ .NET.
Keep in mind that you need the Platform SDK installed. The sample project assumes you have the SDK installed here: C:\Program Files\Microsoft SDK. If you have installed the Platform SDK somewhere else, simply add the path to the include and lib directories to your additional include and library paths for Visual C++.
[Update: the download on MSDN has been updated to correct the problems - thanks Steve!]
© 2004 Kenny Kerr