digitalmars.D - ReadDirectoryChangesW?
- Zz (3/3) Aug 22 2008 Has anyone done a wrapper for windows ReadDirectoryChangesW?
- davidl (4/7) Aug 22 2008 www.dsource.org/projects/bindings should have got it done
- Zz (4/15) Aug 22 2008 Hi David,
- Denis Koroskin (2/19) Aug 24 2008 What are the modifications? Could you commit them, please?
- Zz (15/40) Aug 25 2008 I removed what I need from WindowsAPI and pasted it into my project sinc...
- Denis Koroskin (5/51) Aug 25 2008 win32 bindings used to work with both D1 and D2 (a few versions ago at
- Extrawurst (3/64) Aug 25 2008 there was a breaking change though with deprecated types in one of the
- Denis Koroskin (5/71) Aug 25 2008 I remember it. Wasn't it fixed shortly after the introduction ("for
- Zz (7/80) Aug 25 2008 Hi,
Has anyone done a wrapper for windows ReadDirectoryChangesW? I expected it in phobos windows.d but it's not there. Zz
Aug 22 2008
在 Fri, 22 Aug 2008 21:10:12 +0800,Zz <Zz qqq.c> 写道:Has anyone done a wrapper for windows ReadDirectoryChangesW? I expected it in phobos windows.d but it's not there. Zzwww.dsource.org/projects/bindings should have got it done -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
Aug 22 2008
davidl Wrote:在 Fri, 22 Aug 2008 21:10:12 +0800,Zz <Zz qqq.c> 写道:Hi David, Thanks for the link the project WindowsAPI had the wrappers and it works with a little modification to FILE_NOTIFY_INFORMATION. ZzHas anyone done a wrapper for windows ReadDirectoryChangesW? I expected it in phobos windows.d but it's not there. Zzwww.dsource.org/projects/bindings should have got it done -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
Aug 22 2008
On Fri, 22 Aug 2008 20:07:09 +0400, Zz <Zz nospam.com> wrote:davidl Wrote:What are the modifications? Could you commit them, please?在 Fri, 22 Aug 2008 21:10:12 +0800,Zz <Zz qqq.c> 写é�“:Hi David, Thanks for the link the project WindowsAPI had the wrappers and it works with a little modification to FILE_NOTIFY_INFORMATION. ZzHas anyone done a wrapper for windows ReadDirectoryChangesW? I expected it in phobos windows.d but it's not there. Zzwww.dsource.org/projects/bindings should have got it done -- 使用 Opera é�©å‘½æ€§çš„电å�邮件客 ˆ·ç¨‹åº�: http://www.opera.com/mail/
Aug 24 2008
Denis Koroskin Wrote:On Fri, 22 Aug 2008 20:07:09 +0400, Zz <Zz nospam.com> wrote:I removed what I need from WindowsAPI and pasted it into my project since I use D 2.0 and not 1.0. I just changed FILE_NOTIFY_INFORMATION so that it looks like the following (which is more like the original definition in MSDN). Note: I removed _FileName; struct FILE_NOTIFY_INFORMATION { DWORD NextEntryOffset; DWORD Action; DWORD FileNameLength; WCHAR FileName; } Where you have got to cast to get FileName. It was good enough for what I needed to do. You can also look at Watcher http://www.dsource.org/projects/watcher where it's done differently and works with Mango. Zzdavidl Wrote:What are the modifications? Could you commit them, please?在 Fri, 22 Aug 2008 21:10:12 +0800,Zz <Zz qqq.c> 写é�“:Hi David, Thanks for the link the project WindowsAPI had the wrappers and it works with a little modification to FILE_NOTIFY_INFORMATION. ZzHas anyone done a wrapper for windows ReadDirectoryChangesW? I expected it in phobos windows.d but it's not there. Zzwww.dsource.org/projects/bindings should have got it done -- 使用 Opera é�©å‘½æ€§çš„电å�邮件客 ˆ·ç¨‹åº�: http://www.opera.com/mail/
Aug 25 2008
On Mon, 25 Aug 2008 19:02:54 +0400, Zz <Zz nospam.com> wrote:Denis Koroskin Wrote:win32 bindings used to work with both D1 and D2 (a few versions ago at least). I'll take a look and update them if they got broken by recent changes. Thanks.On Fri, 22 Aug 2008 20:07:09 +0400, Zz <Zz nospam.com> wrote:I removed what I need from WindowsAPI and pasted it into my project since I use D 2.0 and not 1.0. I just changed FILE_NOTIFY_INFORMATION so that it looks like the following (which is more like the original definition in MSDN). Note: I removed _FileName; struct FILE_NOTIFY_INFORMATION { DWORD NextEntryOffset; DWORD Action; DWORD FileNameLength; WCHAR FileName; } Where you have got to cast to get FileName. It was good enough for what I needed to do. You can also look at Watcher http://www.dsource.org/projects/watcher where it's done differently and works with Mango. Zzdavidl Wrote:写�:在 Fri, 22 Aug 2008 21:10:12 +0800,Zz <Zz qqq.c>é�©å‘½æ€§çš„çâ€�µåÂ�邮件客户程�:Has anyone done a wrapper for windows ReadDirectoryChangesW? I expected it in phobos windows.d but it's not there. Zzwww.dsource.org/projects/bindings should have got it done -- 使çâ€�¨ Operaworkshttp://www.opera.com/mail/Hi David, Thanks for the link the project WindowsAPI had the wrappers and itwith a little modification to FILE_NOTIFY_INFORMATION. ZzWhat are the modifications? Could you commit them, please?
Aug 25 2008
Denis Koroskin wrote:On Mon, 25 Aug 2008 19:02:54 +0400, Zz <Zz nospam.com> wrote:there was a breaking change though with deprecated types in one of the last updates i can recallDenis Koroskin Wrote:win32 bindings used to work with both D1 and D2 (a few versions ago at least). I'll take a look and update them if they got broken by recent changes. Thanks.On Fri, 22 Aug 2008 20:07:09 +0400, Zz <Zz nospam.com> wrote:I removed what I need from WindowsAPI and pasted it into my project since I use D 2.0 and not 1.0. I just changed FILE_NOTIFY_INFORMATION so that it looks like the following (which is more like the original definition in MSDN). Note: I removed _FileName; struct FILE_NOTIFY_INFORMATION { DWORD NextEntryOffset; DWORD Action; DWORD FileNameLength; WCHAR FileName; } Where you have got to cast to get FileName. It was good enough for what I needed to do. You can also look at Watcher http://www.dsource.org/projects/watcher where it's done differently and works with Mango. Zzdavidl Wrote:写�:在 Fri, 22 Aug 2008 21:10:12 +0800,Zz <Zz qqq.c>é�©å‘½æ€§çš„çâ€�µåÂ�邮件客户ç¨⠹åº�:Has anyone done a wrapper for windows ReadDirectoryChangesW? I expected it in phobos windows.d but it's not there. Zzwww.dsource.org/projects/bindings should have got it done -- 使çâ€�¨ Operaworkshttp://www.opera.com/mail/Hi David, Thanks for the link the project WindowsAPI had the wrappers and itwith a little modification to FILE_NOTIFY_INFORMATION. ZzWhat are the modifications? Could you commit them, please?
Aug 25 2008
On Mon, 25 Aug 2008 20:45:22 +0400, Extrawurst <spam extrawurst.org> wrote:Denis Koroskin wrote:I remember it. Wasn't it fixed shortly after the introduction ("for Tango")? IIRC, it affected both D1 and D2, so the code should either work for both or for none.On Mon, 25 Aug 2008 19:02:54 +0400, Zz <Zz nospam.com> wrote:there was a breaking change though with deprecated types in one of the last updates i can recallDenis Koroskin Wrote:win32 bindings used to work with both D1 and D2 (a few versions ago at least). I'll take a look and update them if they got broken by recent changes. Thanks.On Fri, 22 Aug 2008 20:07:09 +0400, Zz <Zz nospam.com> wrote:I removed what I need from WindowsAPI and pasted it into my project since I use D 2.0 and not 1.0. I just changed FILE_NOTIFY_INFORMATION so that it looks like the following (which is more like the original definition in MSDN). Note: I removed _FileName; struct FILE_NOTIFY_INFORMATION { DWORD NextEntryOffset; DWORD Action; DWORD FileNameLength; WCHAR FileName; } Where you have got to cast to get FileName. It was good enough for what I needed to do. You can also look at Watcher http://www.dsource.org/projects/watcher where it's done differently and works with Mango. Zzdavidl Wrote:™é�“:在 Fri, 22 Aug 2008 21:10:12 +0800,Zz <Zz qqq.c> Ã¥â€Ã©ï¿½Â©Ã¥â€˜Â½Ã¦â‚¬Â§Ã§Å¡â€žÃ§â€�µåÂ�邮件客户ç¨⠹åº�:Has anyone done a wrapper for windows ReadDirectoryChangesW? I expected it in phobos windows.d but it's not there. Zzwww.dsource.org/projects/bindings should have got it done -- 使çâ€�¨ Operaworkshttp://www.opera.com/mail/Hi David, Thanks for the link the project WindowsAPI had the wrappers and itwith a little modification to FILE_NOTIFY_INFORMATION. ZzWhat are the modifications? Could you commit them, please?
Aug 25 2008
Denis Koroskin Wrote:On Mon, 25 Aug 2008 20:45:22 +0400, Extrawurst <spam extrawurst.org> wrote:Hi, I think I wasn't clear. The reason why I didn't use WindowsAPI as is was because I "thought" and could be wrong that there may be some issues. WindowsAPI just had what I needed. Thanks for the great work being done with WindowsAPI next time I might just go ahead and actually use it as is. ZzDenis Koroskin wrote:I remember it. Wasn't it fixed shortly after the introduction ("for Tango")? IIRC, it affected both D1 and D2, so the code should either work for both or for none.On Mon, 25 Aug 2008 19:02:54 +0400, Zz <Zz nospam.com> wrote:there was a breaking change though with deprecated types in one of the last updates i can recallDenis Koroskin Wrote:win32 bindings used to work with both D1 and D2 (a few versions ago at least). I'll take a look and update them if they got broken by recent changes. Thanks.On Fri, 22 Aug 2008 20:07:09 +0400, Zz <Zz nospam.com> wrote:I removed what I need from WindowsAPI and pasted it into my project since I use D 2.0 and not 1.0. I just changed FILE_NOTIFY_INFORMATION so that it looks like the following (which is more like the original definition in MSDN). Note: I removed _FileName; struct FILE_NOTIFY_INFORMATION { DWORD NextEntryOffset; DWORD Action; DWORD FileNameLength; WCHAR FileName; } Where you have got to cast to get FileName. It was good enough for what I needed to do. You can also look at Watcher http://www.dsource.org/projects/watcher where it's done differently and works with Mango. Zzdavidl Wrote:™é�“:在 Fri, 22 Aug 2008 21:10:12 +0800,Zz <Zz qqq.c> Ã¥â€Ã©ï¿½Â©Ã¥â€˜Â½Ã¦â‚¬Â§Ã§Å¡â€žÃ§â€�µåÂ�邮件客户ç¨⠹åº�:Has anyone done a wrapper for windows ReadDirectoryChangesW? I expected it in phobos windows.d but it's not there. Zzwww.dsource.org/projects/bindings should have got it done -- 使çâ€�¨ Operaworkshttp://www.opera.com/mail/Hi David, Thanks for the link the project WindowsAPI had the wrappers and itwith a little modification to FILE_NOTIFY_INFORMATION. ZzWhat are the modifications? Could you commit them, please?
Aug 25 2008