I am looking for a way to capture a screenshot on the iPhone with the top status bar included, I am currently using the following code:
UIGraphicsBeginIm
You can get the entire contents of the screen by calling the private API UIGetScreenImage. See my previous answer to a similar question for details.
UIGetScreenImage