预览加载中,请您耐心等待几秒...
1/6
2/6
3/6
4/6
5/6
6/6

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

WindowsAPI用C#调用 设置钩子 [DllImport("user32",EntryPoint="SetWindowsHookEx")] publicstaticexternintSetWindowsHookExA(intidHook,intlpfn,inthmod,intdwThreadId) 2.根据窗口名找到窗口句柄 [DllImport("user32",EntryPoint="FindWindow")] publicstaticexternintFindWindowA(stringlpClassName,stringlpWindowName) 3 [DllImport("user32")]publicstaticexternintGetWindowRect(inthwnd,refRECTlpRect) 3.[DllImport("user32")] publicstaticexternintActivateKeyboardLayout(intHKL,intflags) 4. [DllImport("user32")] publicstaticexternintAdjustWindowRect(refRECTlpRect,intdwStyle,intbMenu) 5. [DllImport("user32")] publicstaticexternintAdjustWindowRectEx(refRECTlpRect,intdsStyle,intbMenu,intdwEsStyle) 6. [DllImport("user32")] publicstaticexternintAnyPopup(inthwnd) 7. [DllImport("user32")] publicstaticexternintArrangeIconicWindows(inthwnd) 8. [DllImport("user32")] publicstaticexternintAttachThreadInput(intidAttach,intidAttachTo,intfAttach) 9. [DllImport("user32")] publicstaticexternintBeginDeferWindowPos(intnNumWindows) 10. [DllImport("user32")] publicstaticexternintBeginPaint(inthwnd,refPAINTSTRUCTlpPaint) 11. [DllImport("user32")] publicstaticexternintBringWindowToTop(inthwnd) 12. [DllImport("user32")] publicstaticexternintBroadcastSystemMessage(intdw,refintpdw,intun,intwParam,intlParam) 13. [DllImport("user32",EntryPoint="CallMsgFilter")] publicstaticexternintCallMsgFilterA(refMSGlpMsg,intnCode) 14. HYPERLINK"http://www.webtropy.com/articles/api/CallNextHookEx.asp"CallNextHookEx 15.[DllImport("user32",EntryPoint="CallWindowProc")] publicstaticexternintCallWindowProcA(intlpPrevWndFunc,inthwnd,intMSG,intwParam,intlParam) 16. [DllImport("user32")]publicstaticexternshortCascadeWindows(inthwndParent,intwHow,RECTlpRect,intcKids,refintlpKids) 17. [DllImport("user32")] publicstaticexternintChangeClipboardChain(inthwnd,inthWndNext) 18. HYPERLINK"http://www.webtropy.com/articles/api/ChangeDisplaySettings.asp"ChangeDisplaySettings 19. [DllImport("user32",EntryPoint="ChangeMenu")] publicstaticexternintChangeMenuA(i