API参数值
如何查询参数取值?
例如:
[System.Runtime.InteropServices.DllImport( "user32 ")]
private static extern int mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);
const int MOUSEEVENTF_MOVE = 0x0001;
const int MOUSEEVENTF_LEFTDOWN = 0X0002;
const int MOUSEEVENTF_LEFTUP = 0X0004;
const int MOUSEEVENTF_RIGHTDOWN = 0X0008;
const int MOUSEEVENTF_RIGHTUP = 0X0010;
const int MOUSEEVENTF_MIDDLEDOWN = 0X0020;
const int MOUSEEVENTF_MIDDLEUP = 0X0040;
const int MOUSEEVENTF_ABSOLUTE = 0X8000;
-----------------------------
以上代码段中常量值从何而来?
------解决方案--------------------msdn/platform sdk
------解决方案--------------------MSDN里有呀
或是找Delphi的windows.pas里有定义
------解决方案--------------------WINUSER.H装了VC能找到