SHChangeNotifyRegister / FileSystemWatcher

  • Thread starter Thread starter Laslo
  • Start date Start date
L

Laslo

Hi,

This has probably been asked and answered, but...

OpenNetCF.IO.FileSystemWatcher. Is this only for PPC? I looked in the source
and noticed calls to SHChangeNotifyRegister P/Invoke in AYGShell.dll (PPC
equivalent to coredll.dll (I think)).

Anyone have an alternative to monitoring a directory for access?

TIA,
Laslo
 
Just a FYI:
Aygshell is irrelevant to coredll. coredll is part of all CE devices.
Aygshell is part of all PPC devices. Aygshell is an optional component for
CE.NET devices (but most seem to use the standards shell which is part of
the CORE license).

Cheers
Daniel
 
Hi Daniel,

Thanks for the clarification! So are the functions contained in aygshell
somewhere else in devices that aren't PPC? (Say for example coredll.dll)

TIA,
Laslo
 
I am not familiar with all the functions in either of these but generally
speaking there is not a one for one correspondence. It is a case of
identifying the functionality you get from the API you are interested in and
seeing how you can workaround it or simulate it.

Sorry, I don't know the equivalent of monitoring a directory for access. I
did a quick search and found two relevant threads.
Confirmation of the problem:
http://groups-beta.google.com/group..._frm/thread/bc7a68b595eac826/96c29419df6819d2

A workaround:
http://groups-beta.google.com/group..._frm/thread/a259cbcf95a1c65d/35d0f97e7f49ef17

Cheers
Daniel
 
No, there is no place where you can say that every function in aygshell for
PPC is found on non-PPC devices. If there is any overlap, it is *very*
likely to be in aygshell.dll on the other device, too, but many of the
features of the PPC shell are limited to PPC and just are not there on
non-PPC devices. The methods for adding filesystem change notification
*are* documented in the OS help, so a device vendor *can* do it. Whether
your device vendor did or not is another matter that you'll have to check
with the device OEM to resolve.

Paul T.
 
....and to continue my thought, you might look at the following functions in
the help:

FindFirstChangeNotification()
FindNextChangeNotification()
WaitForSingleObject()

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top