From: Jean on 7 Nov 2009 02:14 Hello Using SHChangeNotifyRegister with SHCNE_RENAMEITEM , i receive SHCNE_RENAMEITEM twice. I suppose that it's because the rename creates a new file then deletes the old one ? How to tell Windows that i do not need the second message ? Jean
From: Alain on 7 Nov 2009 07:01 "Jean" <slash(a)slash.fr> a �crit dans le message de news: 4af51e59$0$903$ba4acef3(a)news.orange.fr... > Hello > Using SHChangeNotifyRegister with SHCNE_RENAMEITEM , i receive > SHCNE_RENAMEITEM twice. > I suppose that it's because the rename creates a new file then deletes the > old one ? > How to tell Windows that i do not need the second message ? It seems to do the same thing for others notifications like SHCNE_CREATE You can set a flag to TRUE for the first message and test it for the second message.
From: Jean on 7 Nov 2009 08:24 With create i receive only one message Jean "Alain" <alain(a)distrib.fr> a �crit dans le message de news: hd3nj4$g0u$1(a)news.albasani.net... > "Jean" <slash(a)slash.fr> a �crit dans le message de news: > 4af51e59$0$903$ba4acef3(a)news.orange.fr... >> Hello >> Using SHChangeNotifyRegister with SHCNE_RENAMEITEM , i receive >> SHCNE_RENAMEITEM twice. >> I suppose that it's because the rename creates a new file then deletes >> the old one ? >> How to tell Windows that i do not need the second message ? > > It seems to do the same thing for others notifications like SHCNE_CREATE > You can set a flag to TRUE for the first message and test it for the > second message. > >
From: Timo Kunze on 7 Nov 2009 08:36 Are you renaming a file on the Desktop or in the Documents folder? Then you'll receive one notification for the virtual folder and one for the file system folder. By the way, you shouldn't count on receiving SHCNE_CREATE for file creations and SHCNE_RENAMEITEM for renaming. The shell may decide (and often does so) to send SHCNE_UPDATEDIR or SHCNE_UPDATEITEM instead (not necessarily for the created/renamed item of course). Timo -- www.TimoSoft-Software.de - Unicode controls for VB6 "Those who sacrifice freedom for safety deserve neither." "Demokratie ist per Definition unsicher. Ihr Schutz entsteht aus der Überzeugung, dass die demokratischen Kräfte überwiegen und sich – auf demokratischem Wege – durchsetzen."
From: Jean on 8 Nov 2009 01:49 > Are you renaming a file on the Desktop or in the Documents folder The file can be anywhere Jean "Timo Kunze" <TKunze71216(a)gmx.de> a �crit dans le message de news: hd3t4a$fmp$1(a)aioe.org... > Are you renaming a file on the Desktop or in the Documents folder? Then > you'll receive one notification for the virtual folder and one for the > file system folder. > By the way, you shouldn't count on receiving SHCNE_CREATE for file > creations and SHCNE_RENAMEITEM for renaming. The shell may decide (and > often does so) to send SHCNE_UPDATEDIR or SHCNE_UPDATEITEM instead (not > necessarily for the created/renamed item of course). > > Timo > -- > www.TimoSoft-Software.de - Unicode controls for VB6 > "Those who sacrifice freedom for safety deserve neither." > "Demokratie ist per Definition unsicher. Ihr Schutz entsteht aus der > �berzeugung, dass die demokratischen Kr�fte �berwiegen und sich - auf > demokratischem Wege - durchsetzen."
|
Pages: 1 Prev: OpenCV - Icon in Window Next: Check whether drive is a USB flash drive |