摘要:使用MASM写Windows程序,其实就是和Windows API打交道,而一个人是不可能记住所有的API用法的,所以API参考手册是必不可少的,API的参考手册中函数原型是按匈牙利表示法表示的,下面这个表就是API原型中那些前缀的详细解释 资料来源:MicroSoft MSDN Platform SDK 参考a Array 数组b BOOL (int) 布尔(整数)by Unsigned Cha...
阅读全文
摘要:一、调用格式 using System.Runtime.InteropServices; //引用此名称空间,简化后面的代码 ... //使用DllImportAttribute特性来引入api函数,注意声明的是空方法,即方法体为空。 [DllImport("user32.dll")] public static extern ReturnType FunctionName(type ...
阅读全文
摘要:class Form{ private const int WM_NCHITTEST = 0x0084; private const int HTCAPTION = 0x0002; protected override void WndProc(ref Message m) { switch (m.Msg) { case WM_NCHITTEST: m.Res...
阅读全文