
API
文章平均质量分 79
mingcsharp
c#开发
展开
-
C#之键盘钩子
public class Win32API//API函数声明 { public const int WH_KEYBOARD_LL = 13; public delegate int HookProcHandler(int nCode, int wParam, IntPtr lParam); [DllImport("user32.d原创 2012-08-16 18:27:56 · 1032 阅读 · 0 评论 -
C#实现网络共享
using System;using System.Runtime.InteropServices;namespace ConApp{ class RemoteShareDir { [DllImport("Netapi32.dll",CharSet=CharSet.Unicode)] private static extern uint Ne原创 2012-06-20 16:42:00 · 1077 阅读 · 0 评论 -
c# winform 打印机控制帮助类
//https://www.cnblogs.com/gordensong/p/3825462.html public class Printer { /// <summary> /// 获取打印机状态,是否离线。 /// </summary> /// <param name="print...转载 2019-04-23 19:20:21 · 1437 阅读 · 0 评论 -
身份证读取api
public class IDCardAPI { private const string ApiPath = "widapi.dll"; //private const string ApiPath = "widapi_x64.dll"; // 初始化端口,port:USB: 1001~1006, 串口:1~16 返回1成功,&l...原创 2019-05-06 15:02:35 · 2837 阅读 · 1 评论