调用微信截图功能c# 截图带扩展名

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            PrScrn();

        }


        [DllImport("PrScrn.dll", EntryPoint = "PrScrn")]
        static extern int PrScrn();
    }
}

  

创建用控制台项目,属性中改成 输出为 windows应用程序

下载二进制

原文地址:https://www.cnblogs.com/ipub520/p/7061120.html