/Engine/Source/Editor/UnrealEd/Public/EditorViewportClient.h
Takes the screenshot capture, this is called by keybinded events as well InputTakeScreenshot
void TakeScreenshot ( [FViewport](API\Runtime\Engine\FViewport) * Viewport, bool bInvalidateViewport )