Hook ?
-
Do you mean: FindFirstChangeNotification, FindNextChangeNotification, FindCloseChangeNotification?
Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke
-
Do you mean: FindFirstChangeNotification, FindNextChangeNotification, FindCloseChangeNotification?
Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke
-
Have a look at
ReadDirectoryChangesW()
. Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
almost like that but it's no real-time,right? I wanna program a dll it's a real time Hook to watch if there is file 'create' or 'delete' if there is...then I'll do...
It's as real time as anything above the driver level. ReadDirectoryChangesW() provides similar functionality, but unless used with overlapped IO, it's a blocking call that can't be easily interrupted.
Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke
-
And see Spying a file system[^].
-
And see Spying a file system[^].
-
I gald it was helpful for you. :-D
-
I gald it was helpful for you. :-D
i still have a question i wanna rewrite a Dialog project and try to use those funtions when i use CCriticalSection and i include the some functions and variables can't be seen in a Thread function it shows that error C2065: 'USES_CONVERSION' : undeclared identifier error C2065: 'ReadDirectoryChangesW' : undeclared identifier error C2065: 'm_list' : undeclared identifier error C2227: left of '->InsertItem' must point to class/struct/union error C2227: left of '->GetItemCount' must point to class/struct/union error C2227: left of '->SetItemText' must point to class/struct/union How can i deal with it ?? And why ??
-
i still have a question i wanna rewrite a Dialog project and try to use those funtions when i use CCriticalSection and i include the some functions and variables can't be seen in a Thread function it shows that error C2065: 'USES_CONVERSION' : undeclared identifier error C2065: 'ReadDirectoryChangesW' : undeclared identifier error C2065: 'm_list' : undeclared identifier error C2227: left of '->InsertItem' must point to class/struct/union error C2227: left of '->GetItemCount' must point to class/struct/union error C2227: left of '->SetItemText' must point to class/struct/union How can i deal with it ?? And why ??
Did you include Header files WinBase.h Windows.h ?
-
Did you include Header files WinBase.h Windows.h ?
-
no but i tried include windows.h and winbase.h still have two error error C2065: 'USES_CONVERSION' : undeclared identifier error C2065: 'ReadDirectoryChangesW' : undeclared identifier should i include other head file or something?? thank you
I can use of these files without any header file (Im using of Visual Sudio 2008) but what was your application type and whats your IDE?
-
I can use of these files without any header file (Im using of Visual Sudio 2008) but what was your application type and whats your IDE?
Dialog-Based project IDE is VC 6.0 if i don't include that part is all right but there is other error error : missing ';' before identifier 'm_Sec' error C2501: 'CCriticalSection' : missing storage-class or type specifiers fatal error C1004: unexpected end of file found so that makes me confused
-
Dialog-Based project IDE is VC 6.0 if i don't include that part is all right but there is other error error : missing ';' before identifier 'm_Sec' error C2501: 'CCriticalSection' : missing storage-class or type specifiers fatal error C1004: unexpected end of file found so that makes me confused
-
search on the header files of VC(ctrl+shift+F) and see is it existing on Winbase.h or windows.h?