Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReadDirectoryChangesW

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
ReadDirectoryChangesW
impossible to use this API function. i get a "Undeclared Identifier" message from the compiler for the line :

"ReadDirectoryChangesW(TargetDirHandle,&FileInfo,sizeof(FILE_NOTIFY_INFORMATION),FALSE,NotifyFlags,lpBytesReturned,0,&FileIOCompletionRoutine);"

windows.h is included - of course and the Kernel32.lib is linked.

i even tried opening a new workspace and adding the files to it. i got the same problem in compilation.
the only problem is with this line. when i remove it, compilation goes fine.
the winbase.h file seems fine - the function is defined well.
 
You need to define _WIN32_WINNT=0x0400 in the compiler options for this to work.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top