-
FAQ系统
FAQ系统,后台问题填写,前台问题展示
- 2022-03-11 18:20:28下载
- 积分:1
-
多线程动画演示程序
多线程动画演示程序-multithreading animation demo program
- 2022-12-10 19:40:03下载
- 积分:1
-
合并mdb数据库的程序
通过该程序,可以将多个相同数据结构的access数据库合并在一起。以方便用户的数据库综合。
- 2022-03-26 10:19:30下载
- 积分:1
-
Freescale iMX233 WinCE 6.0 BSP (2009
Freescale iMX233 WinCE 6.0 BSP (2009-11) version
- 2023-04-12 19:15:06下载
- 积分:1
-
网络优化算法:最大流的FordFulkerson标号算法
网络优化算法:最大流的FordFulkerson标号算法-Network optimization algorithms: maximum flow of FordFulkerson Enumeration
- 2022-03-20 10:37:56下载
- 积分:1
-
pdflib7.0 library and to use the programming pdflib to look at the defense, stop...
pdflib7.0库,想用pdflib来编程的不防看看,停好的东西-pdflib7.0 library and to use the programming pdflib to look at the defense, stopping the good things
- 2022-12-12 11:30:04下载
- 积分:1
-
Amount in the amount converted to uppercase, lowercase yuan at its input the amo...
小写金额转换为大写金额,在其输入小写的人民币金额,在下面的文本框中就能转化为对应的大写金额。-Amount in the amount converted to uppercase, lowercase yuan at its input the amount, in the text box below can be converted into the corresponding amount of capital.
- 2022-12-16 20:00:03下载
- 积分:1
-
文件修改监控
ReadDirectoryChangesW 有同步和异步2种方式,
根据前面打开的文件夹对象句柄决定。
1. 异步方式,如果 CreateFile 指定了打开类型 FILE_FLAG_OVERLAPPED 就是异步方式,ReadDirectoryChangesW 调用的时候就需要指定 OVERLAPPED 参数.
接下来对文件夹I/O变化的响应判断有多种方式。
A通过不断的调用HasOverlappedIoCompleted函数(非阻塞,参数就是前面的OVERLAPPED 对象指针)的返回值来判断是否发生了 关注文件句柄的I/O操作。如果发生变化,再执行你的 switch(Buffer[0].Action) 操作过程。
B GetOverlappedResult 读取 OVERLAPPED 对象的结果。(阻塞)
C 完成端口 GetQueuedCompletionStatus (阻塞)。
其中阻塞方式,必须采用多线程的方式,否则你的主线程被阻塞的话,对话框就动不了了。非阻塞方式也可用多线程,结合hEvent对象来使用。
2.同步方式,如果CreateFile不指定FILE_FLAG_OVERLAPPED ,就是同步方式。
同步方式操作比较简单。lz的程序看来就是使用的同步方式。
在同步下,ReadDirectoryChangesW 将被阻塞,直到一个文件夹句柄的I/O操作到来,然后才能判断。所以lz的程序会死掉。
同步方式必须采用多线程,再创建一个线程,线程函数采用如下方式:
UINT ThreadProc(PVOID)
{
CreateFile();
while(1) // 如果只想监视一次文件的I/O变化,可不用while循环。
{
- 2022-03-10 05:44:52下载
- 积分:1
-
WinCE下与PC串口调试助手,功能…
WINCE下用于调试串口的调试助手,与PC机上的功能相同-Under WINCE debug serial port for debugging assistant with the PC, the functions of the same
- 2022-05-10 15:07:13下载
- 积分:1
-
大型多媒体视频会议服务器端和客户端源码
功能很强大
界面有好...
大型多媒体视频会议服务器端和客户端源码
功能很强大
界面有好-Large-scale multi-media video conferencing server-side and client-source features a very powerful interface has a good
- 2022-05-23 09:17:44下载
- 积分:1