怎样在Visual C#.net 中使用API函数?
http://www.ccw.com.cn/htm/app/aprog/01_9_14_4.asp
http://www.ccw.com.cn/htm/app/aprog/01_9_14_4.asp
http://www.ccw.com.cn/htm/center/prog/02_10_9_6.asp
http://www.tongyi.net/article/20010923/200109232288.shtml
http://www.tongyi.net/article/20010923/200109232288.shtml
[DllImport("rasapi32.dll")]
public static extern int RasGetEntryDialParams(string pbook,IntPtr ipBuff,bool b);
/// <summary>
/// 枚举窗口
/// </summary>
[DllImport("user32.Dll")]
public static extern int EnumWindows(CallBack x, int y);
/// <summary>
/// 取窗口标题
/// </summary>
[DllImport("User32.Dll")]
public static extern void GetWindowText(IntPtr h, StringBuilder s, int nMaxCount);