Waiting for PrintScreen to be pressed

This is a discussion on Waiting for PrintScreen to be pressed within the Windows Programming forums, part of the Platform Specific Boards category; I've tested using MSDN but I haven't had any luck there.
What I want to do is to wait for ...

do some reading on using SetWindowsHookEx and installing a keyboard hook, there are some good articles on doing stuff like this on codeproject.com, you will need to create a DLL that contains the hook routine and then an exe to start it all off.