C# 制作外挂常用的APIC#做外挂的常用API,本人用了很久,基本没发现问题usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Runtime.InteropServices;//这个肯定要的namespaceWindowsapplication1{classwin32API{publicconstintOPEN_PROCESS_ALL=2035711;publicconstintPAGE_READWRITE=4;publicconstintPROCESS_CREATE_THREAD=2;publicconstintPROCESS_HEAP_ENTRY_BUSY=4;publicconstintPROCESS_VM_OperaTION=8;publicconstintPROCESS_VM_READ=256;publicconstintPROCESS_VM_WRITE=32;privateconstintPAGE_EXECUTE_READWRITE=0x4;privateconstintMEM_COMMIT=4096;privateconstintMEM_RELEASE=0x8000;privateconstintMEM_DECOMMIT=0x4000;privateconstintPROCESS_ALL_access=0x1F0FFF;//查找窗体[DllImport("User32.dll",EntryPoint="FindWindow")]publicexternstaticIntPtrFindWindow(stringlpClassName,stringlpWindowName);//得到目标进程句柄的函数[DllImport("USER32.DLL")]