🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: FindFirstChangeNotification - which File(s) was/were changed

#10709
From: Remy Lebeau (TeamB)
Date: Fri, 26 Mar 2004 19:26
20 lines
1976 bytes
"Dave" <dave_xse@-spam-hotmail.com> wrote in message
news:gtsccansk388.1njug0ildrjsr$.dlg@40tude.net...

> I'm using FindFirstNotification to watch for changes in
> Files in a Directory. It get the signal fine when changes
> occur however i don't know which files have changed.
> Is there any simple way of knowing it ? = not having to
> create my own... :-)

Not with FindFirstChangeNotification(), no.  It only tells you that a chance
has occured, but not what the change actually is.  If you need that
information, then you should use SHChangeNotifyRegister() instead.  When a
change occurs, you are provided with the ITEMIDLIST for the affect file(s).
An ITEMIDLIST is the OS's internal version of a filename, but much more
flexible.  If you want to know the filename that changed, you can pass the
ITEMIDLIST to SHGetPathFromIDList().


Gambit
Technical Details
Message-ID: <40648199@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!news2.euro.net!news2.euro.net!news.cambrium.nl!news.cambrium.nl!newsfeed.kabelfoon.nl!195.129.110.21.MISMATCH!bnewsfeed00.bru.ops.eu.uu.net!bnewsinpeer01.bru.ops.eu.uu.net!emea.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <gtsccansk388.1njug0ildrjsr$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,255fcfa7b17a92b2
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-26 11:31:26 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <gtsccansk388.1njug0ildrjsr$.dlg@40tude.net>
Subject: Re: FindFirstChangeNotification - which File(s) was/were changed
Date: Fri, 26 Mar 2004 11:26:20 -0800
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <40648199@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080328601 67.22.138.253 (26 Mar 2004 11:16:41 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!news2.euro.net!news2.euro.net!news.cambrium.nl!news.cambrium.nl!newsfeed.kabelfoon.nl!195.129.110.21.MISMATCH!bnewsfeed00.bru.ops.eu.uu.net!bnewsinpeer01.bru.ops.eu.uu.net!emea.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail