-
Foxmail 新版中有一个《邮件特快专递》的功能。起先搞不懂如何用,后来知道要在“工具...
Foxmail 新版中有一个《邮件特快专递》的功能。起先搞不懂如何用,后来知道要在“工具->系统选项”那边设置“本地 DNS 服务器的IP地址”。 觉得这个新功能蛮好用的。不需要通过SMTP代理,可以直接通过本地往邮箱所在的邮件交换器发送邮件。在暑假一开始想在 VC++ 中实现这个功能。用 IRIS 截包后,发现程序中有 mx8.263.net 发送邮箱,不知道这个是什么东西,所以作罢。后来才想到这个就是 263.net 的MX记录主机,原来特快专递的原理就是往这个主机上发送数据就行。-Foxmail is a new version of "Speedpost mail" function. Initially do not understand how to use, we later learned to "tool-gt; System Options "side set up" local DNS server IP addresses. " Think of this new feature very good use. Going through SMTP agents, through direct mail to the local where the mail exchange mail. Beginning in the summer to a VC in achieving this function. With IRIS cut package and found out the mx8.263.net send mail, I do not know what this is, give up. Later 263.net think this is the MX records mainframe, the original Speedpost this principle is to send data on the mainframe on the trip.
- 2022-03-20 15:14:35下载
- 积分:1
-
designed to be used more strings than specified by the string, will be less than...
设计为使用的字符串比指定的字符串多,将比打印在备忘录中的搜索结果少
- 2022-03-25 10:14:04下载
- 积分:1
-
autoit 很不错的脚本语言
汉语的说明 好像很少 找来一个
autoit 很不错的脚本语言
汉语的说明 好像很少 找来一个 -autoit 懿 慕疟 说 一
- 2022-03-18 14:39:48下载
- 积分:1
-
a master's works, I help available
一位高手的作品,我帮忙上载-a master"s works, I help available
- 2022-02-15 20:37:56下载
- 积分:1
-
一个C++实现的简单的学生管理系统,课程设计用的
一个C++实现的简单的学生管理系统,课程设计用的-A C++ Students to achieve a simple management system, curriculum design used
- 2022-03-23 01:42:02下载
- 积分:1
-
a simple game for RPG game, which is based on VC++ 7.0 plus Direct C7.0 language...
用VC++7.0+DirectX7.0做的一个简单的RPG的游戏的小程序-a simple game for RPG game, which is based on VC++ 7.0 plus Direct C7.0 languages
- 2022-06-29 19:44:54下载
- 积分:1
-
有了登陆、注册、添加图书、图书管理等一系列功能…
具有登陆、注册、添加书籍、管理书籍、电子支付等一系列功能-With the landing, register, add books, management books, a series of features such as electronic payment
- 2022-06-03 04:28:56下载
- 积分:1
-
靠VC++语言自动画流程图的工具,相当神奇!可画BS图,NS图
靠VC++语言自动画流程图的工具,相当神奇!可画BS图,NS图-By VC++ Language since the animation flow chart tool, quite amazing! BS map can be painted, NS map
- 2022-07-04 13:59:10下载
- 积分: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
-
凸轮设计的C―C++程序,可以在VC环境下运行。
凸轮设计的C―C++程序,可以在VC环境下运行。-Cam-follower Design Code
- 2022-11-18 10:35:03下载
- 积分:1