11-02-2007 08:57 AM
11-05-2007 11:03 PM
11-06-2007 06:30 AM
Wensu wrote:
Hi all,
I'm trying to make a Watched Folder program using the Windows API function ReadDirectoryChangesW.
Attached is a test program which uses CreateFileA to open a handle to a directory, passes the handle to ReadDirectoryChangesW which waits for a change in the directory, and then closes the handle with CloseHandle.
The test performs correctly, in that a handle is created and ReadDirectoryChangesW does wait for a change to the watched path, but I can't get any information about the change from the File_Notify_Information structure that is supposed to contain the changed path.
If we can get this working, it could serve as a good example for how to configure Call Library Function Node for more complex API's.
I think I'm close, but I haven't been able to sort out the finer points of passing structs from LV to Windows API functions.
Can you see what I'm doing wrong?
11-06-2007 09:16 AM
11-06-2007 11:05 AM