Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Shellnotification Problem (https://www.delphipraxis.net/118337-shellnotification-problem.html)

Relicted 5. Aug 2008 16:51


Shellnotification Problem
 
Moin!

Folgendes Problem habe ich: Ein Programm XY erstellt eine Datei in einem Verzeichnis.
Ich habe mit
Delphi-Quellcode:
SHChangeNotifyRegister(FHandle, SHCNF_ACCEPT_INTERRUPTS + SHCNF_ACCEPT_NON_INTERRUPTS,
                                      fEvents, WM_SHELLNOTIFY, cEntries, @NotifyEntrys);
den Change registriert. Sobald ich eine Datei per Hand erstelle bekomme ich die richtige Nachricht. Leider passiert nix wenn ein anderen Programm das ganze erstellt.
Jemand eine Idee?
Ich muss auf neue Dateien in einem Ordner reagieren -> ein pollen ist nicht gerade das was ich machen will.

Gruß
Reli

Luckie 5. Aug 2008 20:25

Re: Shellnotification Problem
 
Probier mal meine Unit dazu aus: http://www.michael-puff.de/Developer/Delphi/Units/ -> MpuReadDirectoryChangesCls.pas

Relicted 5. Aug 2008 21:23

Re: Shellnotification Problem
 
danke michael... schau ich mir morgen mal an :-)


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:05 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz