FindFirstChangeNotification()
Jerry Hewett -- jhewett@ix.netcom.com Thursday, December 12, 1996 Environment: VC++ 4.0, Win 95 I'm trying to write an application that uses FindFirstChangeNotification() and FindNextChangeNotification() to track changes to the files and directories on my hard drive, but I've run into the proverbial brick wall. I don't have any problem getting the program to work -- I'd just like to know what specific changes have been made to the drive without having to store a copy of the directory and reload/compare it every time the object is signaled! Both calls return a handle to a (quote) "change notification object" (endquote), but I can't find anything in my online or offline manuals and references describing this "object" or its members, if any! FindFirstFile() returns a WIN32_FIND_DATA structure. FindFirstPrinterChangeNotitification() returns a PRINTER_NOTIFY_OPTIONS structure. So what does the handle returned by FindFirstChangeNotification() get me, aside from "yep -- something on your hard drive has changed"? Is this a blind alley? Jerry ("Damned Confused At Present") H.
Mike Blaszczak -- mikeblas@nwlink.com Saturday, December 14, 1996 [Mini-digest: 2 responses] At 19:40 12/12/96 GMT, Jerry Hewett wrote: >Environment: VC++ 4.0, Win 95 >So what does the handle returned by FindFirstChangeNotification() get me, >aside from "yep -- something on your hard drive has changed"? It gets you that and nothing more. You know what class of thing changed based on what flags you specified when you asked for the notification to be created. When you're done, remember to close the notification. Otherwise, you'll leave whatever media was locked. With removable hard drives becoming so popular, you'll really ruin someone's day with sloppy code here. .B ekiM http://www.nwlink.com/~mikeblas/ I'm afraid I've become some sort of speed freak. These words are my own. I do not speak on behalf of Microsoft. -----From: Bob StevensCheck out the ReadDirectoryChangesW( ) function. Regards, Stephen Keeler -----Original Message----- From: Jerry Hewett [SMTP:jhewett@ix.netcom.com] Sent: Thursday, December 12, 1996 2:41 PM To: mfc-l@netcom.com Subject: FindFirstChangeNotification() Environment: VC++ 4.0, Win 95 I'm trying to write an application that uses FindFirstChangeNotification() and FindNextChangeNotification() to track changes to the files and directories on my hard drive, but I've run into the proverbial brick wall. I don't have any problem getting the program to work -- I'd just like to know what specific changes have been made to the drive without having to store a copy of the directory and reload/compare it every time the object is signaled! Both calls return a handle to a (quote) "change notification object" (endquote), but I can't find anything in my online or offline manuals and references describing this "object" or its members, if any! FindFirstFile() returns a WIN32_FIND_DATA structure. FindFirstPrinterChangeNotitification() returns a PRINTER_NOTIFY_OPTIONS structure. So what does the handle returned by FindFirstChangeNotification() get me, aside from "yep -- something on your hard drive has changed"? Is this a blind alley? Jerry ("Damned Confused At Present") H.
| Вернуться в корень Архива |