Menu
  • HOME
  • TAGS

How should I read the filename in FILE_NOTIFY_INFORMATION struct

c++,winapi,filesystems,file-monitoring,readdirectorychangesw

You have a number of problems that I can see immediately: According to the docs for the ReadDirectoryChangesW function, the buffer needs to be DWORD-aligned. As you are using a buffer on the stack this isn't guaranteed - you should allocate one from the heap instead. You don't seem to...