🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#10721
From: vERUs
Date: Sun, 28 Mar 2004 22:37
18 lines
2004 bytes
> Now, with that said, if you run your code under WinNT/2K/XP, then you need
> to use SHChangeNotification_Lock() and SHChangeNotification_Unlock() as
well
> in order to get at the event information.  Under Win9x/Me, the event info
is
> contained inside the wParam and lParam values directly.  But under
> WinNT/2K/XP, the OS creates a block of shared memory and then passes the
> memory address to your code rather than the original data.  So you have to
> lock the memory and then copy the desired data into your local storage,
then
> you can process the same values that Win9x/Me normally give directly.

Is it always like this when running NT5 or newer? Isn't this optional
depending on the 0x8000 value that can be added to the second parameter in
the SHChangeNotifyRegister function? Only curious...
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/shchangenotifyregister.asp

//vERUs
Technical Details
Message-ID: <40675399$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <gtsccansk388.1njug0ildrjsr$.dlg@40tude.net> <40648199@newsgroups.borland.com> <1cj24pzpnk6kq.7n0lajrj0cil$.dlg@40tude.net> <40652272$1@newsgroups.borland.com>

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-28 14:39:23 PST
From: "vERUs" <-verus-@telia.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <gtsccansk388.1njug0ildrjsr$.dlg@40tude.net> <40648199@newsgroups.borland.com> <1cj24pzpnk6kq.7n0lajrj0cil$.dlg@40tude.net> <40652272$1@newsgroups.borland.com>
Subject: Re: FindFirstChangeNotification - which File(s) was/were changed
Date: Mon, 29 Mar 2004 00:37:46 +0200
Lines: 20
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: 217.210.229.233
Message-ID: <40675399$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080513433 217.210.229.233 (28 Mar 2004 14:37:13 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail