Menu

#673 FindFirstFile, FindFirstFileEx, FindNext not working - lockout?

v1.0 (example)
closed-invalid
nobody
None
5
2017-09-23
2017-09-23
No
#include <windows.h>
HANDLE hRoot = FindFirstFileEx("\prj\*", FindExInfoMaxInfoLevel, &fdRoot,FindExSearchNameMatch,NULL,FIND_FIRST_EX_CASE_SENSITIVE);
CloseHandle(hRoot);
    hRoot = FindFirstFile("\prj\*", &fdRoot);
CloseHandle(hRoot);

first call returns INVALID_HANDLE_VALUE but the dir exists.
second call succeeds but finds nothing.
are these functions in 6.4.0 pointing to the right function in kernel32?

Discussion

  • Mateusz

    Mateusz - 2017-09-23

    Please use double backslashes in string literals -- see http://en.cppreference.com/w/cpp/language/escape

     
  • niXman

    niXman - 2017-09-23
    • status: open --> closed-invalid
     

Log in to post a comment.

MongoDB Logo MongoDB