Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - multithreading_file_search
Search - multithreading_file_search - List
本程序实现一个多线程的文件快速搜索。在通常的操作系统中,比如Windows 2000,都提供了文件搜索功能,但采用的是顺序搜索,搜索效率较低。在本程序中,使用多线程的搜索技术,可以明显提高搜索效率。 本程序主要用到以下函数: //找到指定目录下的第一个文件 HUNDLE FindFirstFile(LPCTSR lpFileName,LPWIN32_FIND_DATA lpFindFileData) //找到指定目录下的下一个文件 BOOL FindNextFile(HANDLE hFindFile,LPWIN32_FIND_DATA lpFindFileData) //线程的执行函数 UINT GetFilePathTHreadProc(LPVOID pParam) //搜索指定目录 void GetFilePath()
Date : 2008-10-13 Size : 30.09kb User : 郭小川

本程序实现一个多线程的文件快速搜索。在通常的操作系统中,比如Windows 2000,都提供了文件搜索功能,但采用的是顺序搜索,搜索效率较低。在本程序中,使用多线程的搜索技术,可以明显提高搜索效率。 本程序主要用到以下函数: //找到指定目录下的第一个文件 HUNDLE FindFirstFile(LPCTSR lpFileName,LPWIN32_FIND_DATA lpFindFileData) //找到指定目录下的下一个文件 BOOL FindNextFile(HANDLE hFindFile,LPWIN32_FIND_DATA lpFindFileData) //线程的执行函数 UINT GetFilePathTHreadProc(LPVOID pParam) //搜索指定目录 void GetFilePath() -This procedure to achieve a multi-threaded file Quick Search. In the usual operating systems such as Windows 2000, have provided a document search function, but uses the order of search, the search less efficient. In this procedure, the use of multi-threaded search technology, you can significantly improve search efficiency. This procedure uses the following main function:// find the specified directory of the first file HUNDLE FindFirstFile (LPCTSR lpFileName, LPWIN32_FIND_DATA lpFindFileData)// find the specified directory under a file BOOL FindNextFile (HANDLE hFindFile, LPWIN32_FIND_DATA lpFindFileData)// thread the implementation of function UINT GetFilePathTHreadProc (LPVOID pParam)// Search the specified directory void GetFilePath ()
Date : 2025-07-04 Size : 30kb User : 郭小川
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.