How to get the total files numbers of a whole computer?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Does it have some functions? to get the file nubmers of the whole computer? How does the vir killer software to do that,how could they control the progress of the whole files of the computer?:rose:
I am not a genius, but shed more sweat!
You can traverse all files in a file system by using the FindFirstFile[^], FindNextFile[^] and FindClose[^] API. That will take a while. You could then check for changes using FindFirstChangeNotification[^] et al functions. Anti virus programs use different techniques, like hooks[^] for file access functions, and maybe even rootkits. Just a few ideas.