Article View: borland.public.cppbuilder.nativeapi
Article #6335Re: Monitoring a Directory
From: Remy Lebeau (TeamB)
Date: Tue, 17 May 2005 16:15
Date: Tue, 17 May 2005 16:15
25 lines
1734 bytes
1734 bytes
"Josh Kirkpatrick" <jkirkpat at speedymail dot org> wrote in message
news:4289fee5@newsgroups.borland.com...
> While I can use FindFirstChangeNotification...FindNextChangeNotification,
> I want a detailed report of the change.
Have a look at SHChangeNotifyRegister():
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/shchangenotifyregister.asp
Ignore the note that Win2000 is the minimum OS version needed. It is not.
I've used this function on Win98 without problems. For example:
http://www.geocities.com/SiliconValley/4942/notify.html
> For example, if a new file is created, I want to know its name,
> not just its location. Ditto for new folders or file/folder
renames/deletes.
SHChangeNotifyRegister() gives you that info.
Gambit
Technical Details
Message-ID:
<428a1916$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!newsfeed.kamp.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4289fee5@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,381ba19a397b4a0f X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4289fee5@newsgroups.borland.com> Subject: Re: Monitoring a Directory Date: Tue, 17 May 2005 09:15:00 -0700 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <428a1916$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1116346646 68.69.17.41 (17 May 2005 09:17:26 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!newsfeed.kamp.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail