🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3681

Re: ReadDirectoryChangesW

#3681
From: Rod
Date: Thu, 18 May 2006 13:01
39 lines
2387 bytes
"JD" <nospam@nospam.com> wrote:
Hello JD.

Yes, I've implemented a version of the program using
"FindFirstChangeNotification" and the " FindNextChangeNotification".
However, these report only that the type of change being monitored has
occurred but not which files underwent that change. Therefore, I have to
keep the relevant data about the files in memory and iterate through both
the directory and that list till I find either new file(s) or altered
files.

Whereas "ReadDirectoryChangesW" reports which files have changed and what
the change is. It seems much better suited for the job at hand.

All the examples I have looked at are in quite complicated projects which
obscures the basic functionality.

If someone could get me started on the "asynchronously" use of
"ReadDirectoryChangesW" I'd merrily on my way, I believe.

Regards,

Rod.

:>
:>Rod <notat022005@end.of.msg> wrote:
:>>
:>> [...] How do I implement the function ReadDirectoryChangesW
:>> asynchronously?
:>
:>Have you looked at the win32 API FindFirstChangeNotification?
:>
:>//-------------------------------------------------------------

-- Rod

Please note that, due to time differences etc, it might be 24hrs before I
get back to this group so please consider yourselves thanked for any help
you may be able to provide.
Technical Details
Message-ID: <ocqo62hq0jkqk9qeojjpfalgbjccgeh9q6@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <btnj629qq4hcqg2rm80fr6mdo9d1uv7ida@4ax.com> <4469ea36@newsgroups.borland.com> <gubm62dc961n3brhgmkmm6ptpc3o4oob5f@4ax.com> <446c532a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f9b15488efc2a992
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Rod <notat022005@end.of.msg>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: ReadDirectoryChangesW
Date: Thu, 18 May 2006 23:01:58 +1000
Reply-To: sorrynothere@end.of.message
Message-ID: <ocqo62hq0jkqk9qeojjpfalgbjccgeh9q6@4ax.com>
References: <btnj629qq4hcqg2rm80fr6mdo9d1uv7ida@4ax.com> <4469ea36@newsgroups.borland.com> <gubm62dc961n3brhgmkmm6ptpc3o4oob5f@4ax.com> <446c532a$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 203.217.84.246
X-Trace: newsgroups.borland.com 1147957141 203.217.84.246 (18 May 2006 05:59:01 -0700)
Lines: 39
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail