• 大小: 0.06M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 截屏  

资源简介

C#截取屏幕源码 可直接截屏、截取当前窗口 实例下载

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Drawing;
using System.Windows.Forms;

namespace CaptureSoft
{

    public class API
    {
        [DllImport(“user32.dll“ CharSet = CharSet.Auto)]
        public static extern IntPtr GetDesktopWindow();

        [DllImport(“user32.dll“ CharSet = CharSet.Auto)]
        public static extern IntPtr SetWindowsHookEx(int hookid HookProc pfnhook IntPtr hinst int threadid);

        public delegate IntPtr HookProc(int nCode IntPtr wParam IntPtr lParam);

        [DllImport(“kernel32.dll“ ExactSpelling = true CharSet = CharSet.Auto)]
        public static extern int GetCurrentThreadId();

        [DllImport(“user32.dll“ CharSet = CharSet.Auto Exact

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-12-19 16:23  CaptureDemo\
     文件         923  2012-12-19 16:23  CaptureDemo\CaptureDemo.sln
     文件       28672  2012-12-19 16:47  CaptureDemo\CaptureDemo.v11.suo
     目录           0  2012-12-19 16:30  CaptureDemo\CaptureSoft\
     文件        9033  2012-12-19 16:30  CaptureDemo\CaptureSoft\API.cs
     目录           0  2012-12-19 16:20  CaptureDemo\CaptureSoft\bin\
     目录           0  2012-12-19 16:47  CaptureDemo\CaptureSoft\bin\Debug\
     文件       14848  2012-12-19 16:47  CaptureDemo\CaptureSoft\bin\Debug\CaptureSoft.exe
     文件       30208  2012-12-19 16:47  CaptureDemo\CaptureSoft\bin\Debug\CaptureSoft.pdb
     文件       22472  2012-12-19 16:20  CaptureDemo\CaptureSoft\bin\Debug\CaptureSoft.vshost.exe
     文件         490  2010-03-17 22:39  CaptureDemo\CaptureSoft\bin\Debug\CaptureSoft.vshost.exe.manifest
     文件        3769  2012-12-19 16:34  CaptureDemo\CaptureSoft\CaptureSoft.csproj
     文件        1906  2012-12-19 16:46  CaptureDemo\CaptureSoft\Form1.cs
     文件        4013  2012-12-19 16:34  CaptureDemo\CaptureSoft\Form1.Designer.cs
     文件        5817  2012-12-19 16:34  CaptureDemo\CaptureSoft\Form1.resx
     目录           0  2012-12-19 16:20  CaptureDemo\CaptureSoft\obj\
     目录           0  2012-12-19 16:47  CaptureDemo\CaptureSoft\obj\Debug\
     文件         527  2012-12-19 16:47  CaptureDemo\CaptureSoft\obj\Debug\CaptureSoft.csproj.FileListAbsolute.txt
     文件         975  2012-12-19 16:47  CaptureDemo\CaptureSoft\obj\Debug\CaptureSoft.csproj.GenerateResource.Cache
     文件       14848  2012-12-19 16:47  CaptureDemo\CaptureSoft\obj\Debug\CaptureSoft.exe
     文件         180  2012-12-19 16:47  CaptureDemo\CaptureSoft\obj\Debug\CaptureSoft.Form1.resources
     文件       30208  2012-12-19 16:47  CaptureDemo\CaptureSoft\obj\Debug\CaptureSoft.pdb
     文件         180  2012-12-19 16:47  CaptureDemo\CaptureSoft\obj\Debug\CaptureSoft.Properties.Resources.resources
     文件         863  2012-12-19 16:20  CaptureDemo\CaptureSoft\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6803  2012-12-19 16:30  CaptureDemo\CaptureSoft\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2012-12-19 16:20  CaptureDemo\CaptureSoft\obj\Debug\TempPE\
     文件         492  2012-12-19 16:20  CaptureDemo\CaptureSoft\Program.cs
     目录           0  2012-12-19 16:20  CaptureDemo\CaptureSoft\Properties\
     文件        1360  2012-12-19 16:20  CaptureDemo\CaptureSoft\Properties\AssemblyInfo.cs
     文件        2874  2012-12-19 16:20  CaptureDemo\CaptureSoft\Properties\Resources.Designer.cs
     文件        5612  2012-12-19 16:20  CaptureDemo\CaptureSoft\Properties\Resources.resx
............此处省略2个文件信息

评论

共有 条评论