随笔分类 -  WINDOWS

摘要:http://stackoverflow.com/questions/2043/can-a-windows-dll-retrieve-its-own-filenameA windows exe file has access to the command string which invoked i... 阅读全文
posted @ 2014-10-28 14:23 IAmAProgrammer 编辑
摘要:线程中CreateEvent和SetEvent及WaitForSingleObject的用法首先介绍CreateEvent是创建windows事件的意思,作用主要用在判断线程退出,程锁定方面.CreateEvent函功能描述:创建或打开一个命名的或无名的事件对象.EVENT有两种状态:发信号,不发信... 阅读全文
posted @ 2014-10-24 14:28 IAmAProgrammer 编辑
摘要:http://blog.csdn.net/wishfly/article/details/3726985你在主线程用了WaitForSingleObject,导致了消息循环的阻塞,界面假死。然后在线程中调用了SetDlgItemText,而SetDlgItemText实际上调用的是SendMessa... 阅读全文
posted @ 2014-10-22 01:16 IAmAProgrammer 编辑
摘要:http://blog.csdn.net/byxdaz/article/details/5638680用户模式的线程同步机制效率高,如果需要考虑线程同步问题,应该首先考虑用户模式的线程同步方法。但是,用户模式的线程同步有限制,对于多个进程之间的线程同步,用户模式的线程同步方法无能为力。这时,只能考虑... 阅读全文
posted @ 2014-10-10 14:20 IAmAProgrammer 编辑
摘要:http://www.txsz.net/xs/delphi/3/Windows%20%E6%B6%88%E6%81%AF%E6%9C%BA%E5%88%B6.htmWindows 消息机制by machine大家是不是很奇怪为什么我还没说到Delphi的控件呢?不过不用着急,有关深入控件的内容,将会... 阅读全文
posted @ 2014-10-10 11:24 IAmAProgrammer 编辑
摘要:Here's an interesting customer question:Windows hasPostMessageandSendMessage. It also hasPostThreadMessagebut noSendThreadMessage. Why isn't there aSe... 阅读全文
posted @ 2014-10-10 11:13 IAmAProgrammer 编辑
摘要:http://delphi.about.com/od/windowsshellapi/a/wm_copydata.htmhere are many situation when you need to allow for two applications to communicate. If you... 阅读全文
posted @ 2014-10-10 11:02 IAmAProgrammer 编辑
摘要:http://delphi.about.com/od/windowsshellapi/l/aa093003a.htmPage 1: How Delphi dispatches messages in windowed applicationsArticle submitted byCatalin I... 阅读全文
posted @ 2014-10-10 09:56 IAmAProgrammer 编辑
摘要:http://delphi.about.com/od/windowsshellapi/a/receive-windows-messages-in-custom-delphi-class-nonwindowed-control.htmWindows messagesare a key ingredie... 阅读全文
posted @ 2014-10-10 09:34 IAmAProgrammer 编辑
摘要:http://www.delphidabbler.com/articles?article=1Why do it?Sometimes we need a non-windowed component (i.e. one that isn't derived fromTWinControl) to r... 阅读全文
posted @ 2014-10-10 09:21 IAmAProgrammer 编辑
摘要:http://bbs.ednchina.com/BLOG_ARTICLE_3005455.HTMVC中WM_CLOSE、WM_DESTROY、WM_QUIT消息出现顺序及调用方式wxleasyland@sina.com2012.7wxleasyland试验:一、VC建的标准WIN32-HELLO W... 阅读全文
posted @ 2014-10-09 22:18 IAmAProgrammer 编辑
摘要:https://www.autoitscript.com/autoit3/docs/appendix/WinMsgCodes.htmWM_ACTIVATE 0x0006WM_ACTIVATEAPP 0x001CWM_A... 阅读全文
posted @ 2014-10-09 21:47 IAmAProgrammer 编辑
摘要:http://www.velleman.eu/images/tmp/usbfind.c#ifdef __cplusplusextern "C" {#endif#include #include #include #include #include // This is the GUID for th... 阅读全文
posted @ 2014-09-29 22:10 IAmAProgrammer 编辑
摘要:http://blogs.msdn.com/b/oldnewthing/archive/2005/11/04/489028.aspxWhy is there a special PostQuitMessage function?Because it's not really a posted mes... 阅读全文
posted @ 2014-09-19 20:37 IAmAProgrammer 编辑
摘要:In particular, Microsoft® instituted a device driver certification process for itsWindows® desktop and server operating systems to ensure the drivers ... 阅读全文
posted @ 2014-09-05 15:13 IAmAProgrammer 编辑
摘要:http://technet.microsoft.com/en-us/library/cc730875.aspxDetermine the name of the driver package in the driver storepnputil.exe -e >> c:\driver_name.t... 阅读全文
posted @ 2014-09-05 11:02 IAmAProgrammer 编辑
摘要:http://www.cnblogs.com/skey_chen/archive/2011/05/24/2055538.html从网上下载了一份CHM格式的文档,打开时左侧菜单出来了,但右边显示如下的错误:无法显示网页在确保文件正常的情况下,一般原因有两个1、itss协议安装微软的安全更新 8963... 阅读全文
posted @ 2014-09-04 17:42 IAmAProgrammer 编辑
摘要:http://254698001.blog.51cto.com/2521548/1339696很多朋友在加载DLL是发生这样的错误:HRESULT: 0x80131515。解决方法是,在DLL文件上单击右键,选择属性,然后把锁定解除即可。 阅读全文
posted @ 2014-09-04 17:38 IAmAProgrammer 编辑
摘要:Error Messages for Windowshttp://www.gregorybraun.com/MSWINERR.ZIPServer 4.0 Error MessagesCodeError Message0操作成功完成。1函数不正确。2系统找不到指定的文件。3系统找不到指定的路径。4系统... 阅读全文
posted @ 2014-09-03 09:01 IAmAProgrammer 编辑
摘要:在没有.h和.lib文件时,需要函数指针和WIN32 API函数LoadLibrary,GetProcAddress和FreeLibrary只需要.dll文件即可(将.dll文件置入工程目录中)。LoadLibrary进程调用LoadLibrary以显式链接到 DLL。如果函数执行成功,它会将指定的 DLL 映射到调用进程的地址空间中并返回该 DLL 的句柄。此句柄可以与其他函数(如GetProcAddress和FreeLibrary)一起在显式链接中使用。LoadLibrary将尝试使用用于隐式链接的相同搜索序列来查找 DLL。如果系统无法找到所需的 DLL 或者入口点函数返回 FALSE, 阅读全文
posted @ 2014-02-04 12:33 IAmAProgrammer 编辑

点击右上角即可分享
微信分享提示