0

アプリケーションで使用する Windows 7 ログオン画面 (またはユーザー切り替え画面) のプリントスクリーンを取得しようとしています。

私は実際にそれを行う方法を知りません。誰でも私を助けることができますか?

4

1 に答える 1

5

ユーザーがログに記録されていなくても実行できるように、Windows サービスを作成する必要があります。この記事を参照してください。詳細については、MSDN を参照してください。

スクリーンショットの場合:

ScreenCapture sc = new ScreenCapture();
// capture entire screen, and save it to a file
Image img = sc.CaptureScreen();
// display image in a Picture control named imageDisplay
this.imageDisplay.Image = img; 
// capture this window, and save it
sc.CaptureWindowToFile(this.Handle,"C:\\temp2.gif",ImageFormat.Gif);

ソース: http://www.developerfusion.com/code/4630/capture-a-screen-shot/

于 2012-12-29T11:44:32.953 に答える