开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 7810|回复: 24
打印 上一主题 下一主题
收起左侧

[支持库源码] C#版的 精易模块中所有的api和相关的结构体的声明

[复制链接]
结帖率:100% (2/2)
跳转到指定楼层
楼主
发表于 2019-5-1 15:43:45 | 只看该作者 |只看大图 回帖奖励 |正序浏览 |阅读模式   安徽省宿州市
分享源码
界面截图:
是否带模块: 纯源码
备注说明: -
本帖最后由 墨盒飞飞 于 2019-5-1 15:45 编辑
大家在使用c#编写程序的时候 ,有时候可能会觉得精易模块中的功能比较好用 想哪来直接使用,那我一般有2种方法 实现
第一种 直接用易语言封装 成dll 调用
第二种 是按照精易模块 自己编写一遍



第一种方法比较快 但是 类型转换实在是比较单疼 各种问题
第二种 也麻烦 要参照着写 各种函数声明啊 什么玩意的
今天主要就是解决第二种
干脆就是把 精易模块中的所有的api都给声明出来


这个源码呢就是我慢慢搞出来的 主要就是写代码 翻译
翻译完了 还是有很多的错误,然后自己手动慢慢改的


如果你在使用的过程中出错了 那肯定是我的代码有问题 (现在基本上就是没有语法错误)
自己看一下在改改 ,很好改的.
主要就太多了 没法一个个都改过来.
所以不管了
而且 win32api 中所需要的 一些类型 c# 是有相关的定义的
比如 guid 在c#中 是有定义的
可以直接把  源码中的guid 直接删除 然后引用 c# 中的guid就可以了

比如这样
下面是源码
直接复制就可以了
隐藏的是翻译机的源码 代码写的太丑了 还有中文变量名 这就算遮下丑

你如你觉得这源码帮到你的话 请给我个好评呗
易语言转net.zip (33.27 KB, 下载次数: 55)
  1. using System;
  2. using System.Drawing.Imaging;
  3. using System.Runtime.InteropServices;
  4. using System.Text;
  5. using Form_;

  6. namespace 易语言转net
  7. {
  8.     public class api
  9.     {
  10.         //        public struct 剪辑版数据
  11.         //        {
  12.         //            public int 剪辑版数据格式;
  13.         //            public string 文本型数据;
  14.         //            public int 字节集长度;
  15.         //            public 字节集 字节集数据;
  16.         //        }

  17.         public struct IP_ADAPTER_INFO_彗星
  18.         {
  19.             public int Next;
  20.             public int ComboIndex;
  21.             public byte AdapterName;
  22.             public byte Description;
  23.             public int AddressLength;
  24.             public byte Address;
  25.             public int Index;
  26.             public int Type;
  27.             public int DhcpEnabled;
  28.             public int CurrentIpAddress;
  29.             public IP_ADDR_STRING IpAddressList;
  30.             public IP_ADDR_STRING GatewayList;
  31.             public IP_ADDR_STRING DhcpServer;
  32.             public int HaveWins;
  33.             public IP_ADDR_STRING PrimaryWinsServer;
  34.             public IP_ADDR_STRING SecondaryWinsServer;
  35.             public long LeaseObtained;
  36.             public long LeaseExpires;
  37.         }

  38.         public struct IconDirEntry
  39.         {
  40.             public byte bWidth;
  41.             public byte bHeight;
  42.             public byte bColorCount;
  43.             public byte bReserved;
  44.             public short wPlanes;
  45.             public short wBitCount;
  46.             public int dwBytesInRes;
  47.             public int dwImageOffset;
  48.         }

  49.         public struct WINDOWPOS
  50.         {
  51.             public int hwnd;
  52.             public int hwndInsertAfter;
  53.             public int x;
  54.             public int y;
  55.             public int cx;
  56.             public int cy;
  57.             public int flags;
  58.         }

  59.         public struct NMHDR
  60.         {
  61.             public int hWndFrom;
  62.             public int idFrom;
  63.             public int code;
  64.         }

  65.         public struct NMCUSTOMDRAW
  66.         {
  67.             public NMHDR hdr;
  68.             public int dwDrawStage;
  69.             public int hdc;
  70.             public 矩形信息 rc;
  71.             public int dwItemSpec;
  72.             public int uItemState;
  73.             public int lItemlParam;
  74.         }

  75.         public struct NMLVCUSTOMDRAW
  76.         {
  77.             public NMCUSTOMDRAW nmcd;
  78.             public int clrText;
  79.             public int clrTextBk;
  80.             public int iSubItem;
  81.             public int dwItemType;
  82.             public int clrFace;
  83.             public int iIconEffect;
  84.             public int iIconPhase;
  85.             public int iPartId;
  86.             public int iStateId;
  87.             public 矩形信息 rcText;
  88.             public int uAlign;
  89.         }

  90.         public struct IP_ADAPTER_INFO
  91.         {
  92.             public int Next;
  93.             public int ComboIndex;
  94.             public byte AdapterName;
  95.             public byte Description;
  96.             public int AddressLength;
  97.             public byte Address;
  98.             public int Index;
  99.             public int Type;
  100.             public int DhcpEnabled;
  101.             public int CurrentIpAddress;
  102.             public IP_ADDR_STRING IpAddressList;
  103.             public IP_ADDR_STRING GatewayList;
  104.             public IP_ADDR_STRING DhcpServer;
  105.             public bool HaveWins;
  106.             public IP_ADDR_STRING PrimaryWinsServer;
  107.             public IP_ADDR_STRING SecondaryWinsServer;
  108.             public int LeaseObtained;
  109.             public int LeaseExpires;
  110.         }

  111.         public struct LVINFO
  112.         {
  113.             public int 窗口句柄;
  114.             public object 对象;
  115.         }

  116.         public struct TCITEM
  117.         {
  118.             public int mask;
  119.             public int dwState;
  120.             public int dwStateMask;
  121.             public string pszText;
  122.             public int cchTextMax;
  123.             public int iImage;
  124.             public int lParam;
  125.         }

  126.         public struct UNICODE_STRING
  127.         {
  128.             public short 长度;
  129.             public short 最大长度;
  130.             public int 缓冲区;
  131.         }

  132.         public struct SYSTEM_PROCESSES
  133.         {
  134.             public int NextEntryDelta;
  135.             public int ThreadCount;
  136.             public int Reserved1;
  137.             public long CreateTime;
  138.             public long UserTime;
  139.             public long KernelTime;
  140.             public UNICODE_STRING ProcessName;
  141.             public int BasePriority;
  142.             public int ProcessID;
  143.             public int InheritedFromProcessId;
  144.             public int HandleCount;
  145.             public int SessionId;
  146.             public int Reserved2;
  147.             public VM_COUNTERS VmCounters;
  148.             public int PrivatePageCount;
  149.             public IO_COUNTERSEX IoCounters;
  150.             public SYSTEM_THREADS Threads;
  151.         }

  152.         public struct VM_COUNTERS
  153.         {
  154.             public int PeakVirtualSize;
  155.             public int VirtualSize;
  156.             public int PageFaultCount;
  157.             public int PeakWorkingSetSize;
  158.             public int WorkingSetSize;
  159.             public int QuotaPeakPagedPoolUsage;
  160.             public int QuotaPagedPoolUsage;
  161.             public int QuotaPeakNonPagedPoolUsage;
  162.             public int QuotaNonPagedPoolUsage;
  163.             public int PagefileUsage;
  164.             public int PeakPagefileUsage;
  165.         }

  166.         public struct IO_COUNTERSEX
  167.         {
  168.             public long ReadOperationCount;
  169.             public long WriteOperationCount;
  170.             public long OtherOperationCount;
  171.             public long ReadTransferCount;
  172.             public long WriteTransferCount;
  173.             public long OtherTransferCount;
  174.         }

  175.         public struct SYSTEM_THREADS
  176.         {
  177.             public long KernelTime;
  178.             public long UserTime;
  179.             public long CreateTime;
  180.             public int WaitTime;
  181.             public int StartAddress;
  182.             public CLIENT_ID ClientId;
  183.             public int Priority;
  184.             public int BasePriority;
  185.             public int ContextSwitchCount;
  186.             public int State;
  187.             public int WaitReason;
  188.         }

  189.         //        public struct 菜单消息
  190.         //        {
  191.         //            public string 名称;
  192.         //            public bool 是否插入;
  193.         //            public 子程序指针 事件;
  194.         //        }

  195.         //        public struct 菜单结构
  196.         //        {
  197.         //            public int 窗口句柄;
  198.         //            public string 菜单标题;
  199.         //            public int 插入位置;
  200.         //            public int 原回调地址;
  201.         //            public 菜单消息 菜单数据;
  202.         //        }

  203.         public struct 精易_任务栏缩略图按钮
  204.         {
  205.             public int 掩码;
  206.             public int ID;
  207.             public int 图片索引;
  208.             public int 图标;
  209.             public string 提示文本;
  210.             public int 按钮风格;
  211.         }

  212.         public struct THUMBBUTTON
  213.         {
  214.             public int dwMask;
  215.             public int iId;
  216.             public int iBitmap;
  217.             public int hIcon;
  218.             public byte szTip;
  219.             public int dwFlags;
  220.         }

  221.         public struct PDISPLAY_DEVICEA
  222.         {
  223.             public int cb;
  224.             public byte DeviceName;
  225.             public byte DeviceString;
  226.             public int StateFlags;
  227.             public byte DeviceID;
  228.             public byte DeviceKey;
  229.         }

  230.         public struct MOUSEHOOKSTRUCT
  231.         {
  232.             public POINT pt;
  233.             public int mouseData;
  234.             public int flags;
  235.             public int time;
  236.             public int dwExtraInfo;
  237.         }

  238.         public struct POINT
  239.         {
  240.             public int X;
  241.             public int Y;
  242.         }

  243.         public struct HashMap_Str_Str_键值型
  244.         {
  245.             public int 散列值;
  246.             public string 键;
  247.             public int 值;
  248.         }

  249.         public struct HashMap_Str_Str_节点型
  250.         {
  251.             public HashMap_Str_Str_键值型 键值链数组;
  252.         }

  253.         public struct LIST_ENTRY64
  254.         {
  255.             public long Flink;
  256.             public long Blink;
  257.         }

  258.         public struct LDR_DATA_TABLE_ENTRY64
  259.         {
  260.             public LIST_ENTRY64 InLoadOrderLinks;
  261.             public LIST_ENTRY64 InMemoryOrderLinks;
  262.             public LIST_ENTRY64 InInitializationOrderLinks;
  263.             public long DllBase;
  264.             public long EntryPoint;
  265.             public long SizeOfImage;
  266.             public UNICODE_STRING64 FullDllName;
  267.             public UNICODE_STRING64 BaseDllName;
  268.         }

  269.         public struct 模块信息
  270.         {
  271.             public string 模块句柄;
  272.             public string 模块路径;
  273.         }

  274.         public struct 位图结构_
  275.         {
  276.             public int bmType;
  277.             public int 位图宽度;
  278.             public int 位图高度;
  279.             public int bmWidthBytes;
  280.             public int bmPlanes;
  281.             public int bmBitsPixel;
  282.             public int bmBits;
  283.         }

  284.         public struct TRAYDATAEX
  285.         {
  286.             public int hWnd;
  287.             public int idCommand;
  288.             public string strFilePath;
  289.             public string strTile;
  290.         }

  291.         public struct TRAYDATA
  292.         {
  293.             public long hWnd;
  294.             public int uID;
  295.             public int uCallbackMessage;
  296.             public int Reserved;
  297.             public int hIcon;
  298.         }

  299.         public struct TBBUTTON
  300.         {
  301.             public int idBitMap;
  302.             public int idCommand;
  303.             public byte fsState;
  304.             public byte fsStyle;
  305.             public byte bReserved;
  306.             public int dwData;
  307.             public int iString;
  308.         }

  309.         public struct CLIENT_ID
  310.         {
  311.             public int UniqueProcess;
  312.             public int UniqueThread;
  313.         }

  314.         public struct OBJECT_ATTRIBUTES
  315.         {
  316.             public int Length;
  317.             public int RootDirectory;
  318.             public int ObjectName;
  319.             public int Attributes;
  320.             public int SecurityDescriptor;
  321.             public int SecurityQualityOfService;
  322.         }

  323.         public struct SYSTEM_HANDLE_TABLE_ENTRY_INFO
  324.         {
  325.             public short UniqueProcessId;
  326.             public short CreatorBackTraceIndex;
  327.             public byte ObjectTypeIndex;
  328.             public byte HandleAttributes;
  329.             public short HandleValue;
  330.             public int pObject;
  331.             public int GrantedAccess;
  332.         }

  333.         public struct IP_ADDR_STRING
  334.         {
  335.             public int Next;
  336.             public byte IpAddress;
  337.             public byte IpMask;
  338.             public int Context;
  339.         }

  340.         public struct 精易_网卡信息
  341.         {
  342.             public string 名称;
  343.             public string 连接名称;
  344.             public string Mac;
  345.             public string Ip;
  346.             public string 掩码;
  347.             public string 网关;
  348.             public string DNS1;
  349.             public string DNS2;
  350.         }

  351.         public struct IMAGE_DATA_DIRECTORY
  352.         {
  353.             public int VirtualAddress;
  354.             public int Size;
  355.         }

  356.         public struct IMAGE_OPTIONAL_HEADER
  357.         {
  358.             public short Magic;
  359.             public byte MajorLinkerVersion;
  360.             public byte MinorLinkerVersion;
  361.             public int SizeOfCode;
  362.             public int SizeOfInitializedData;
  363.             public int SizeOfUnitializedData;
  364.             public int AddressOfEntryPoint;
  365.             public int BaseOfCode;
  366.             public int BaseOfData;
  367.             public int ImageBase;
  368.             public int SectionAlignment;
  369.             public int FileAlignment;
  370.             public short MajorOperatingSystemVersion;
  371.             public short MinorOperatingSystemVersion;
  372.             public short MajorImageVersion;
  373.             public short MinorImageVersion;
  374.             public short MajorSubsystemVersion;
  375.             public short MinorSubsystemVersion;
  376.             public int W32VersionValue;
  377.             public int SizeOfImage;
  378.             public int SizeOfHeaders;
  379.             public int CheckSum;
  380.             public short SubSystem;
  381.             public short DllCharacteristics;
  382.             public int SizeOfStackReserve;
  383.             public int SizeOfStackCommit;
  384.             public int SizeOfHeapReserve;
  385.             public int SizeOfHeapCommit;
  386.             public int LoaderFlags;
  387.             public int NumberOfRvaAndSizes;
  388.             public IMAGE_DATA_DIRECTORY DataDirectory;
  389.         }

  390.         public struct IMAGE_FILE_HEADER
  391.         {
  392.             public short Machine;
  393.             public short NumberOfSections;
  394.             public int TimeDateStamp;
  395.             public int PointerToSymbolTable;
  396.             public int NumberOfSymbols;
  397.             public short SizeOfOptionalHeader;
  398.             public short characteristics;
  399.         }

  400.         public struct FLOATING_SAVE_AREA
  401.         {
  402.             public int ControlWord;
  403.             public int StatusWord;
  404.             public int TagWord;
  405.             public int ErrorOffset;
  406.             public int ErrorSelector;
  407.             public int DataOffset;
  408.             public int DataSelector;
  409.             public byte RegisterArea;
  410.             public int Cr0NpxState;
  411.         }

  412.         public struct IMAGE_SECTION_HEADER
  413.         {
  414.             public byte SecName;
  415.             public int VirtualSize;
  416.             public int VirtualAddress;
  417.             public int SizeOfRawData;
  418.             public int PointerToRawData;
  419.             public int PointerToRelocations;
  420.             public int PointerToLinenumbers;
  421.             public short NumberOfRelocations;
  422.             public short NumberOfLinenumbers;
  423.             public int characteristics;
  424.         }

  425.         public struct CONTEXT86
  426.         {
  427.             public int ContextFlags;
  428.             public int Dr0;
  429.             public int Dr1;
  430.             public int Dr2;
  431.             public int Dr3;
  432.             public int Dr6;
  433.             public int Dr7;
  434.             public FLOATING_SAVE_AREA FloatSave;
  435.             public int SegGs;
  436.             public int SegFs;
  437.             public int SegEs;
  438.             public int SegDs;
  439.             public int Edi;
  440.             public int Esi;
  441.             public int Ebx;
  442.             public int Edx;
  443.             public int Ecx;
  444.             public int Eax;
  445.             public int Ebp;
  446.             public int Eip;
  447.             public int SegCs;
  448.             public int EFlags;
  449.             public int Esp;
  450.             public int SegSs;
  451.         }

  452.         public struct STARTUPINFO_x
  453.         {
  454.             public int cb;
  455.             public int lpReserved;
  456.             public int lpDesktop;
  457.             public int lpTitle;
  458.             public int dwX;
  459.             public int dwY;
  460.             public int dwXSize;
  461.             public int dwYSize;
  462.             public int dwXCountChars;
  463.             public int dwYCountChars;
  464.             public int dwFillAttribute;
  465.             public int dwFlags;
  466.             public short wShowWindow;
  467.             public short cbReserved2;
  468.             public int lpReserved2;
  469.             public int hStdInput;
  470.             public int hStdOutput;
  471.             public int hStdError;
  472.         }

  473.         public struct IMAGE_NT_HEADERS
  474.         {
  475.             public int Signature;
  476.             public IMAGE_FILE_HEADER FileHeader;
  477.             public IMAGE_OPTIONAL_HEADER OptionalHeader;
  478.         }

  479.         public struct IMAGE_DOS_HEADER
  480.         {
  481.             public short e_magic;
  482.             public short e_cblp;
  483.             public short e_cp;
  484.             public short e_crlc;
  485.             public short e_cparhdr;
  486.             public short e_minalloc;
  487.             public short e_maxalloc;
  488.             public short e_ss;
  489.             public short e_sp;
  490.             public short e_csum;
  491.             public short e_ip;
  492.             public short e_cs;
  493.             public short e_lfarlc;
  494.             public short e_ovno;
  495.             public short e_res;
  496.             public short e_oemid;
  497.             public short e_oeminfo;
  498.             public short e_res2;
  499.             public int e_lfanew;
  500.         }

  501.         public struct 精易_运行信息
  502.         {
  503.             public int 进程句柄;
  504.             public int 主线程句柄;
  505.             public int 进程ID;
  506.             public int 主线程ID;
  507.         }

  508.         public struct 临界许可
  509.         {
  510.             public int 标识;
  511.             public int LockCount;
  512.             public int RecursionCount;
  513.             public int OwningThread;
  514.             public int LockSemaphore;
  515.             public int SpinCount;
  516.         }

  517.         public struct 矩形信息
  518.         {
  519.             public int 左边;
  520.             public int 顶边;
  521.             public int 宽度;
  522.             public int 高度;
  523.         }

  524.         public struct 精易_详细信息
  525.         {
  526.             public string 子窗口数;
  527.             public string 控件ID;
  528.             public string 控件描述;
  529.             public string 控件名称;
  530.             public string 控件状态;
  531.             public string 控件类型;
  532.             public string 控件值;
  533.             public string 窗口位置;
  534.             public 矩形信息 矩形信息;
  535.             public string 默认动作;
  536.             public string 状态标识;
  537.             public string 类型标识;
  538.             public string 屏幕位置;
  539.             public string 窗口大小;
  540.         }
  541.         //
  542.         //        public struct 精易_鼠标移入移出事件
  543.         //        {
  544.         //            public int 句柄;
  545.         //            public int 消息钩子句柄;
  546.         //            public 子程序指针 移入事件;
  547.         //            public 子程序指针 移出事件;
  548.         //        }

  549.         public struct 物理字体属性信息_
  550.         {
  551.             public int tmHeight;
  552.             public int tmAscent;
  553.             public int tmDescent;
  554.             public int tmInternalLeading;
  555.             public int tmExternalLeading;
  556.             public int tmAveCharWidth;
  557.             public int tmMaxCharWidth;
  558.             public int tmWeight;
  559.             public int tmOverhang;
  560.             public int tmDigitizedAspectX;
  561.             public int tmDigitizedAspectY;
  562.             public byte tmFirstChar;
  563.             public byte tmLastChar;
  564.             public byte tmDefaultChar;
  565.             public byte tmBreakChar;
  566.             public byte tmItalic;
  567.             public byte tmUnderlined;
  568.             public byte tmStruckOut;
  569.             public byte tmPitchAndFamily;
  570.             public byte tmCharSet;
  571.         }

  572.         public struct PROCESS_BASIC_INFORMATION
  573.         {
  574.             public int ExitStatus;
  575.             public int PebBaseAddress;
  576.             public int AffinityMask;
  577.             public int BasePriority;
  578.             public int UniqueProcessId;
  579.             public int InheritedFromUniqueProcessId;
  580.         }

  581.         public struct Process_Memory_Counters
  582.         {
  583.             public int 结构大小;
  584.             public int 页错误数量;
  585.             public int 最高工作设置大小;
  586.             public int 当前工作设置大小;
  587.             public int 最高页使用;
  588.             public int 当前页使用;
  589.             public int 最高非页使用;
  590.             public int 当前非页使用;
  591.             public int 页文件使用;
  592.             public int 最高页文件使用;
  593.         }

  594.         public struct MEMORY_BASIC_INFORMATION
  595.         {
  596.             public int BaseAddress;
  597.             public int byscsd;
  598.             public int AllocattionProtect;
  599.             public int RegionSize;
  600.             public int State;
  601.             public int Protect;
  602.             public int Type;
  603.         }

  604.         public struct SYSTEM_PROCESS_INFORMATION_ex
  605.         {
  606.             public int dwNextEntryOffset;
  607.             public int dwNumberOfThreads;
  608.             public long qSpareLi1;
  609.             public long qSpareLi2;
  610.             public long qSpareLi3;
  611.             public long qCreateTime;
  612.             public long qUserTime;
  613.             public long qKernelTime;
  614.             public UNICODE_STRING ImageName;
  615.             public int nBasePriority;
  616.             public int dwProcessId;
  617.             public int dwInheritedFromUniqueProcessId;
  618.             public int dwHandleCount;
  619.             public int dwSessionId;
  620.             public long dwSpareUl3;
  621.             public int tPeakVirtualSize;
  622.             public int tVirtualSize;
  623.             public int dwPageFaultCount;
  624.             public int dwPeakWorkingSetSize;
  625.             public int dwWorkingSetSize;
  626.             public int tQuotaPeakPagedPoolUsage;
  627.             public int tQuotaPagedPoolUsage;
  628.             public int tQuotaPeakNonPagedPoolUsage;
  629.             public int tQuotaNonPagedPoolUsage;
  630.             public int tPagefileUsage;
  631.             public int tPeakPagefileUsage;
  632.             public int tPrivatePageCount;
  633.             public long qReadOperationCount;
  634.             public long qWriteOperationCount;
  635.             public long qOtherOperationCount;
  636.             public long qReadTransferCount;
  637.             public long qWriteTransferCount;
  638.             public long qOtherTransferCount;
  639.         }

  640.         public struct PROCESS_BASIC_INFORMATION64
  641.         {
  642.             public int ExitStatus;
  643.             public int Reserved0;
  644.             public long PebBaseAddress;
  645.             public long AffinityMask;
  646.             public int BasePriority;
  647.             public int Reserved1;
  648.             public long UniqueProcessId;
  649.             public long InheritedFromUniqueProcessId;
  650.         }

  651.         public struct PEB_LDR_DATA
  652.         {
  653.             public int Reserved1;
  654.             public long Ldr;
  655.             public long ProcessParameters;
  656.         }

  657.         public struct RTL_USER_PROCESS_PARAMETERS
  658.         {
  659.             public UNICODE_STRING64 ImagePathName;
  660.             public UNICODE_STRING64 CommandLine;
  661.         }

  662.         public struct UNICODE_STRING64
  663.         {
  664.             public short Length;
  665.             public short MaximumLength;
  666.             public int Reserved;
  667.             public long Buffer;
  668.         }

  669.         public struct LPMODULEENTRY32
  670.         {
  671.             public int size;
  672.             public int mid;
  673.             public int pid;
  674.             public int gusage;
  675.             public int pusage;
  676.             public int baseS;
  677.             public int bsize;
  678.             public int hmodule;
  679.             public byte szname;
  680.             public byte szpath;
  681.         }

  682.         public struct SHFILEINFO
  683.         {
  684.             public int hIcon;
  685.             public int iIcon;
  686.             public int dwAttributes;
  687.             public byte szDisplayName;
  688.             public byte szTypeName;
  689.         }

  690.         public struct structS
  691.         {
  692.             public int hwnd;
  693.             public int message;
  694.             public int wParam;
  695.             public int lParam;
  696.             public int time;
  697.             public int pt;
  698.         }

  699.         //        public struct 钩子相关
  700.         //        {
  701.         //            public 子程序指针 键盘钩子回调函数;
  702.         //            public int 键盘钩子句柄;
  703.         //            public 子程序指针 鼠标钩子回调函数;
  704.         //            public int 鼠标钩子句柄;
  705.         //        }

  706.         public struct INTERNET_CACHE_ENTRY_INFO
  707.         {
  708.             public int dwStructSize;
  709.             public string lpszSourceUrlName;
  710.             public string lpszLocalFileName;
  711.             public int CacheEntryType;
  712.             public int dwUseCount;
  713.             public int dwHitRate;
  714.             public int dwSizeLow;
  715.             public int dwSizeHigh;
  716.             public long LastModifiedTime;
  717.             public long ExpireTime;
  718.             public long LastAccessTime;
  719.             public long LastSyncTime;
  720.             public string lpHeaderInfo;
  721.             public int dwHeaderInfoSize;
  722.             public string lpszFileExtension;
  723.             public int dwReserved;
  724.             public int dwExemptDelta;
  725.         }

  726.         public struct LARGE_INTEGER
  727.         {
  728.             public int lowpart;
  729.             public int highpart;
  730.         }

  731.         public struct INTERNET_PROXY_INFO
  732.         {
  733.             public int dwAccessType;
  734.             public string lpszProxy;
  735.             public string lpszProxyBypass;
  736.         }

  737.         public struct SERVICE_DESCRIPTION
  738.         {
  739.             public string lpDescription;
  740.         }

  741.         public struct SERVICE_Table
  742.         {
  743.             public int lpServiceName;
  744.             public int lpServiceProc;
  745.         }

  746.         public struct QUERY_SERVICE_CONFIG
  747.         {
  748.             public int dwServiceType;
  749.             public int dwStartType;
  750.             public int dwErrorControl;
  751.             public int lpBinaryPathName;
  752.             public int lpLoadOrderGroup;
  753.             public int dwTagId;
  754.             public int lpDependencies;
  755.             public int lpServiceStartName;
  756.             public int lpDisplayName;
  757.         }

  758.         public struct SERVICE_STATUS
  759.         {
  760.             public int dwServiceType;
  761.             public int dwCurrentState;
  762.             public int dwControlsAccepted;
  763.             public int dwWin32ExitCode;
  764.             public int dwServiceSpecificExitCode;
  765.             public int dwCheckPoint;
  766.             public int dwWaitHint;
  767.         }

  768.         public struct PLASTINPUTINFO
  769.         {
  770.             public int cbSize;
  771.             public int dwTime;
  772.         }

  773.         public struct SHFILEOPSTRUCT
  774.         {
  775.             public int 句柄;
  776.             public int wFunc;
  777.             public byte[] pFrom;
  778.             public byte[] pTo;
  779.             public short fFlags;
  780.             public int fAnyOperationsAborted;
  781.             public int hNameMappings;
  782.             public string lpszProgressTitle;
  783.         }

  784.         public struct 地址信息
  785.         {
  786.             public string 地址;
  787.             public int 端口;
  788.         }

  789.         public struct 客户信息
  790.         {
  791.             public string IP;
  792.             public short 端口;
  793.             public int 句柄;
  794.         }

  795.         public struct fd_set
  796.         {
  797.             public int fd_count;
  798.             public int fd_array;
  799.         }

  800.         public struct 套接字地址
  801.         {
  802.             public short 常量;
  803.             public short 端口;
  804.             public int 地址;
  805.             public byte 地址范围;
  806.         }

  807.         public struct 套接字信息
  808.         {
  809.             public short 版本;
  810.             public short 高版本;
  811.             public byte 种类;
  812.             public byte 系统状态;
  813.             public short 最大套接字;
  814.             public short 最大Udp;
  815.             public int 信息;
  816.         }

  817.         public struct 按钮信息
  818.         {
  819.             public int cbSize;
  820.             public int dwMask;
  821.             public int idCommand;
  822.             public int iImage;
  823.             public byte fsState;
  824.             public byte fsStyle;
  825.             public short cx;
  826.             public int lParam;
  827.             public int pszText;
  828.             public int cchText;
  829.         }

  830.         public struct IDE
  831.         {
  832.             public byte bFeaturesReg;
  833.             public byte bSectorCountReg;
  834.             public byte bSectorNumberReg;
  835.             public byte bCylLowReg;
  836.             public byte bCylHighReg;
  837.             public byte bDriveHeadReg;
  838.             public byte bCommandReg;
  839.         }

  840.         public struct SCIP
  841.         {
  842.             public int cBufferSize;
  843.             public IDE irDriveRegs;
  844.             public byte bDriveNumber;
  845.             public byte bReserved;
  846.             public int dwReserved;
  847.             public byte bBuffer;
  848.         }

  849.         public struct 精易_磁盘信息
  850.         {
  851.             public string 型号;
  852.             public string 序列号;
  853.             public string 固件版本;
  854.         }

  855.         public struct 项目数据
  856.         {
  857.             public string 项目文本;
  858.             public int 图片索引;
  859.             public int 选中图片索引;
  860.             public int 项目数值;
  861.         }

  862.         public struct 树型框结构
  863.         {
  864.             public string 项目文本;
  865.             public int 图片索引;
  866.             public int 选中图片索引;
  867.             public int 项目数值;
  868.             public int 加粗扩展;
  869.             public int 缩进层次;
  870.         }

  871.         public struct TVITEMEX
  872.         {
  873.             public int mask;
  874.             public int hItem;
  875.             public int state;
  876.             public int stateMask;
  877.             public string pszText;
  878.             public int cchTextMax;
  879.             public int iImage;
  880.             public int iSelectedImage;
  881.             public bool cChildren;
  882.             public int lParam;
  883.             public int iIntegral;
  884.         }

  885.         public struct TVITEMEX2
  886.         {
  887.             public int mask;
  888.             public int hItem;
  889.             public int state;
  890.             public int stateMask;
  891.             public int pszText;
  892.             public int cchTextMax;
  893.             public int iImage;
  894.             public int iSelectedImage;
  895.             public bool cChildren;
  896.             public int lParam;
  897.             public int iIntegral;
  898.         }

  899.         public struct TVINSERTSTRUCT
  900.         {
  901.             public int hParent;
  902.             public int hInsertAfter;
  903.             public int mask;
  904.             public int hItem;
  905.             public int state;
  906.             public int stateMask;
  907.             public string pszText;
  908.             public int cchTextMax;
  909.             public int iImage;
  910.             public int iSelectedImage;
  911.             public bool cChildren;
  912.             public int lParam;
  913.             public int iIntegral;
  914.         }

  915.         public struct TVINSERTSTRUCT2
  916.         {
  917.             public int hParent;
  918.             public int hInsertAfter;
  919.             public int mask;
  920.             public int hItem;
  921.             public int state;
  922.             public int stateMask;
  923.             public int pszText;
  924.             public int cchTextMax;
  925.             public int iImage;
  926.             public int iSelectedImage;
  927.             public bool cChildren;
  928.             public int lParam;
  929.             public int iIntegral;
  930.         }

  931.         public struct 内存映射数据9X
  932.         {
  933.             public int 映射文件号;
  934.             public int 指针;
  935.         }

  936.         public struct 线程许可证
  937.         {
  938.             public int 调试信息;
  939.             public int 锁计数;
  940.             public int 递归计数;
  941.             public int 拥有线程;
  942.             public int 锁信号量;
  943.             public int 自旋数;
  944.         }

  945.         public struct 剪贴板_置文件
  946.         {
  947.             public int pFiles;
  948.             public 精易_坐标 pt;
  949.             public int fNC;
  950.             public int fWide;
  951.         }

  952.         public struct 取硬盘特征号0
  953.         {
  954.             public int cBufferSize;
  955.             public byte bFeaturesReg;
  956.             public byte bSectorCountReg;
  957.             public byte bSectorNumberReg;
  958.             public byte bCylLowReg;
  959.             public byte bCylHighReg;
  960.             public byte bDriveHeadReg;
  961.             public byte bCommandReg;
  962.             public byte bReserved1;
  963.             public byte bDriveNumber;
  964.             public byte bReserved;
  965.             public int dwReserved;
  966.             public byte bBuffer;
  967.         }

  968.         public struct 取硬盘特征号1
  969.         {
  970.             public byte bVersion;
  971.             public byte bRevision;
  972.             public byte bReserved;
  973.             public byte bIDEDeviceMap;
  974.             public int fCapabilities;
  975.             public int dwReserved;
  976.         }

  977.         public struct 取硬盘特征号2
  978.         {
  979.             public int HeaderLength;
  980.             public byte Signature;
  981.             public int Timeout;
  982.             public int ControlCode;
  983.             public int ReturnCode;
  984.             public int Length;
  985.             public int cBufferSize;
  986.             public byte bFeaturesReg;
  987.             public byte bSectorCountReg;
  988.             public byte bSectorNumberReg;
  989.             public byte bCylLowReg;
  990.             public byte bCylHighReg;
  991.             public byte bDriveHeadReg;
  992.             public byte bCommandReg;
  993.             public byte bReserved1;
  994.             public byte bDriveNumber;
  995.             public byte bReserved;
  996.             public int dwReserved;
  997.             public byte bBuffer;
  998.         }

  999.         public struct 取硬盘特征号3
  1000.         {
  1001.             public short wGenConfig;
  1002.             public short wNumCyls;
  1003.             public short wReserved;
  1004.             public short wNumHeads;
  1005.             public short wBytesPerTrack;
  1006.             public short wBytesPerSector;
  1007.             public short wSectorsPerTrack;
  1008.             public short wVendorUnique;
  1009.             public byte sSerialNumber;
  1010.             public short wBufferType;
  1011.             public short wBufferSize;
  1012.             public short wECCSize;
  1013.             public byte sFirmwareRev;
  1014.             public byte sModelNumber;
  1015.             public short wMoreVendorUnique;
  1016.             public short wDoubleWordIO;
  1017.             public short wCapabilities;
  1018.             public short wReserved1;
  1019.             public short wPIOTiming;
  1020.             public short wDMATiming;
  1021.             public short wBS;
  1022.             public short wNumCurrentCyls;
  1023.             public short wNumCurrentHeads;
  1024.             public short wNumCurrentSectorsPerTrack;
  1025.             public int ulCurrentSectorCapacity;
  1026.             public short wMultSectorStuff;
  1027.             public int ulTotalAddressableSectors;
  1028.             public short wSingleWordDMA;
  1029.             public short wMultiWordDMA;
  1030.             public byte bReserved;
  1031.         }

  1032.         public struct GdiplusStartupInput
  1033.         {
  1034.             public int GdiplusVersion;
  1035.             public int DebugEventCallback;
  1036.             public int SuppressBackgroundThread;
  1037.             public int SuppressExternalCodecs;
  1038.         }

  1039.         public struct BLENDFUNCTION
  1040.         {
  1041.             public byte BlendOp;
  1042.             public byte BlendFlags;
  1043.             public byte SourceConstantAlpha;
  1044.             public byte AlphaFormat;
  1045.         }

  1046.         public struct Size
  1047.         {
  1048.             public int cx;
  1049.             public int cy;
  1050.         }

  1051.         public struct IP_PER_ADAPTER_INFO
  1052.         {
  1053.             public int tmp;
  1054.             public IP_ADDR_STRING CurrentDnsServer;
  1055.             public IP_ADDR_STRING DnsServerList;
  1056.         }

  1057.         public struct BITMAPINFO
  1058.         {
  1059.             public BITMAPINFOHEADER BITMAPINFOHEADER;
  1060.             public int bmiColors;
  1061.         }

  1062.         public struct BITMAPINFOHEADER
  1063.         {
  1064.             public int biSize;
  1065.             public int biWidth;
  1066.             public int biHeight;
  1067.             public short biPlanes;
  1068.             public short biBitCount;
  1069.             public int biCompression;
  1070.             public int biSizeImage;
  1071.             public int biXPelsPerMeter;
  1072.             public int biYPelsPerMeter;
  1073.             public int biClrUsed;
  1074.             public int biClrImportant;
  1075.         }

  1076.         public struct BITMAPFILEHEADER
  1077.         {
  1078.             public short bfType;
  1079.             public int bfSize;
  1080.             public short bfReserved1;
  1081.             public short bfReserved2;
  1082.             public int bfOffBits;
  1083.         }

  1084.         public struct BITMAP
  1085.         {
  1086.             public int bmType;
  1087.             public int bmWidth;
  1088.             public int bmHeight;
  1089.             public int bmWidthBytes;
  1090.             public short bmPlanes;
  1091.             public short bmBitsPixel;
  1092.             public int bmBits;
  1093.         }

  1094.         public struct 位图信息_
  1095.         {
  1096.             public int 结果大小;
  1097.             public int 位图宽度;
  1098.             public int 位图高度;
  1099.             public short 位图位面数;
  1100.             public short 位深度;
  1101.             public int 压缩率;
  1102.             public int 位图大小;
  1103.             public int 水平折像度;
  1104.             public int 垂直折像度;
  1105.             public int 位图颜色表索引;
  1106.             public int 位图显示索引;
  1107.             public byte 蓝色值;
  1108.             public byte 绿色值;
  1109.             public byte 红色值;
  1110.             public byte 保留参数;
  1111.         }

  1112.         public struct _验证码取图
  1113.         {
  1114.             public int biSize;
  1115.             public int biWidth;
  1116.             public int biHeight;
  1117.             public short biPlanes;
  1118.             public short biBitCount;
  1119.             public int biCompression;
  1120.             public int biSizeImage;
  1121.             public int biXPelsPerMeter;
  1122.             public int biYPelsPerMeter;
  1123.             public int biClrUsed;
  1124.             public int biClrImportant;
  1125.         }

  1126.         public struct 超级列表框0
  1127.         {
  1128.             public int 掩码;
  1129.             public int 项目;
  1130.             public int 子项目;
  1131.             public int 状态;
  1132.             public int 状态掩码;
  1133.             public string 项目文本;
  1134.             public int 项目文本长度;
  1135.             public int 图片索引;
  1136.             public int 项目数值;
  1137.             public int 缩进;
  1138.         }

  1139.         public struct 超级列表框1
  1140.         {
  1141.             public int 掩码;
  1142.             public int 表项索引;
  1143.             public int 子项目;
  1144.             public int 状态;
  1145.             public int 状态掩码;
  1146.             public int 项目文本;
  1147.             public int 项目文本长度;
  1148.             public int 图片索引;
  1149.             public int 项目数值;
  1150.             public int 缩进;
  1151.         }

  1152.         public struct 列表框信息
  1153.         {
  1154.             public string 标题;
  1155.             public int 图片索引;
  1156.             public int 状态图片索引;
  1157.             public int 表项数值;
  1158.             public int 缩进数目;
  1159.             public string 列标题;
  1160.             public int 列图片索引;
  1161.         }

  1162.         public struct 超级列表框3
  1163.         {
  1164.             public int flags;
  1165.             public string LPCTSTR;
  1166.             public int lParam;
  1167.             public 精易_坐标 pt;
  1168.             public int vkDirection;
  1169.         }

  1170.         public struct 超级列表框4
  1171.         {
  1172.             public int flags;
  1173.             public int LPCTSTR;
  1174.             public int lParam;
  1175.             public int pt;
  1176.             public int vkDirection;
  1177.         }

  1178.         public struct 超级列表框5
  1179.         {
  1180.             public int ulFlags;
  1181.             public int hbm;
  1182.             public string 图片路径;
  1183.             public int 最大长度;
  1184.             public int xOffsetPercent;
  1185.             public int yOffsetPercent;
  1186.         }

  1187.         public struct 超级列表框6
  1188.         {
  1189.             public int ulFlags;
  1190.             public int hbm;
  1191.             public int pszImage;
  1192.             public int cchImageMax;
  1193.             public int xOffsetPercent;
  1194.             public int yOffsetPercent;
  1195.         }

  1196.         public struct 超级列表框7
  1197.         {
  1198.             public int mask;
  1199.             public int 对齐方式;
  1200.             public int 列宽度;
  1201.             public string 列标题;
  1202.             public int 缓冲区长度;
  1203.             public int 列索引;
  1204.             public int 列图标;
  1205.             public int iOrder;
  1206.         }

  1207.         public struct 超级列表框8
  1208.         {
  1209.             public int mask;
  1210.             public int 对齐方式;
  1211.             public int 列宽度;
  1212.             public int 列标题;
  1213.             public int 缓冲区长度;
  1214.             public int 列索引;
  1215.             public int 列图标;
  1216.             public int iOrder;
  1217.         }

  1218.         public struct 精易_颜色对话框
  1219.         {
  1220.             public int 长度;
  1221.             public int 窗口句柄;
  1222.             public int hInstance;
  1223.             public int rgbResult;
  1224.             public string 颜色数长度;
  1225.             public int lCustData;
  1226.             public int lpfnHook;
  1227.             public string lpTemplateName;
  1228.         }

  1229.         public struct 查找的文件信息
  1230.         {
  1231.             public int dwFileAttributes;
  1232.             public 文件时间 ftCreationTime;
  1233.             public 文件时间 ftLastAccessTime;
  1234.             public 文件时间 ftLastWriteTime;
  1235.             public int nFileSizeHigh;
  1236.             public int nFileSizeLow;
  1237.             public int dwReserved0;
  1238.             public int dwReserved1;
  1239.             public byte cFileName;
  1240.             public byte cAlternate;
  1241.         }

  1242.         public struct 文件时间
  1243.         {
  1244.             public int 底部时间数据;
  1245.             public int 顶部时间数据;
  1246.         }

  1247.         public struct 精易_任务相关
  1248.         {
  1249.             public int cbSize;
  1250.             public int hwnd;
  1251.             public int uCallbackMessage;
  1252.             public int uEdge;
  1253.             public 精易_矩形 rc;
  1254.             public int lParam;
  1255.         }

  1256.         public struct 权限特征
  1257.         {
  1258.             public int 权限;
  1259.             public int 低三十二位;
  1260.             public int 高三十二位;
  1261.             public int 属性;
  1262.             public int 低三十二位1;
  1263.             public int 高三十二位1;
  1264.             public int 属性1;
  1265.         }

  1266.         public struct 精易_进程权限
  1267.         {
  1268.             public int PrivilegeCount;
  1269.             public int lowpart;
  1270.             public int highpart;
  1271.             public int Attributes;
  1272.         }

  1273.         public struct 精易_进程令牌
  1274.         {
  1275.             public int 低三十二位;
  1276.             public int 高三十二位;
  1277.         }

  1278.         public struct 精易_模块信息
  1279.         {
  1280.             public int size;
  1281.             public int mid;
  1282.             public int pid;
  1283.             public int gusage;
  1284.             public int pusage;
  1285.             public int baseS;
  1286.             public int 大小;
  1287.             public int 模块句柄;
  1288.             public byte 模块文件名;
  1289.             public byte 模块完整路径;
  1290.         }

  1291.         //        public struct 精易_目录浏览
  1292.         //        {
  1293.         //            public int hOwner;
  1294.         //            public int pidlRoot;
  1295.         //            public string pszDisplayName;
  1296.         //            public string lpszTitle;
  1297.         //            public int ulFlags;
  1298.         //            public 子程序指针 lpfn;
  1299.         //            public int lParam;
  1300.         //            public int iImage;
  1301.         //        }

  1302.         public struct 精易_热键信息
  1303.         {
  1304.             public int 窗口句柄;
  1305.             public int 热键ID;
  1306.             public int 回调函数;
  1307.         }

  1308.         public struct 光驱相关1
  1309.         {
  1310.             public int dwCallback;
  1311.             public int wDeviceID;
  1312.             public string lpstrDeviceType;
  1313.             public string lpstrElementName;
  1314.             public int lpstrAlias;
  1315.         }

  1316.         public struct 光驱相关2
  1317.         {
  1318.             public int dwCallback;
  1319.             public int dwTimeFormat;
  1320.             public int dwAudio;
  1321.         }

  1322.         public struct 精易_进程信息
  1323.         {
  1324.             public int 进程ID;
  1325.             public string 进程名;
  1326.             public string 进程全路径名;
  1327.         }

  1328.         public struct 精易_进程结构
  1329.         {
  1330.             public int 进程句柄;
  1331.             public int 线程句柄;
  1332.             public int 进程标识符;
  1333.             public int 线程标识符;
  1334.         }

  1335.         public struct StartupInfo
  1336.         {
  1337.             public int cbSize;
  1338.             public int lpReserved;
  1339.             public int lpDesktop;
  1340.             public int lpTitle;
  1341.             public int dwX;
  1342.             public int dwY;
  1343.             public int dwXSize;
  1344.             public int dwYSize;
  1345.             public int dwXCountChars;
  1346.             public int dwYCountChars;
  1347.             public int dwFillAttribute;
  1348.             public int dwFlags;
  1349.             public long wShowWindow;
  1350.             public long cbReserved2;
  1351.             public int lpReserved2;
  1352.             public int hStdInput;
  1353.             public int hStdOutput;
  1354.             public int hStdError;
  1355.         }

  1356.         public struct 精易_窗口信息
  1357.         {
  1358.             public int 窗口句柄;
  1359.             public int 进程ID;
  1360.             public int 线程ID;
  1361.             public string 窗口标题;
  1362.             public string 窗口类名;
  1363.         }

  1364.         public struct 精易_进程信息数组
  1365.         {
  1366.             public int 进程标识符;
  1367.             public string 进程名称;
  1368.             public int 进程模块标识符;
  1369.             public int 父进程标识符;
  1370.             public int 线程优先权;
  1371.             public int 线程数;
  1372.         }

  1373.         public struct 精易_进程信息列表
  1374.         {
  1375.             public int dwSize;
  1376.             public int cntUsage;
  1377.             public int 进程ID;
  1378.             public int th32DefaultHeapID;
  1379.             public int th32ModuleID;
  1380.             public int cntThreads;
  1381.             public int th32ParentProcessID;
  1382.             public int pcPriClassBase;
  1383.             public int dwFlags;
  1384.             public byte 进程名称;
  1385.         }

  1386.         public struct PGUITHREADINFO
  1387.         {
  1388.             public int cbSize;
  1389.             public int flags;
  1390.             public int hwndActive;
  1391.             public int hwndFocus;
  1392.             public int hwndCapture;
  1393.             public int hwndMenuOwner;
  1394.             public int hwndMoveSize;
  1395.             public int hwndCaret;
  1396.             public 精易_矩形 rcCaret;
  1397.         }

  1398.         public struct 线程入口结构
  1399.         {
  1400.             public int 结构大小;
  1401.             public int 引用线程数;
  1402.             public int 线程ID;
  1403.             public int 父进程ID;
  1404.             public int 优先级;
  1405.             public int 更改的优先级;
  1406.             public int 保留;
  1407.         }

  1408.         public struct MSG
  1409.         {
  1410.             public int hwnd;
  1411.             public int message;
  1412.             public int wParam;
  1413.             public int lParam;
  1414.             public int time;
  1415.             public 精易_坐标 pt;
  1416.         }

  1417.         public struct 点阵型
  1418.         {
  1419.             public int x;
  1420.             public int y;
  1421.             public int z;
  1422.         }

  1423.         public struct 精易_坐标
  1424.         {
  1425.             public int 横;
  1426.             public int 纵;
  1427.         }

  1428.         public struct 点阵
  1429.         {
  1430.             public int 点;
  1431.         }

  1432.         public struct 精易_位置和大小
  1433.         {
  1434.             public int 左边;
  1435.             public int 顶边;
  1436.             public int 宽度;
  1437.             public int 高度;
  1438.         }

  1439.         public struct 精易_矩形
  1440.         {
  1441.             public int 左边;
  1442.             public int 顶边;
  1443.             public int 右边;
  1444.             public int 底边;
  1445.         }

  1446.         public struct 表项结构信息
  1447.         {
  1448.             public int 横向;
  1449.             public int 纵向;
  1450.             public int flags;
  1451.             public int 行;
  1452.             public int 列;
  1453.         }

  1454.         public struct 精易_内存属性
  1455.         {
  1456.             public int 区域地址;
  1457.             public int 分配地址;
  1458.             public int 初始属性;
  1459.             public int 区域长度;
  1460.             public int 保留值;
  1461.             public int 当前属性;
  1462.             public int 页类型;
  1463.         }

  1464.         public struct 程序延时
  1465.         {
  1466.             public long 成员_时间;
  1467.         }

  1468.         public struct ADSL拨号0
  1469.         {
  1470.             public int 结构的大小;
  1471.             public byte 访问的入口名;
  1472.             public byte 呼叫的号码;
  1473.             public byte 回叫号码;
  1474.             public byte 指定用户名称;
  1475.             public byte 指定用户密码;
  1476.             public byte 指定域;
  1477.         }

  1478.         public struct 取连接信息用结构
  1479.         {
  1480.             public int 内存大小;
  1481.             public byte 拨号连接名称;
  1482.             public byte 缓冲区的大小;
  1483.             public string 连接的个数;
  1484.         }

  1485.         public struct ADSL拨号2
  1486.         {
  1487.             public int data1;
  1488.             public short data2;
  1489.             public short data3;
  1490.             public byte data4;
  1491.         }

  1492.         public struct ADSL拨号3
  1493.         {
  1494.             public byte a;
  1495.             public byte b;
  1496.             public byte c;
  1497.             public byte d;
  1498.         }

  1499.         //        public struct LSA_UNICODE_STRING
  1500.         //        {
  1501.         //            public short 长度;
  1502.         //            public short 最大长度;
  1503.         //            public 字节集 缓冲区;
  1504.         //        }

  1505.         public struct 创建连接所用结构
  1506.         {
  1507.             public int dwSize;
  1508.             public int dwfOptions;
  1509.             public int dwCountryID;
  1510.             public int dwCountryCode;
  1511.             public byte szAreaCode;
  1512.             public byte szLocalPhoneNumber;
  1513.             public int dwAlternateOffset;
  1514.             public ADSL拨号3 ipaddr;
  1515.             public ADSL拨号3 ipaddrDns;
  1516.             public ADSL拨号3 dbury;
  1517.             public ADSL拨号3 ipaddrWins;
  1518.             public ADSL拨号3 ipaddrWinsAlt;
  1519.             public int dwFrameSize;
  1520.             public int hr57hfb;
  1521.             public int dwFramingProtocol;
  1522.             public byte szScript;
  1523.             public byte szAutodialDll;
  1524.             public byte d75hdrb;
  1525.             public byte szDeviceType;
  1526.             public byte szDeviceName;
  1527.             public byte szX25PadType;
  1528.             public byte sd5h7rd;
  1529.             public byte szX25Facilities;
  1530.         }

  1531.         /// <summary>
  1532.         /// 判断在OEM和ANSI字符集间转换的windows代码页
  1533.         /// </summary>
  1534.         [DllImport("kernel32", EntryPoint = "GetOEMCP")]
  1535.         public static extern int GetOEMCP();

  1536.         /// <summary>
  1537.         ///
  1538.         /// </summary>
  1539.         [DllImport("GdiPlus.dll", EntryPoint = "GdipDeleteBrush")]
  1540.         public static extern int GdipDeleteBrush(int brush_es);

  1541.         /// <summary>
  1542.         ///
  1543.         /// </summary>
  1544.         [DllImport("user32", EntryPoint = "SendMessageA")]
  1545.         public static extern int SendMessageWINDOWPOS(int hWnd_ui, int Msg_gc, int wParam_ys,
  1546.             api.WINDOWPOS lParam_lt);

  1547.         /// <summary>
  1548.         /// 对输入句柄的工作模式进行设置
  1549.         /// </summary>
  1550.         /// <param name="hConsoleHandle">控制台句柄</param>
  1551.         [DllImport("kernel32.dll", EntryPoint = "SetConsoleMode")]
  1552.         public static extern bool SetConsoleMode(int hConsoleHandle_ul, int dwMode_hc);

  1553.         /// <summary>
  1554.         ///
  1555.         /// </summary>
  1556.         /// <param name="hConsoleHandle">0</param>
  1557.         /// <param name="lpMode">0</param>
  1558.         [DllImport("kernel32", EntryPoint = "GetConsoleMode")]
  1559.         public static extern bool GetConsoleMode(int hConsoleHandle_wr, int lpMode_zq);

  1560.         /// <summary>
  1561.         /// 这个函数屏蔽一个窗口客户区的全部或部分区域。这会导致窗口在事件期间部分重画  非零表示成功,零表示失败
  1562.         /// </summary>
  1563.         /// <param name="hWnd">待屏蔽窗口的句柄</param>
  1564.         /// <param name="lpRect">RECT,用于描述待屏蔽矩形部分的一个矩形结构。可用InvalidateRectBynum函数,同时将lpRect设为零(Long数据类型),从而屏蔽(或禁用)整个窗口</param>
  1565.         /// <param name="bErase">TRUE(非零)导致指定的区域在重画前先删除;</param>
  1566.         [DllImport("user32", EntryPoint = "InvalidateRect")]
  1567.         public static extern int InvalidateRect(int hWnd_kk, int lpRect_po, int bErase_zs);

  1568.         /// <summary>
  1569.         ///
  1570.         /// </summary>
  1571.         [DllImport("gdiplus.dll", EntryPoint = "GdipSaveImageToStream")]
  1572.         public static extern int GdipSaveImageToStream(int image_se, int stream_ft, byte[] clsidEncoder_uc,
  1573.             EncoderParameters encoderParams_jr);

  1574.         /// <summary>
  1575.         ///
  1576.         /// </summary>
  1577.         [DllImport("ole32.dll", EntryPoint = "CLSIDFromString")]
  1578.         public static extern void CLSIDFromString_字节集传址2(byte[] lpsz_nd, StringBuilder pclsid_zy);

  1579.         /// <summary>
  1580.         ///
  1581.         /// </summary>
  1582.         [DllImport("ole32.dll", EntryPoint = "CLSIDFromString")]
  1583.         public static extern void CLSIDFromString_字节(byte[] lpsz_lg, ref byte[] pclsid_ii);

  1584.         /// <summary>
  1585.         ///
  1586.         /// </summary>
  1587.         [DllImport("ole32", EntryPoint = "CLSIDFromString")]
  1588.         public static extern int CLSIDFromString_GUID(byte[] lpsz_lx, Guid pclsid_hh);

  1589.         /// <summary>
  1590.         ///
  1591.         /// </summary>
  1592.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  1593.         public static extern void CopyMemory_SYSTEM_PROCESSES(api.SYSTEM_PROCESSES Destination_gr, int Source_mf,
  1594.             int Length_dn);

  1595.         /// <summary>
  1596.         /// 初始化浏览器属性
  1597.         /// </summary>
  1598.         [DllImport("urlmon.dll", EntryPoint = "CoInternetSetFeatureEnabled")]
  1599.         public static extern void CoInternetSetFeatureEnabled(int FeatureEntry_ts, int dwFlags_mm, bool Enable_jk);

  1600.         /// <summary>
  1601.         ///
  1602.         /// </summary>
  1603.         /// <param name="lpRootPathName">0</param>
  1604.         /// <param name="lpVolumeNameBuffer">0</param>
  1605.         /// <param name="nVolumeNameSize">0</param>
  1606.         /// <param name="lpVolumeSerialNumber">0</param>
  1607.         /// <param name="lpMaximumComponentLength">0</param>
  1608.         /// <param name="lpFileSystemFlags">0</param>
  1609.         /// <param name="lpFileSystemNameBuffer">0</param>
  1610.         /// <param name="nFileSystemNameSize">0</param>
  1611.         [DllImport("kernel32", EntryPoint = "GetVolumeInformationA")]
  1612.         public static extern bool GetVolumeInformationA(string lpRootPathName_qr, string lpVolumeNameBuffer_gt,
  1613.             int nVolumeNameSize_xr, ref int lpVolumeSerialNumber_mw, ref int lpMaximumComponentLength_vw,
  1614.             ref int lpFileSystemFlags_xv, ref string lpFileSystemNameBuffer_xc, int nFileSystemNameSize_yl);

  1615.         /// <summary>
  1616.         ///
  1617.         /// </summary>
  1618.         /// <param name="lpFileName">0</param>
  1619.         [DllImport("kernel32", EntryPoint = "GetFileAttributesA")]
  1620.         public static extern int GetFileAttributesA(string lpFileName_hh);

  1621.         /// <summary>
  1622.         ///
  1623.         /// </summary>
  1624.         [DllImport("ole32.dll", EntryPoint = "StringFromGUID2")]
  1625.         public static extern int StringFromGUID2(byte[] rguid_gj, byte[] lpsz_er, int cchMax_gl);

  1626.         /// <summary>
  1627.         ///
  1628.         /// </summary>
  1629.         [DllImport("user32.dll", EntryPoint = "CreateIconFromResourceEx")]
  1630.         public static extern int CreateIconFromResourceEx(int presbits_sl, int dwResSize_rb, int fIcon_eu, int dwVer_gz,
  1631.             int cxDesired_ug, int cyDesired_bs, int Flags_ju);

  1632.         /// <summary>
  1633.         ///
  1634.         /// </summary>
  1635.         [DllImport("kernel32.dll", EntryPoint = "RtlMoveMemory")]
  1636.         public static extern void RtlMoveMemory_IconDirEntry(api.IconDirEntry Destination_oc, int Source_pb,
  1637.             int Length_gi);

  1638.         /// <summary>
  1639.         ///
  1640.         /// </summary>
  1641.         [DllImport("user32.dll", EntryPoint = "DefWindowProcA")]
  1642.         public static extern int DefWindowProc(int hwnd_tq, int wMsg_nh, int wParam_zw, int lParam_sa);

  1643.         /// <summary>
  1644.         ///
  1645.         /// </summary>
  1646.         [DllImport("user32.dll", EntryPoint = "SetRect")]
  1647.         public static extern int SetRect(int lpRect_ez, int X1_ps, int Y1_oy, int X2_oz, int Y2_dp);

  1648.         /// <summary>
  1649.         ///
  1650.         /// </summary>
  1651.         [DllImport("kernel32.dll", EntryPoint = "RtlMoveMemory")]
  1652.         public static extern void RtlMoveMemory_bytes(byte[] Destination_jw, byte[] Source_ml, int Length_pe);

  1653.         /// <summary>
  1654.         ///
  1655.         /// </summary>
  1656.         [DllImport("kernel32.dll", EntryPoint = "RtlMoveMemory")]
  1657.         public static extern void RtlMoveMemory_THUMBBUTTON2ptr(int Destination_zo, api.THUMBBUTTON Source_wp,
  1658.             int Length_oo);

  1659.         /// <summary>
  1660.         ///
  1661.         /// </summary>
  1662.         [DllImport("user32.dll", EntryPoint = "RegisterWindowMessageA")]
  1663.         public static extern int RegisterWindowMessage(string lpString_kl);

  1664.         /// <summary>
  1665.         ///
  1666.         /// </summary>
  1667.         [DllImport("kernel32", EntryPoint = "LocalSize")]
  1668.         public static extern int LocalSize_IP_ADDR_STRING(ref api.IP_ADDR_STRING hMem_sc);

  1669.         /// <summary>
  1670.         ///
  1671.         /// </summary>
  1672.         [DllImport("User32.dll", EntryPoint = "DestroyIcon")]
  1673.         public static extern bool DestroyIcon(int hIcon_ey);

  1674.         /// <summary>
  1675.         ///
  1676.         /// </summary>
  1677.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  1678.         public static extern void CopyMemory_IP_ADDR_STRING(ref api.IP_ADDR_STRING Destination_aw, int Source_ol,
  1679.             int Length_zc);

  1680.         /// <summary>
  1681.         ///
  1682.         /// </summary>
  1683.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  1684.         public static extern void
  1685.             CopyMemory_P2IP_ADAPTER_INFO(api.IP_ADAPTER_INFO_彗星 pDest_rj, int pSrc_cf, int ByteLen_bg);

  1686.         /// <summary>
  1687.         /// 返回本地内存块大小
  1688.         /// </summary>
  1689.         [DllImport("kernel32", EntryPoint = "LocalSize")]
  1690.         public static extern int LocalSize_IP_ADAPTER_INFO(ref api.IP_ADAPTER_INFO_彗星 hMem_ue);

  1691.         /// <summary>
  1692.         ///
  1693.         /// </summary>
  1694.         /// <param name="iMaxLength">传递0</param>
  1695.         [DllImport("kernel32", EntryPoint = "lstrcpynA")]
  1696.         public static extern int GetPtr_IP_ADAPTER_INFO(ref api.IP_ADAPTER_INFO_彗星 lpString1_cp,
  1697.             ref api.IP_ADAPTER_INFO_彗星 lpString2_og, int iMaxLength_hw);

  1698.         /// <summary>
  1699.         ///
  1700.         /// </summary>
  1701.         /// <param name="iMaxLength">传递0</param>
  1702.         [DllImport("kernel32", EntryPoint = "lstrcpynA")]
  1703.         public static extern int GetPtr_Bin(StringBuilder lpString1_mu, StringBuilder lpString2_cx, int iMaxLength_jb);

  1704.         /// <summary>
  1705.         ///
  1706.         /// </summary>
  1707.         [DllImport("User32.dll", EntryPoint = "EnumDisplayDevicesA")]
  1708.         public static extern bool EnumDisplayDevicesA(string lpDevice_bd, int iDevNum_dm,
  1709.             api.PDISPLAY_DEVICEA lpDisplayDevice_as, int DWORD_os);

  1710.         /// <summary>
  1711.         ///
  1712.         /// </summary>
  1713.         /// <param name="ObjectType">SE_KERNEL_OBJECT</param>
  1714.         /// <param name="SecurityInfo">DACL_SECURITY_INformATION</param>
  1715.         [DllImport("advapi32.dll", EntryPoint = "SetSecurityInfo")]
  1716.         public static extern int SetSecurityInfo(int handle_jz, int ObjectType_gy, int SecurityInfo_vd,
  1717.             int ppsidOwner_uc, int ppsidGrou_rc, byte[] ppDacl_cg, int ppSacl_bj);

  1718.         /// <summary>
  1719.         /// user32.dll的一个API函数
  1720.         /// </summary>
  1721.         [DllImport("user32.dll", EntryPoint = "SetProcessDPIAware")]
  1722.         public static extern bool SetProcessDPIAware();

  1723.         /// <summary>
  1724.         ///
  1725.         /// </summary>
  1726.         [DllImport("shlwapi.dll", EntryPoint = "StrToIntExA")]
  1727.         public static extern int StrToIntExA_整数(int pszString_qh, int dwFlags_kr, ref int piRet_wa);

  1728.         /// <summary>
  1729.         ///
  1730.         /// </summary>
  1731.         [DllImport("ntdll.dll", EntryPoint = "@strrchr")]
  1732.         public static extern int strrchr(int s_dj, byte c_fj);

  1733.         /// <summary>
  1734.         ///
  1735.         /// </summary>
  1736.         [DllImport("ntdll.dll", EntryPoint = "@strchr")]
  1737.         public static extern int strchr(int s_ml, byte c_ar);

  1738.         /// <summary>
  1739.         ///
  1740.         /// </summary>
  1741.         /// <param name="目的地址">any</param>
  1742.         /// <param name="源地址">any</param>
  1743.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  1744.         public static extern void RtlMoveMemory_LDR_DATA_TABLE_ENTRY64(api.LDR_DATA_TABLE_ENTRY64 目的地址_dw,
  1745.             byte[] 源地址_vj, int 复制尺寸_uq);

  1746.         /// <summary>
  1747.         ///
  1748.         /// </summary>
  1749.         [DllImport("user32.dll", EntryPoint = "wvsprintfA")]
  1750.         public static extern int wvsprintf(string lpstr_dn, string lpcstr_ua, ref long OptionalArguments_sv);

  1751.         /// <summary>
  1752.         ///  
  1753.         /// </summary>
  1754.         [DllImport("kernel32.dll", EntryPoint = "RtlMoveMemory")]
  1755.         public static extern void RtlMoveMemory_BITMAPFILEHEADER_整数1(int pBlock_jd, api.BITMAPFILEHEADER 缓冲区_hw,
  1756.             int 尺寸_sj);

  1757.         /// <summary>
  1758.         ///  
  1759.         /// </summary>
  1760.         [DllImport("kernel32.dll", EntryPoint = "RtlMoveMemory")]
  1761.         public static extern void RtlMoveMemory_BITMAPINFOHEADER_整数(int pBlock_ou, api.BITMAPINFOHEADER 缓冲区_or,
  1762.             int 尺寸_tm);

  1763.         /// <summary>
  1764.         /// 装入字符串资源
  1765.         /// </summary>
  1766.         [DllImport("user32", EntryPoint = "LoadStringA")]
  1767.         public static extern int LoadString(int hInstance_ik, int wID_bf, string lpBuffer_tg, int nBufferMax_nb);

  1768.         /// <summary>
  1769.         ///
  1770.         /// </summary>
  1771.         [DllImport("gdi32", EntryPoint = "GetDeviceGammaRamp")]
  1772.         public static extern bool 获取设备GammaRamp(int hdc_uf, short[] lpv_aq);

  1773.         /// <summary>
  1774.         ///
  1775.         /// </summary>
  1776.         [DllImport("gdi32", EntryPoint = "SetDeviceGammaRamp")]
  1777.         public static extern bool 设置设备GammaRamp(int hdc_jm, short[] lpv_ik);

  1778.         /// <summary>
  1779.         ///
  1780.         /// </summary>
  1781.         [DllImport("kernel32.dll", EntryPoint = "Beep")]
  1782.         public static extern bool Beep(int dwFreq_fz, int dwDuration_pr);

  1783.         /// <summary>
  1784.         /// 在进程中读内存
  1785.         /// </summary>
  1786.         [DllImport("kernel32", EntryPoint = "ReadProcessMemory")]
  1787.         public static extern int ReadProcessMemory_TRAYDATA(int hProcess_nr, int lpBaseAddress_go,
  1788.             ref api.TRAYDATA lpBuffer_mq, int nSize_jw, ref int lpNumberOfBytesWritten_ki);

  1789.         /// <summary>
  1790.         /// 在进程中读内存
  1791.         /// </summary>
  1792.         [DllImport("kernel32", EntryPoint = "ReadProcessMemory")]
  1793.         public static extern int ReadProcessMemory_Bin(int hProcess_ak, int lpBaseAddress_gx, StringBuilder lpBuffer_vp,
  1794.             int nSize_wv, ref int lpNumberOfBytesWritten_sh);

  1795.         /// <summary>
  1796.         /// 在进程中读内存
  1797.         /// </summary>
  1798.         [DllImport("kernel32", EntryPoint = "ReadProcessMemory")]
  1799.         public static extern int ReadProcessMemory_BButton(int hProcess_dz, int lpBaseAddress_hg,
  1800.             ref api.TBBUTTON lpBuffer_ft, int nSize_pl, ref int lpNumberOfBytesWritten_ge);

  1801.         /// <summary>
  1802.         ///
  1803.         /// </summary>
  1804.         /// <param name="SystemInformationClass">未知类型:SYSTEM_INFORMATION_CLASS。</param>
  1805.         /// <param name="SystemInformation">any</param>
  1806.         [DllImport("ntdll.dll", EntryPoint = "ZwQuerySystemInformation")]
  1807.         public static extern int ZwQuerySystemInformation_x(int SystemInformationClass_fl, byte[] SystemInformation_ns,
  1808.             int SystemInformationLength_fb, ref int ReturnLength_ni);


  1809.         /// <summary>
  1810.         ///
  1811.         /// </summary>
  1812.         [DllImport("ntdll.dll", EntryPoint = "ZwOpenProcess")]
  1813.         public static extern int ZwOpenProcess(ref int hProcess_gk, int DesiredAccess_cf,
  1814.             api.OBJECT_ATTRIBUTES ObjectAttributes_nh, api.CLIENT_ID ClientId_ir);

  1815.         /// <summary>
  1816.         ///
  1817.         /// </summary>
  1818.         [DllImport("ntdll.dll", EntryPoint = "ZwDuplicateObject")]
  1819.         public static extern int ZwDuplicateObject(int SourceProcessHandle_hi, int SourceHandle_ip,
  1820.             int TargetProcessHandle_xs, ref int TargetHandle_th, int DesiredAccess_ry, int HandleAttributes_rd,
  1821.             int Options_vr);

  1822.         /// <summary>
  1823.         ///
  1824.         /// </summary>
  1825.         [DllImport("ntdll.dll", EntryPoint = "ZwCreateJobObject")]
  1826.         public static extern int ZwCreateJobObject(ref int JobHandle_ri, int DesiredAccess_gq,
  1827.             api.OBJECT_ATTRIBUTES ObjectAttributes_es);

  1828.         /// <summary>
  1829.         ///
  1830.         /// </summary>
  1831.         [DllImport("ntdll.dll", EntryPoint = "ZwAssignProcessToJobObject")]
  1832.         public static extern int ZwAssignProcessToJobObject(int JobHandle_of, int ProcessHandle_bm);

  1833.         /// <summary>
  1834.         ///
  1835.         /// </summary>
  1836.         [DllImport("ntdll.dll")]
  1837.         public static extern int ZwTerminateJobObject(int JobHandle_bv, int ExitStatus_cm);

  1838.         /// <summary>
  1839.         ///
  1840.         /// </summary>
  1841.         [DllImport("ntdll.dll")]
  1842.         public static extern int ZwTerminateProcess(int ProcessHandle_ck, int ExitStatus_ad);

  1843.         /// <summary>
  1844.         ///
  1845.         /// </summary>
  1846. //        [DllImport("ntdll.dll", EntryPoint = "ZwClose")]
  1847. //        public static extern int ZwClose(_hy);

  1848.         /// <summary>
  1849.         ///
  1850.         /// </summary>
  1851.         [DllImport("psapi.dll", EntryPoint = "GetProcessImageFileNameA")]
  1852.         public static extern int GetProcessImageFileName(int hProcess_uc, string lpImageFileName_vu, int nSize_mv);

  1853.         /// <summary>
  1854.         /// $(b)非零表示成功,零表示失败
  1855.         /// </summary>
  1856.         /// <param name="对象句柄">hObject,欲关闭的一个对象的句柄</param>
  1857.         [DllImport("kernel32.dll", EntryPoint = "CloseHandle")]
  1858.         public static extern int 关闭内核对象_(int 对象句柄_eo);

  1859.         /// <summary>
  1860.         ///
  1861.         /// </summary>
  1862.         [DllImport("kernel32.dll", EntryPoint = "QueryDosDeviceA")]
  1863.         public static extern int QueryDosDeviceA(string lpDeviceName_us, string lpTargetPath_fj, int ucchMax_ai);

  1864.         /// <summary>
  1865.         ///
  1866.         /// </summary>
  1867.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  1868.         public static extern void RtlMoveMemory_IP_PER_ADAPTER_INFO(ref api.IP_PER_ADAPTER_INFO Destination_rs,
  1869.             int Source_nj, int Length_uy);

  1870.         /// <summary>
  1871.         ///
  1872.         /// </summary>
  1873.         [DllImport("IPHlpApi")]
  1874.         public static extern int GetPerAdapterInfo(int IfIndex_sr, byte[] pPerAdapterInfo_dj, ref int pOutBufLen_yg);

  1875.         /// <summary>
  1876.         ///
  1877.         /// </summary>
  1878.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  1879.         public static extern void RtlMoveMemory_IP_ADAPTER_INFO(ref api.IP_ADAPTER_INFO Destination_xh,
  1880.             int Source_gt,
  1881.             int Length_yi);

  1882.         /// <summary>
  1883.         ///
  1884.         /// </summary>
  1885.         [DllImport("kernel32")]
  1886.         public static extern int SetThreadContext(int hThread_ho, ref api.CONTEXT86 lpContext_pm);

  1887.         /// <summary>
  1888.         ///
  1889.         /// </summary>
  1890.         [DllImport("kernel32", EntryPoint = "LocalSize")]
  1891.         public static extern int Len_ish(ref api.IMAGE_SECTION_HEADER hMem_dm);

  1892.         /// <summary>
  1893.         ///
  1894.         /// </summary>
  1895.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  1896.         public static extern void RtlMoveMemory_IMAGE_SECTION_HEADER(ref api.IMAGE_SECTION_HEADER Dest_it,
  1897.             ref byte Src_qn, int L_br);

  1898.         /// <summary>
  1899.         ///
  1900.         /// </summary>
  1901.         [DllImport("ntdll.dll")]
  1902.         public static extern int ZwUnmapViewOfSection(int hProcess_ld, ref int BaseAddress_jy);

  1903.         /// <summary>
  1904.         ///
  1905.         /// </summary>
  1906.         [DllImport("kernel32")]
  1907.         public static extern int ReadProcessMemory(int hProcess_if, int lpBaseAddress_vk, ref int lpBuffer_vh,
  1908.             int nSize_qk, ref int lpNumberOfBytesWritten_fb);

  1909.         /// <summary>
  1910.         ///
  1911.         /// </summary>
  1912.         [DllImport("kernel32", EntryPoint = "WriteProcessMemory")]
  1913.         public static extern int WriteProcessMemory_整数35(int hProcess_zq, int lpBaseAddress_tn, ref int lpBuffer_iv,
  1914.             int nSize_kt, ref int lpNumberOfBytesWritten_or);

  1915.         /// <summary>
  1916.         ///
  1917.         /// </summary>
  1918.         [DllImport("kernel32")]
  1919.         public static extern int WriteProcessMemory(int hProcess_zl, int lpBaseAddress_gu, ref byte lpBuffer_ut,
  1920.             int nSize_it, ref int lpNumberOfBytesWritten_jf);

  1921.         /// <summary>
  1922.         ///
  1923.         /// </summary>
  1924.         [DllImport("kernel32")]
  1925.         public static extern int GetThreadContext(int hThread_av, ref api.CONTEXT86 lpContext_bm);

  1926.         /// <summary>
  1927.         ///
  1928.         /// </summary>
  1929.         [DllImport("kernel32", EntryPoint = "LocalSize")]
  1930.         public static extern int Len_si(ref api.STARTUPINFO_x hMem_yf);

  1931.         /// <summary>
  1932.         ///
  1933.         /// </summary>
  1934.         [DllImport("kernel32", EntryPoint = "LocalSize")]
  1935.         public static extern int Len_inh(ref api.IMAGE_NT_HEADERS hMem_ac);

  1936.         /// <summary>
  1937.         ///
  1938.         /// </summary>
  1939.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  1940.         public static extern void RtlMoveMemory_IMAGE_NT_HEADERS(ref api.IMAGE_NT_HEADERS Dest_if, ref byte Src_tp,
  1941.             int L_eu);

  1942.         /// <summary>
  1943.         ///
  1944.         /// </summary>
  1945.         [DllImport("kernel32", EntryPoint = "LocalSize")]
  1946.         public static extern int Len_idh(ref api.IMAGE_DOS_HEADER hMem_py);

  1947.         /// <summary>
  1948.         ///
  1949.         /// </summary>
  1950.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  1951.         public static extern void RtlMoveMemory_IMAGE_DOS_HEADER(ref api.IMAGE_DOS_HEADER Dest_hp, ref byte Src_rp,
  1952.             int L_lz);

  1953.         /// <summary>
  1954.         ///
  1955.         /// </summary>
  1956.         [DllImport("ole32", EntryPoint = "CoCreateGuid")]
  1957.         public static extern void CoCreateGuid(byte[] guid_fu);

  1958.         /// <summary>
  1959.         /// 释放堆
  1960.         /// </summary>
  1961.         /// <param name="hHeap">堆句柄</param>
  1962.         [DllImport("Kernel32", EntryPoint = "HeapDestroy")]
  1963.         public static extern bool HeapDestroy(int hHeap_sj);

  1964.         /// <summary>
  1965.         /// 创建一个堆
  1966.         /// </summary>
  1967.         /// <param name="dwFlags">创建方式内存块标志。为1不检测独占</param>
  1968.         /// <param name="len">默认大小</param>
  1969.         /// <param name="Exlen">扩展大小0为无限制</param>
  1970.         [DllImport("kernel32", EntryPoint = "HeapCreate")]
  1971.         public static extern int HeapCreate(int dwFlags_ux, int len_uj, int Exlen_yp);

  1972.         /// <summary>
  1973.         /// 创建许可证
  1974.         /// </summary>
  1975.         [DllImport("kernel32", EntryPoint = "InitializeCriticalSection")]
  1976.         public static extern void InitializeCriticalSection_临界许可(ref api.临界许可 lpCriticalSection_xy);

  1977.         /// <summary>
  1978.         /// 销毁许可证
  1979.         /// </summary>
  1980.         [DllImport("kernel32", EntryPoint = "DeleteCriticalSection")]
  1981.         public static extern int DeleteCriticalSection_临界许可(ref api.临界许可 lpCriticalSection_es);

  1982.         /// <summary>
  1983.         /// 进入许可区
  1984.         /// </summary>
  1985.         [DllImport("kernel32", EntryPoint = "EnterCriticalSection")]
  1986.         public static extern void EnterCriticalSection_临界许可(ref api.临界许可 lpCriticalSection_qh);

  1987.         /// <summary>
  1988.         /// 退出许可区
  1989.         /// </summary>
  1990.         [DllImport("kernel32", EntryPoint = "LeaveCriticalSection")]
  1991.         public static extern void LeaveCriticalSection_临界许可(ref api.临界许可 lpCriticalSection_yo);

  1992.         /// <summary>
  1993.         /// 移动内存
  1994.         /// </summary>
  1995.         /// <param name="Dest">目标地址</param>
  1996.         /// <param name="Src">原地址</param>
  1997.         /// <param name="length">长度</param>
  1998.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  1999.         public static extern bool RtlMoveMemory_Eint_int(int Dest_zr, ref int Src_pd, int length_ha);

  2000.         /// <summary>
  2001.         /// 移动内存
  2002.         /// </summary>
  2003.         /// <param name="Dest">目标地址</param>
  2004.         /// <param name="Src">原地址</param>
  2005.         /// <param name="length">长度</param>
  2006.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  2007.         public static extern bool RtlMoveMemory_Ebin_int(int Dest_pt, StringBuilder Src_ba, int length_yj);

  2008.         /// <summary>
  2009.         /// 移动内存
  2010.         /// </summary>
  2011.         /// <param name="Dest">目标地址</param>
  2012.         /// <param name="Src">原地址</param>
  2013.         /// <param name="length">长度</param>
  2014.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  2015.         public static extern bool RtlMoveMemory_Estr_int(int Dest_ji, ref string Src_ke, int length_kc);
  2016. //
  2017. //        /// <summary>
  2018. //        ///
  2019. //        /// </summary>
  2020. //        [DllImport("OLEACC.DLL", EntryPoint = "AccessibleChildren")]
  2021. //        public static extern int AccessibleChildren(int paccContainer_da, int iChildStart_pi, int cChildren_gk,
  2022. //            变体型[] rgvarChildren_gn, ref int pcObtained_sr);

  2023.         /// <summary>
  2024.         ///
  2025.         /// </summary>
  2026.         [DllImport("OLEACC.DLL", EntryPoint = "AccessibleObjectFromWindow")]
  2027.         public static extern int AccessibleObjectFromWindow(int hwnd_th, int dwId_nf, byte[] riid_zu, int ppvObject_hf);

  2028.         /// <summary>
  2029.         ///
  2030.         /// </summary>
  2031.         [DllImport("kernel32.dll", EntryPoint = "RtlMoveMemory")]
  2032.         public static extern void RtlMoveMemory_obj2pint(ref int Destination_lx, object Source_lf, int Length_hz);

  2033.         /// <summary>
  2034.         ///
  2035.         /// </summary>
  2036.         [DllImport("OLEACC.DLL", EntryPoint = "GetStateTextA")]
  2037.         public static extern int GetStateText(int lStateBit_lm, string lpszState_ud, int cchState_rf);

  2038.         /// <summary>
  2039.         ///
  2040.         /// </summary>
  2041.         [DllImport("OLEACC.DLL", EntryPoint = "GetStateTextA")]
  2042.         public static extern int GetStateText_int(int lStateBit_ng, int lpszState_dr, int cchState_jb);

  2043.         /// <summary>
  2044.         ///
  2045.         /// </summary>
  2046.         [DllImport("OLEACC.DLL", EntryPoint = "GetRoleTextA")]
  2047.         public static extern int GetRoleText(int lRole_xz, string lpszRole_ie, int cchRoleMax_lb);

  2048.         /// <summary>
  2049.         ///
  2050.         /// </summary>
  2051.         [DllImport("OLEACC.DLL", EntryPoint = "GetRoleTextA")]
  2052.         public static extern int GetRoleText_int(int lRole_pl, int lpszRole_rp, int cchRoleMax_cp);

  2053.         /// <summary>
  2054.         ///
  2055.         /// </summary>
  2056.         [DllImport("OLEACC.DLL", EntryPoint = "WindowFromAccessibleObject")]
  2057.         public static extern void WindowFromAccessibleObject(int TIAccessible_xc, ref int phwnd_mc);

  2058. //        /// <summary>
  2059. //        ///
  2060. //        /// </summary>
  2061. //        [DllImport("OLEACC.DLL", EntryPoint = "AccessibleObjectFromPoint")]
  2062. //        public static extern int AccessibleObjectFromPoint(int ptScreenx_yj, int ptScreeny_fm, int ppacc_ve,
  2063. //            ref 变体型 pvarChild_ai);

  2064.         /// <summary>
  2065.         ///
  2066.         /// </summary>
  2067.         [DllImport("kernel32", EntryPoint = "GetShortPathNameA")]
  2068.         public static extern int GetShortPathName(string lpszLongPath_rg, string lpszShortPath_ob, int cchBuffer_ln);

  2069.         /// <summary>
  2070.         ///
  2071.         /// </summary>
  2072.         [DllImport("winmm.dll", EntryPoint = "mciSendStringA")]
  2073.         public static extern int mciSendString(string lpstrCommand_is, string lpstrReturnString_gv,
  2074.             int uReturnLength_pm, int hwndCallback_af);

  2075.         /// <summary>
  2076.         ///
  2077.         /// </summary>
  2078.         [DllImport("advapi32.dll", EntryPoint = "CryptDecrypt")]
  2079.         public static extern bool CryptDecrypt_x(int hKey_xo, int hHash_vi, bool Final_vg, int dwFlags_vl,
  2080.             StringBuilder pbData_ic, ref int pdwDataLen_fh);

  2081.         /// <summary>
  2082.         ///
  2083.         /// </summary>
  2084.         [DllImport("advapi32.dll", EntryPoint = "CryptEncrypt")]
  2085.         public static extern bool CryptEncrypt_x(int hKey_jv, int hHash_zf, bool Final_kk, int dwFlags_ml,
  2086.             StringBuilder pbData_gc, ref int pdwDataLen_ma, int dwBufLen_ni);

  2087.         /// <summary>
  2088.         ///
  2089.         /// </summary>
  2090.         [DllImport("advapi32.dll", EntryPoint = "CryptGetHashParam")]
  2091.         public static extern bool CryptGetHashParam_x(int hHash_jk, int dwParam_vv, int pByte_ok, ref int pdwDataLen_pu,
  2092.             int dwFlags_or);

  2093.         /// <summary>
  2094.         ///
  2095.         /// </summary>
  2096.         [DllImport("advapi32.dll", EntryPoint = "CryptHashData")]
  2097.         public static extern bool CryptHashData_x(int hHash_ff, StringBuilder pbData_hy, int dwDataLen_kg,
  2098.             int dwFlags_fb);

  2099.         /// <summary>
  2100.         ///
  2101.         /// </summary>
  2102.         [DllImport("advapi32.dll", EntryPoint = "CryptReleaseContext")]
  2103.         public static extern bool CryptReleaseContext_x(int hProv_eo, int dwFlags_es);

  2104.         /// <summary>
  2105.         ///
  2106.         /// </summary>
  2107.         [DllImport("advapi32.dll", EntryPoint = "CryptCreateHash")]
  2108.         public static extern bool CryptCreateHash_x(int hProv_cj, int Algid_nf, int hKey_sl, int dwFlags_ky,
  2109.             ref int phHash_tk);

  2110.         /// <summary>
  2111.         ///
  2112.         /// </summary>
  2113.         [DllImport("advapi32.dll", EntryPoint = "CryptAcquireContextA")]
  2114.         public static extern bool CryptAcquireContext_x(ref int phProv_rg, string pszContainer_kl,
  2115.             string pszProvider_ub, int dwProvType_vg, int dwFlags_cx);

  2116.         /// <summary>
  2117.         ///
  2118.         /// </summary>
  2119.         [DllImport("advapi32.dll", EntryPoint = "CryptGetKeyParam")]
  2120.         public static extern bool CryptGetKeyParam(int hKey_ry, int dwParam_iy, StringBuilder pbData_wc,
  2121.             ref int pdwDataLen_gb, int dwFlags_iy);

  2122.         /// <summary>
  2123.         ///
  2124.         /// </summary>
  2125.         [DllImport("advapi32.dll", EntryPoint = "CryptSetKeyParam")]
  2126.         public static extern bool CryptSetKeyParam(int hKey_tr, int dwParam_rh, byte[] pbData_ph, int dwFlags_gb);

  2127.         /// <summary>
  2128.         ///
  2129.         /// </summary>
  2130.         [DllImport("gdi32", EntryPoint = "GetTextMetricsA")]
  2131.         public static extern int 取得物理字体信息_(int 设备场景_ln, api.物理字体属性信息_ 属性信息_dt);

  2132.         /// <summary>
  2133.         ///
  2134.         /// </summary>
  2135.         [DllImport("advapi32.dll", EntryPoint = "CryptImportKey")]
  2136.         public static extern bool CryptImportKey(int hProv_sl, byte[] pbData_et, int dwDataLen_mg, int hPubKey_cx,
  2137.             int dwFlags_sy, ref int phKey_md);

  2138.         /// <summary>
  2139.         /// 设置指定设备场景的映射模式  执行成功为设备场景原来的映射模式,失败为0
  2140.         /// </summary>
  2141.         /// <param name="hdc">设备场景句柄</param>
  2142.         /// <param name="nMapMode">下列常数之一:;MM_ANISOTROPIC:视口和窗口范围可完全任意;MM_HIENGLISH:逻辑单元为0.001inch,起点在左下角;MM_HIMETRIC:逻辑单元为0.01millimeter,起点在左下角;MM_ISOTROPIC:视口和窗口范围任意,只是x和y逻辑单元尺寸要相同;MM_LOENGLISH:逻辑单元为0.01inch,起点在左下角;MM_HIMETRIC:逻辑单元为0.1millimeter,起点在左下角;MM_TEXT:逻辑单元为一个像素;MM_TWIPS:逻辑单元为1twip(1/1440inch),起点在左下角;</param>
  2143.         [DllImport("gdi32", EntryPoint = "SetMapMode")]
  2144.         public static extern int SetMapMode(int hdc_ka, int nMapMode_sl);

  2145.         /// <summary>
  2146.         ///
  2147.         /// </summary>
  2148.         [DllImport("user32", EntryPoint = "GetDesktopWindow")]
  2149.         public static extern int 取屏幕句柄_();

  2150.         /// <summary>
  2151.         ///
  2152.         /// </summary>
  2153.         [DllImport("user32.dll", EntryPoint = "GetWindowDC")]
  2154.         public static extern int 取窗口全部设备场景_(int 窗口句柄_dl);

  2155.         /// <summary>
  2156.         /// ReleaseDC
  2157.         /// </summary>
  2158.         /// <param name="窗口句柄">hwnd,要释放的设备场景相关的窗口句柄</param>
  2159.         /// <param name="设备场景">hdc,要释放的设备场景句柄</param>
  2160.         [DllImport("user32", EntryPoint = "ReleaseDC")]
  2161.         public static extern int 释放设备场景_(int 窗口句柄_of, int 设备场景_qq);

  2162.         /// <summary>
  2163.         ///
  2164.         /// </summary>
  2165.         [DllImport("ntdll")]
  2166.         public static extern int NtReadVirtualMemory(int 句柄_kr, int 地址_da, byte[] 缓冲区_cy, int 读取长度_sg,
  2167.             ref int 实际读取长度_fo);

  2168.         /// <summary>
  2169.         ///
  2170.         /// </summary>
  2171.         [DllImport("NTDLL.DLL")]
  2172.         public static extern int ZwQueryInformationProcess(int ProcessHandle_fr, int ProcessInformationClass_ki,
  2173.             api.PROCESS_BASIC_INFORMATION ProcessInformation_wd, int ProcessInformationLength_hr,
  2174.             ref int ReturnLength_bx);

  2175.         /// <summary>
  2176.         ///
  2177.         /// </summary>
  2178.         [DllImport("Advapi32.dll", EntryPoint = "LookupAccountSidA")]
  2179.         public static extern bool LookupAccountSid(string lpSystemName_fs, byte[] lpSid_vy, string lpName_xm,
  2180.             ref int cchName_gb, string lpReferencedDomainName_zu, ref int cchReferencedDomainName_rs, ref int peUse_fp);

  2181.         /// <summary>
  2182.         ///
  2183.         /// </summary>
  2184.         [DllImport("Winsta.dll", EntryPoint = "WinStationGetProcessSid")]
  2185.         public static extern int WinStationGetProcessSid(int hServer_td, int ProcessId_wy, long ProcessStartTime_nr,
  2186.             StringBuilder pProcessUserSid_xv, ref int dwSidSize_sv);

  2187.         /// <summary>
  2188.         ///
  2189.         /// </summary>
  2190.         [DllImport("kernel32", EntryPoint = "RtlMoveMemory")]
  2191.         public static extern void RtlMoveMemory_SYSTEM_PROCESSES(api.SYSTEM_PROCESS_INFORMATION_ex Destination_fi,
  2192.             int Source_br, int Length_gl);

  2193.         /// <summary>
  2194.         ///
  2195.         /// </summary>
  2196.         [DllImport("ntdll.dll", EntryPoint = "RtlAdjustPrivilege")]
  2197.         public static extern int RtlAdjustPrivilege_x(int Privilege_qj, bool Enable_gx, bool CurrentThread_lp,
  2198.             ref int Enabled_dx);

  2199.         /// <summary>
  2200.         ///
  2201.         /// </summary>
  2202.         [DllImport("ntdll.dll", EntryPoint = "NtWow64QueryInformationProcess64")]
  2203.         public static extern int NtWow64QueryInformationProcess64(int hProcess_dz, int ProcessInfoclass_pi,
  2204.             api.PROCESS_BASIC_INFORMATION64 pBuffer_oe, int nSize_vu, int nReturnSize_fs);

  2205.         /// <summary>
  2206.         ///
  2207.         /// </summary>
  2208.         [DllImport("ntdll.dll", EntryPoint = "NtWow64ReadVirtualMemory64")]
  2209.         public static extern int NtWow64ReadVirtualMemory64_LDR(int hProcess_ax, long pMemAddress_xz,
  2210.             api.PEB_LDR_DATA pBuffer_wc, long nSize_lb, int nReturnSize_do);

  2211.         /// <summary>
  2212.         ///
  2213.         /// </summary>
  2214.         [DllImport("ntdll.dll", EntryPoint = "NtWow64ReadVirtualMemory64")]
  2215.         public static extern int NtWow64ReadVirtualMemory64_Process(int hProcess_yf, long pMemAddress_kr,
  2216.             api.RTL_USER_PROCESS_PARAMETERS pBuffer_hm, long nSize_je, int nReturnSize_rm);

  2217.         /// <summary>
  2218.         ///
  2219.         /// </summary>
  2220.         [DllImport("ntdll.dll", EntryPoint = "NtWow64ReadVirtualMemory64")]
  2221.         public static extern int NtWow64ReadVirtualMemory64_bin(int hProcess_sx, long pMemAddress_ju, byte[] pBuffer_xy,
  2222.             long nSize_ad, int nReturnSize_ql);

  2223.         /// <summary>
  2224.         /// SendMessageTimeout,Long,成功时返回TRUE,失败时返回FALSE。会设置GetLastError
  2225.         /// </summary>
  2226.         /// <param name="窗口句柄">hwnd,要接收消息的一个窗口的句柄</param>
  2227.         /// <param name="标识符">msg,消息的标识符</param>
  2228.         /// <param name="消息1">wparam,由消息决定</param>
  2229.         /// <param name="消息2">lparam,由消息决定</param>
  2230.         /// <param name="类型">fuflags,下述常数的一个或多个SMTO_ABORTIFHUNG如目标进程挂起,则函数立即返回</param>
  2231.         /// <param name="超时值">utimeout,超时值,采用毫秒为单位</param>
  2232.         /// <param name="结果">lpdwresult,用于装载函数结果的一个变量</param>
  2233.         [DllImport("user32.dll", EntryPoint = "SendMessageTimeoutA")]
  2234.         public static extern int lms520_SendMessageTimeout(int 窗口句柄_pc, int 标识符_xo, int 消息1_ye, int 消息2_ye, int 类型_wv,
  2235.             int 超时值_wm, int 结果_rc);

  2236.         /// <summary>
  2237.         /// 刷新关联图标
  2238.         /// </summary>
  2239.         /// <param name="SHCNE_ASSOCCHANGED">134217728</param>
  2240.         /// <param name="SHCNF_IDLIST">0</param>
  2241.         /// <param name="nil">0</param>
  2242.         /// <param name="nil">0</param>
  2243.         [DllImport("shell32", EntryPoint = "SHChangeNotify")]
  2244.         public static extern void SHChangeNotify(int SHCNE_ASSOCCHANGED_mf, int SHCNF_IDLIST_tn, int nil_rb,
  2245.             int nil_op);

  2246.         /// <summary>
  2247.         /// 该函数把屏幕上指定点的屏幕坐标转换成用户坐标。 判断屏幕上一个指定点的客户区坐标 非零表示成功,零表示失败
  2248.         /// </summary>
  2249.         /// <param name="hwnd">一个窗口的句柄,该窗口定义了要使用的客户区坐标系统</param>
  2250.         /// <param name="lpPoint">POINTAPI,屏幕坐标系统中包含了屏幕点的结构。这个函数会随同相应的客户区坐标(由hwnd决定)载入结构;</param>
  2251.         [DllImport("user32", EntryPoint = "ScreenToClient")]
  2252.         public static extern int ScreenToClient(int hwnd_fi, api.精易_坐标 lpPoint_qq);

  2253.         /// <summary>
  2254.         /// 返回父窗口中包含了指定点的第一个子窗口的句柄   
  2255.         /// </summary>
  2256.         /// <param name="hWnd">说明http://topic.csdn.net/t/20021107/17/1157529.html</param>
  2257.         /// <param name="un">CWP_ALL(0)=测试所有窗口</param>
  2258.         [DllImport("user32", EntryPoint = "ChildWindowFromPointEx")]
  2259.         public static extern int ChildWindowFromPointEx(int hWnd_vn, int x_tk, int y_vv, int un_pe);

  2260.         /// <summary>
  2261.         ///
  2262.         /// </summary>
  2263.         [DllImport("Comdlg32.dll", EntryPoint = "GetFileTitleA")]
  2264.         public static extern int GetFileTitleA(string lpszFile_ua, string lpszTitle_ld, int cbBuf_hq);


  2265.         /// <summary>
  2266.         /// 该函数从指定的窗口的属性表中删除一项。指定的字符串标识了要删除的项。
  2267.         /// </summary>
  2268.         /// <param name="hWnd">指向要改变属性项的窗口的句柄。</param>
  2269.         /// <param name="lpString">指向以null结尾的字符串指针,或者包含一个标识字符串的原子。如果该参数是一个原子,那么它必须是使用AddAtom函数创建的。原子是16位的数据值,它必须是放置在lpString参数的低位字中,</param>
  2270.         [DllImport("user32", EntryPoint = "RemovePropA")]
  2271.         public static extern int RemovePropA(int hWnd_lk, string lpString_op);

  2272.         /// <summary>
  2273.         /// 该函数在指定窗口的属性表中增加一个新项,或者修改一个现有项。如果指定的字符串不在属性表中,那么就增加该新的项,新项中包含该字符串和句柄,否则就用指定的句柄替换该字符串的全前句柄。
  2274.         /// </summary>
  2275.         /// <param name="hWnd">指向窗口的句柄,该窗口的属性表要接收一个新项。</param>
  2276.         /// <param name="lpString">指向以null结尾的字符串指针,或者包含一个标识字符串的原子。如果该参数是一个原子,么它必须是以前使用GlobalAddAtom函数创建的。原子是16位的数据值,它必须是放置在lpstring参数低位字中,而高位字必须为O。</param>
  2277.         /// <param name="hData">指向要拷贝到属性表中的数据的句柄。该数据句柄可以标识任何对应用程序有用的值。</param>
  2278.         [DllImport("user32", EntryPoint = "SetPropA")]
  2279.         public static extern bool SetPropA(int hWnd_lp, string lpString_ld, int hData_id);

  2280.         /// <summary>
  2281.         /// 该函数从给定窗口的属性列表中检索数据句柄。给定的字符串标识了要检索的句柄。该字符串和句柄必须在前一次调用SetProp函数时已经加到属性表中。
  2282.         /// </summary>
  2283.         /// <param name="hWnd">指向要搜索属性表的窗口。返回值:如果属性表中包含了给定的字符串,那么返回值为相关的数据句柄。否则,返回值为NULL。</param>
  2284.         /// <param name="lpString">指向以null结尾的字符串指针,或者包含一个标识字符串的原子。如果该参数是一个原子,那么它必须是使用GlobalAddAtom函数创建的。原子是16位的数据值,它必须是放置在lpstring参数的低位率中,而高位字必须为O。</param>
  2285.         [DllImport("user32", EntryPoint = "GetPropA")]
  2286.         public static extern int GetPropA(int hWnd_eh, string lpString_qc);

  2287.         /// <summary>
  2288.         ///
  2289.         /// </summary>
  2290.         /// <param name="hFile">一个文件的句柄</param>
  2291.         /// <param name="lpBuffer">要写入的一个数据缓冲区</param>
  2292.         /// <param name="nNumberOfBytesToWrite">要写入数据的字节数量。如写入零字节,表示什么都不写入,但会更新文件的“上一次修改时间”。针对位于远程系统的命名管道,限制在65535个字节以内</param>
  2293.         /// <param name="lpNumberOfBytesWritten">实际写入文件的字节数量</param>
  2294.         [DllImport("kernel32.dll", EntryPoint = "WriteFile")]
  2295.         public static extern bool WriteFile(int hFile_hw, byte[] lpBuffer_wv, int nNumberOfBytesToWrite_zu,
  2296.             ref int lpNumberOfBytesWritten_ds, int lpOverlapped_am);

  2297.         /// <summary>
  2298.         ///
  2299.         /// </summary>
  2300.         [DllImport("user32.dll", EntryPoint = "GetScrollPos")]
  2301.         public static extern int GetScrollPos(int hWnd_uz, int nBar_lq);

  2302.         /// <summary>
  2303.         ///
  2304.         /// </summary>
  2305.         /// <param name="Url名称">lpszUrlName</param>
  2306.         [DllImport("wininet.dll", EntryPoint = "DeleteUrlCacheEntry")]
  2307.         public static extern void DeleteUrlCacheEntry(string Url名称_il);

  2308.         /// <summary>
  2309.         /// 寻找第一个Url缓存入口_
  2310.         /// </summary>
  2311.         /// <param name="寻找样式">lpszUrlSearchPattern</param>
  2312.         /// <param name="第一个Url缓存入口信息">lpFirstCacheEntryInfo</param>
  2313.         /// <param name="第一个Url缓存入口信息大小">lpdwFirstCacheEntryInfoBufferSize</param>
  2314.         [DllImport("wininet.dll", EntryPoint = "FindFirstUrlCacheEntryA")]
  2315.         public static extern int FindFirstUrlCacheEntryA(string 寻找样式_ak, byte[] 第一个Url缓存入口信息_qt,
  2316.             ref int 第一个Url缓存入口信息大小_fa);

  2317.         /// <summary>
  2318.         /// 寻找下一个Url缓存入口_
  2319.         /// </summary>
  2320.         /// <param name="下一个Url缓存入口信息">lpNextCacheEntryInfo</param>
  2321.         /// <param name="lpNextCacheEntryInfo">Any型</param>
  2322.         /// <param name="下一个Url缓存入口信息大小">lpdwNextCacheEntryInfoBufferSize</param>
  2323.         [DllImport("wininet.dll", EntryPoint = "FindNextUrlCacheEntryA")]
  2324.         public static extern int FindNextUrlCacheEntryA(int 下一个Url缓存入口信息_rb, byte[] lpNextCacheEntryInfo_rj,
  2325.             ref int 下一个Url缓存入口信息大小_mh);

  2326.         /// <summary>
  2327.         /// 关闭寻找缓存_
  2328.         /// </summary>
  2329.         /// <param name="枚举句柄">hEnumHandle</param>
  2330.         [DllImport("wininet.dll", EntryPoint = "FindCloseUrlCache")]
  2331.         public static extern int FindCloseUrlCache(int 枚举句柄_ob);

  2332.         /// <summary>
  2333.         ///
  2334.         /// </summary>
  2335.         [DllImport("Shell32.dll", EntryPoint = "SHFileOperationA")]
  2336.         public static extern int SHFileOperationA(api.SHFILEOPSTRUCT 文件参数_jd);

  2337.         /// <summary>
  2338.         /// 成功返回内存指针
  2339.         /// </summary>
  2340.         /// <param name="name">机器名称</param>
  2341.         [DllImport("ws2_32.dll", EntryPoint = "gethostbyname")]
  2342.         public static extern int gethostbyname(string name_vq);

  2343.         /// <summary>
  2344.         /// 强制立即更新窗口,窗口中以前屏蔽的所有区域都会重画(在vb里使用:如vb窗体或控件的任何部分需要更新,可考虑直接使用refresh方法  非零表示成功,零表示失败
  2345.         /// </summary>
  2346.         /// <param name="hwnd">欲更新窗口的句柄;</param>
  2347.         [DllImport("user32", EntryPoint = "UpdateWindow")]
  2348.         public static extern int UpdateWindow(int hwnd_da);

  2349.         /// <summary>
  2350.         /// 取本机名,失败返回-1,成功返回0。
  2351.         /// </summary>
  2352.         /// <param name="name">给变量,用于存放名称</param>
  2353.         /// <param name="namelen">上一个参数的长度</param>
  2354.         [DllImport("ws2_32.dll", EntryPoint = "gethostname")]
  2355.         public static extern int gethostname(ref string name_se, int namelen_pu);

  2356.         /// <summary>
  2357.         /// 发送数据(UDP)
  2358.         /// </summary>
  2359.         /// <param name="s">套接字描述符</param>
  2360.         /// <param name="buf">数据</param>
  2361.         /// <param name="len">数据长度</param>
  2362.         /// <param name="flags">0</param>
  2363.         /// <param name="to">目标地址信息</param>
  2364.         /// <param name="tolen">地址信息长度</param>
  2365.         [DllImport("ws2_32.dll", EntryPoint = "sendto")]
  2366.         public static extern int sendto(int s_go, StringBuilder buf_zi, int len_ay, int flags_wf,
  2367.             ref api.套接字地址 to_om, int tolen_yn);

  2368.         /// <summary>
  2369.         /// 接收数据(UDP)
  2370.         /// </summary>
  2371.         /// <param name="s">套接字描述符</param>
  2372.         /// <param name="buf">数据(提供变量)</param>
  2373.         /// <param name="len">数据长度</param>
  2374.         /// <param name="flags">0</param>
  2375.         /// <param name="from">来源地址信息(提供变量)</param>
  2376.         /// <param name="fromlen">地址信息长度(提供变量)</param>
  2377.         [DllImport("ws2_32.dll", EntryPoint = "recvfrom")]
  2378.         public static extern int recvfrom(int s_yy, StringBuilder buf_vy, int len_vo, int flags_jh,
  2379.             ref api.套接字地址 from_xy, ref int fromlen_ws);

  2380.         /// <summary>
  2381.         /// 连接到服务器(TCP)
  2382.         /// </summary>
  2383.         /// <param name="网络通讯标识符">s</param>
  2384.         /// <param name="名称结构">addr</param>
  2385.         /// <param name="名称结构长度">namelen(16)</param>
  2386.         [DllImport("ws2_32.dll", EntryPoint = "connect")]
  2387.         public static extern int connect(int 网络通讯标识符_vh, api.套接字地址 名称结构_sp, int 名称结构长度_tp);

  2388.         /// <summary>
  2389.         ///
  2390.         /// </summary>
  2391.         /// <param name="readfds">指向一组等待可读性检查的套接口</param>
  2392.         /// <param name="writefds">指向一组等待可写性检查的套接口</param>
  2393.         /// <param name="exceptfds">指向一组等待错误检查的套接口</param>
  2394.         [DllImport("ws2_32.dll", EntryPoint = "select")]
  2395.         public static extern int select(int nfds_mb, ref api.fd_set readfds_ce, ref api.fd_set writefds_jl,
  2396.             ref api.fd_set exceptfds_ly, ref int timeout_mi);

  2397.         /// <summary>
  2398.         ///
  2399.         /// </summary>
  2400.         [DllImport("wininet.dll", EntryPoint = "InternetOpenUrlA")]
  2401.         public static extern int InternetOpenUrlA(int Internet句柄_qv, string Url地址_jh, string 头文本_el, int 头文本长度_ko,
  2402.             int 标志_er, int 定义值_lu);

  2403.         /// <summary>
  2404.         /// 异步选择_ 本函数自动将套接口设置为非阻塞模式  0  表明是成功的
  2405.         /// </summary>
  2406.         /// <param name="网络通讯标识符">s标识一个需要事件通知的套接口的描述符</param>
  2407.         /// <param name="窗口句柄">hWnd标识一个在网络事件发生时需要接收消息的窗口句柄</param>
  2408.         /// <param name="消息值">wMsg在网络事件发生时要接收的消息</param>
  2409.         /// <param name="事件">lEvent位屏蔽码</param>
  2410.         [DllImport("ws2_32.dll", EntryPoint = "WSAAsyncSelect")]
  2411.         public static extern int WSAAsyncSelect(int 网络通讯标识符_ls, int 窗口句柄_md, int 消息值_mi, int 事件_qc);

  2412.         /// <summary>
  2413.         /// 获取远端信息(已连接对方IP和端口)。成功返回0
  2414.         /// </summary>
  2415.         /// <param name="name">地址信息</param>
  2416.         /// <param name="namelen">name长度</param>
  2417.         [DllImport("ws2_32.dll", EntryPoint = "getpeername")]
  2418.         public static extern int getpeername(int 句柄_rp, ref api.套接字地址 name_xe, ref int namelen_ef);

  2419.         /// <summary>
  2420.         /// 获取本地接口的地址信息(IP和端口)。成功返回0
  2421.         /// </summary>
  2422.         /// <param name="s">句柄</param>
  2423.         /// <param name="name">地址信息</param>
  2424.         /// <param name="namelen">name长度</param>
  2425.         [DllImport("ws2_32.dll", EntryPoint = "getsockname")]
  2426.         public static extern int GetsockName(int s_uk, ref api.套接字地址 name_wf, ref int namelen_qk);

  2427.         /// <summary>
  2428.         /// 接收byte[]数据(TCP,当数据这次未接收完时返回剩余字节数)
  2429.         /// </summary>
  2430.         /// <param name="网络通讯标识符">s</param>
  2431.         /// <param name="缓冲区">buf数据(提供变量)</param>
  2432.         /// <param name="缓冲区长度">lLen</param>
  2433.         /// <param name="标志">flags</param>
  2434.         [DllImport("ws2_32.dll", EntryPoint = "recv")]
  2435.         public static extern int recv_byte(int 网络通讯标识符_mf, StringBuilder 缓冲区_yr, int 缓冲区长度_we, int 标志_pl);

  2436.         /// <summary>
  2437.         /// 接收byte[]数据(TCP,当数据这次未接收完时返回剩余字节数)
  2438.         /// </summary>
  2439.         /// <param name="网络通讯标识符">s</param>
  2440.         /// <param name="缓冲区">buf数据(提供变量)</param>
  2441.         /// <param name="缓冲区长度">lLen</param>
  2442.         /// <param name="标志">flags</param>
  2443.         [DllImport("ws2_32.dll", EntryPoint = "recv")]
  2444.         public static extern int recv_文本型(int 网络通讯标识符_wf, ref string 缓冲区_bn, int 缓冲区长度_kx, int 标志_gd);

  2445.         /// <summary>
  2446.         /// 发送数据_(TCP,当这次发送数据未发送完时返回剩余字节数)
  2447.         /// </summary>
  2448.         /// <param name="网络通讯标识符">s</param>
  2449.         /// <param name="缓冲区">buf</param>
  2450.         /// <param name="缓冲区长度">lLen</param>
  2451.         /// <param name="标志">flags</param>
  2452.         [DllImport("ws2_32.dll", EntryPoint = "send")]
  2453.         public static extern int send_byte(int 网络通讯标识符_ie, StringBuilder 缓冲区_wc, int 缓冲区长度_fu, int 标志_bo);

  2454.         /// <summary>
  2455.         /// 发送数据(TCP,当这次发送数据未发送完时返回剩余字节数)
  2456.         /// </summary>
  2457.         /// <param name="网络通讯标识符">s</param>
  2458.         /// <param name="缓冲区">buf</param>
  2459.         /// <param name="缓冲区长度">lLen</param>
  2460.         /// <param name="标志">flags</param>
  2461.         [DllImport("ws2_32.dll", EntryPoint = "send")]
  2462.         public static extern int send_文本(int 网络通讯标识符_ju, string 缓冲区_rs, int 缓冲区长度_sj, int 标志_qg);

  2463.         /// <summary>
  2464.         /// 转换为端口号-网络转换到本机
  2465.         /// </summary>
  2466.         /// <param name="十六位网络端口">netshort欲转换值</param>
  2467.         [DllImport("ws2_32.dll", EntryPoint = "ntohs")]
  2468.         public static extern short ntohs(short 十六位网络端口_bw);

  2469.         /// <summary>
  2470.         /// 将整数格式IP地址转换为点数格式(返回值是内存地址指针)
  2471.         /// </summary>
  2472.         /// <param name="网络地址">lIn欲转换整数格式IP地址</param>
  2473.         [DllImport("ws2_32.dll", EntryPoint = "inet_ntoa")]
  2474.         public static extern int inet_ntoa(int 网络地址_eo);

  2475.         /// <summary>
  2476.         /// 等待用户进入并接受连接
  2477.         /// </summary>
  2478.         /// <param name="s">套接字描述符</param>
  2479.         /// <param name="addr">地址信息</param>
  2480.         /// <param name="addrlen">地址信息长度(长度为16)</param>
  2481.         [DllImport("ws2_32.dll", EntryPoint = "accept")]
  2482.         public static extern int accept(int s_br, ref api.套接字地址 addr_ha, ref int addrlen_mb);

  2483.         /// <summary>
  2484.         /// 监听
  2485.         /// </summary>
  2486.         /// <param name="sockfd">套接字描述符</param>
  2487.         /// <param name="backlog">最多容纳客户请求数</param>
  2488.         [DllImport("ws2_32.dll", EntryPoint = "listen")]
  2489.         public static extern int listen(int sockfd_fo, int backlog_tc);

  2490.         /// <summary>
  2491.         /// 绑定一个地址和端口
  2492.         /// </summary>
  2493.         /// <param name="地址结构">地址信息</param>
  2494.         /// <param name="结构大小">地址信息长度(长度16</param>
  2495.         [DllImport("ws2_32.dll", EntryPoint = "bind")]
  2496.         public static extern int bind(int 套接字描述符_qp, ref api.套接字地址 地址结构_jm, int 结构大小_xa);

  2497.         /// <summary>
  2498.         /// 转换为network 排列方式的数目
  2499.         /// </summary>
  2500.         /// <param name="十六位主机命令">hostshort端口号</param>
  2501.         [DllImport("ws2_32.dll", EntryPoint = "htons")]
  2502.         public static extern short htons(short 十六位主机命令_wp);

  2503.         /// <summary>
  2504.         /// 创建套接字
  2505.         /// </summary>
  2506.         /// <param name="协议族">af使用的通信协议的协议族</param>
  2507.         /// <param name="类型">lType流套接字类型</param>
  2508.         /// <param name="协议">protocol使用的通信协议</param>
  2509.         [DllImport("ws2_32.dll", EntryPoint = "socket")]
  2510.         public static extern int socket(int 协议族_vr, int 类型_nl, int 协议_uj);

  2511.         /// <summary>
  2512.         /// 销毁套接字
  2513.         /// </summary>
  2514.         [DllImport("ws2_32.dll", EntryPoint = "closesocket")]
  2515.         public static extern int closesocket(int 套接字描述符_jy);

  2516.         /// <summary>
  2517.         /// 卸载Winsocket服务
  2518.         /// </summary>
  2519.         [DllImport("ws2_32.dll", EntryPoint = "WSACleanup")]
  2520.         public static extern int WSACleanup();

  2521.         /// <summary>
  2522.         /// 初始化WnSocket服务
  2523.         /// </summary>
  2524.         /// <param name="必需版本">wVersionRequired</param>
  2525.         /// <param name="服务信息">lpWSAData</param>
  2526.         [DllImport("ws2_32.dll", EntryPoint = "WSAStartup")]
  2527.         public static extern int WSAStartup(int 必需版本_mh, api.套接字信息 服务信息_gr);

  2528.         /// <summary>
  2529.         ///
  2530.         /// </summary>
  2531.         [DllImport("IPHLPAPI.DLL", EntryPoint = "SendARP")]
  2532.         public static extern int SendARP(int 目标IP_xe, int 本机IP_ds, ref byte[] MAC缓冲_vl, ref int 长度_mf);

  2533.         /// <summary>
  2534.         ///
  2535.         /// </summary>
  2536.         [DllImport("ws2_32.dll", EntryPoint = "inet_addr")]
  2537.         public static extern int inet_addr(string IP_ua);

  2538.         /// <summary>
  2539.         ///
  2540.         /// </summary>
  2541.         [DllImport("kernel32", EntryPoint = "IsWow64Process")]
  2542.         public static extern int IsWow64Process_a(int hProcess_jz, ref int Wow64Process_xt);

  2543.         /// <summary>
  2544.         ///
  2545.         /// </summary>
  2546.         [DllImport("kernel32.dll", EntryPoint = "IsWow64Process")]
  2547.         public static extern bool IsWow64Process(int hProcess_bz, ref bool Wow64Process_ha);

  2548.         /// <summary>
  2549.         /// 返回计数频率
  2550.         /// </summary>
  2551.         [DllImport("kernel32.dll", EntryPoint = "QueryPerformanceFrequency")]
  2552.         public static extern int QueryPerformanceFrequency(ref long lpFrequency_hg);

  2553.         /// <summary>
  2554.         /// 获取计数值
  2555.         /// </summary>
  2556.         [DllImport("kernel32.dll", EntryPoint = "QueryPerformanceCounter")]
  2557.         public static extern int QueryPerformanceCounter(ref long lpPerformanceCount_jn);

  2558.         /// <summary>
  2559.         /// 安装输入法
  2560.         /// </summary>
  2561.         [DllImport("imm32.dll", EntryPoint = "ImmInstallIMEA")]
  2562.         public static extern int ImmInstallIMEA(string 文件名_cs, string 输入法名称_nj);

  2563.         /// <summary>
  2564.         /// 缷载已有的键盘布局,成功则返回键盘布局句柄,失败返回0。
  2565.         /// </summary>
  2566.         /// <param name="HKL">键盘布局句柄</param>
  2567.         [DllImport("user32.dll", EntryPoint = "UnloadKeyboardLayout")]
  2568.         public static extern int UnloadKeyboardLayout(int HKL_ej);

  2569.         /// <summary>
  2570.         /// 获得系统适用的所有键盘布局的一个列表,成功则返回键盘布局数量,失败返回0。
  2571.         /// </summary>
  2572.         /// <param name="nBuff">如设为0,表示获取可用键盘布局的最大数量</param>
  2573.         /// <param name="lpList">缓存数组指针,这个数组会随同句柄载入可用的键盘布局。</param>
  2574.         [DllImport("user32.dll", EntryPoint = "GetKeyboardLayoutList")]
  2575.         public static extern int GetKeyboardLayoutList(int nBuff_lm, int[] lpList_ub);

  2576.         /// <summary>
  2577.         /// 载入一个键盘布局,并返回键盘布局句柄。0表示出错。
  2578.         /// </summary>
  2579.         /// <param name="pwszKLID">一个8字符字串,用于描述键盘布局的名称。</param>
  2580.         /// <param name="flags">参考“KLF”常量。</param>
  2581.         [DllImport("user32.dll", EntryPoint = "LoadKeyboardLayoutA")]
  2582.         public static extern int LoadKeyboardLayoutA(string pwszKLID_ka, int flags_xv);

  2583.         /// <summary>
  2584.         /// 输入法注入
  2585.         /// </summary>
  2586.         /// <param name="dll文件名">要注入的dll</param>
  2587.         /// <param name="是否退出时卸载">输入法退出时是否同时卸载注入的DLL(0-是,1-否)</param>
  2588.         /// <param name="是否自动切换">当切换到目标输入法时自动切换到下一个输入法(0-否,1-是)</param>
  2589.         /// <param name="参数一">0</param>
  2590.         /// <param name="参数二">0</param>
  2591.         /// <param name="参数三">0</param>
  2592.         [DllImport("imedllhost09.ime", EntryPoint = "IMESetPubString")]
  2593.         public static extern void IMESetPubString(string dll文件名_vk, int 是否退出时卸载_kq, int 是否自动切换_qm, int 参数一_ac,
  2594.             int 参数二_qt, int 参数三_yx);

  2595.         /// <summary>
  2596.         /// 输入法停止注入
  2597.         /// </summary>
  2598.         [DllImport("imedllhost09.ime", EntryPoint = "IMEClearPubString")]
  2599.         public static extern bool IMEClearPubString();


  2600.         /// <summary>
  2601.         ///  
  2602.         /// </summary>
  2603.         [DllImport("user32.dll", EntryPoint = "GetGUIThreadInfo")]
  2604.         public static extern int GetGUIThreadInfo(int idThread_za, ref api.PGUITHREADINFO pgui_cs);

  2605.         /// <summary>
  2606.         /// 取键状态
  2607.         /// </summary>
  2608.         /// <param name="键代码">vKeyLong,欲测试的虚拟键的键码</param>
  2609.         [DllImport("user32", EntryPoint = "GetAsyncKeyState")]
  2610.         public static extern int GetAsyncKeyState(int 键代码_jz);

  2611.         /// <summary>
  2612.         /// 伸缩复制图象
  2613.         /// </summary>
  2614.         [DllImport("gdi32.dll", EntryPoint = "StretchBlt")]
  2615.         public static extern void StretchBlt(int 目标设备场景_fw, int 目标位置横坐标_yy, int 目标位置纵坐标_xw, int 目标图像宽_cq, int 目标图像高_zl,
  2616.             int 源设备场景_cl, int 源位置横坐标_gd, int 源位置纵坐标_oc, int 源图像宽_un, int 源图像高_nv, int 光栅运算_vm);

  2617.         /// <summary>
  2618.         /// 寻找窗口列表中第一个符合指定条件的顶级窗口
  2619.         /// </summary>
  2620.         [DllImport("user32.dll", EntryPoint = "FindWindowA")]
  2621.         public static extern int FindWindowA(string 窗口类名_ew, string 窗口标题_xd);

  2622.         /// <summary>
  2623.         ///
  2624.         /// </summary>
  2625.         [DllImport("user32", EntryPoint = "FindWindowExA")]
  2626.         public static extern int FindWindowExA_文本(int 父窗口句柄_hl, int 子窗口_ja, string 类名_ef, string 标题_bn);

  2627. //        /// <summary>
  2628. //        ///
  2629. //        /// </summary>
  2630. //        [DllImport("user32.dll", EntryPoint = "CallWindowProcA")]
  2631. //        public static extern int CallWindowProcA_指针(子程序指针 窗口程序指针_se, int hwnd_cq, int 消息值_iz, int 参数1_px, int 参数2_zt);


  2632.         /// <summary>
  2633.         ///
  2634.         /// </summary>
  2635.         [DllImport("user32.dll", EntryPoint = "CallWindowProcA")]
  2636.         public static extern int CallWindowProcA(int 窗口程序指针_xe, int hwnd_rn, int 消息值_jz, int 参数1_wz, int 参数2_ku);

  2637.         /// <summary>
  2638.         /// 获得一个窗口的句柄,该窗口与某源窗口有特定的关系
  2639.         /// </summary>
  2640.         /// <param name="关系">0:为一个源子窗口寻找第一个兄弟(同级)窗口,或寻找第一个顶级窗口1:为一个源子窗口寻找最后一个兄弟(同级)窗口,或寻找最后一个顶级窗口2:为源窗口寻找下一个兄弟窗口3:为源窗口寻找前一个兄弟窗口4:寻找窗口的所有者5:寻找源窗口的第一个子窗口</param>
  2641.         [DllImport("user32.dll", EntryPoint = "GetWindow")]
  2642.         public static extern int GetWindow(int 源窗口_gu, int 关系_sb);

  2643.         /// <summary>
  2644.         /// 显示和操作一个消息框。该消息框包含一个应用程序定义的消息和标题,加上预定义的图标和按钮的任意组合。 wLanguageId参数指定为预定义的按钮使用的语言资源集。
  2645.         /// </summary>
  2646.         /// <param name="hwnd">要创建的消息框的所有者窗口的句柄。如果这个参数为NULL,则消息框没有所有者窗口</param>
  2647.         [DllImport("user32.dll", EntryPoint = "MessageBoxA")]
  2648.         public static extern int MessageBoxA(int hwnd_xg, string neirong_wt, string title_uj, int nom_ti);

  2649.         /// <summary>
  2650.         /// 载入指定的动态链接库,并将它映射到当前进程使用的地址空间。成功则返回库模块的句柄,零表示失败。
  2651.         /// </summary>
  2652.         /// <param name="动态链接库路径">指定要载入的动态链接库的名称(全路径)</param>
  2653.         [DllImport("kernel32.dll", EntryPoint = "LoadLibraryA")]
  2654.         public static extern int LoadLibraryA(string 动态链接库路径_ql);

  2655.         /// <summary>
  2656.         /// 释放动态链接库
  2657.         /// </summary>
  2658.         /// <param name="动态链接库句柄">使用LoadLibraryA命令返回的</param>
  2659.         [DllImport("kernel32", EntryPoint = "FreeLibrary")]
  2660.         public static extern bool FreeLibrary(int 动态链接库句柄_an);

  2661.         /// <summary>
  2662.         /// 取动态链接库函数入口地址
  2663.         /// </summary>
  2664.         /// <param name="模块句柄">通过LoadLibraryA命令取得</param>
  2665.         [DllImport("kernel32.dll", EntryPoint = "GetProcAddress")]
  2666.         public static extern int GetProcAddress(int 模块句柄_ay, string 接口名称_kr);

  2667.         /// <summary>
  2668.         /// 检索键盘与鼠标功能的最后一次输入事件
  2669.         /// </summary>
  2670.         [DllImport("User32.dll", EntryPoint = "GetLastInputInfo")]
  2671.         public static extern int GetLastInputInfo(api.PLASTINPUTINFO plii_ho);

  2672.         /// <summary>
  2673.         ///
  2674.         /// </summary>
  2675.         [DllImport("kernel32.dll", EntryPoint = "GetTickCount")]
  2676.         public static extern int GetTickCount();

  2677.         /// <summary>
  2678.         /// 整理收藏夹
  2679.         /// </summary>
  2680.         [DllImport("shdocvw.dll", EntryPoint = "DoOrganizeFavDlg")]
  2681.         public static extern int DoOrganizeFavDlg(int hwnd_lx, string root_xz);

  2682.         /// <summary>
  2683.         /// 添加到收藏夹
  2684.         /// </summary>
  2685.         [DllImport("shdocvw.dll", EntryPoint = "DoAddToFavDlg")]
  2686.         public static extern bool DoAddToFavDlg(int hwnd_dx, string 网址_cj, int 缓存大小_xq, string 标题_bx, int 缓存_xi,
  2687.             int pid_wy);
  2688.     }
  2689. }
复制代码

评分

参与人数 1好评 +1 精币 +2 收起 理由
AnxiangLemon + 1 + 2 虽然不学C# 还是支持一波

查看全部评分


签到天数: 5 天

25
发表于 2023-8-14 13:57:19 | 只看该作者   湖北省武汉市
标记一下。学习学习
回复 支持 反对

使用道具 举报

24
发表于 2020-6-29 11:42:39 | 只看该作者   福建省泉州市
ZwQuerySystemInformatio   这个函数 好像不对啊! 用不了
回复 支持 反对

使用道具 举报

23
发表于 2020-6-27 13:13:33 | 只看该作者   福建省泉州市

楼主 你好 压缩包 是残缺不完整的
回复 支持 反对

使用道具 举报

22
发表于 2020-6-27 12:58:53 | 只看该作者   福建省泉州市
感谢分享
回复 支持 反对

使用道具 举报

签到天数: 2 天

21
发表于 2019-9-14 14:54:33 | 只看该作者   广东省江门市
谢谢!!!!!!!!!
回复 支持 反对

使用道具 举报

结帖率:100% (4/4)

签到天数: 3 天

20
发表于 2019-5-7 23:16:14 | 只看该作者   安徽省六安市
支持开源,感谢分享!
回复 支持 反对

使用道具 举报

结帖率:60% (3/5)
19
发表于 2019-5-6 13:00:53 | 只看该作者   北京市北京市
支持开源~!感谢分享
回复 支持 反对

使用道具 举报

结帖率:100% (16/16)

签到天数: 4 天

18
发表于 2019-5-5 10:03:22 | 只看该作者   广东省深圳市
谢谢分享@!!!!!
回复 支持 反对

使用道具 举报

结帖率:63% (5/8)

签到天数: 6 天

17
发表于 2019-5-4 02:34:07 | 只看该作者   菲律宾
可以,很棒~~~~~···
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报QQ: 793400750,邮箱:[email protected]
网站简介:精易论坛成立于2009年,是一个程序设计学习交流技术论坛,隶属于揭阳市揭东区精易科技有限公司所有。
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表