'asynchronous' version of _access()
-
Guys: I need to test the existence of a file on Novell server. I could use _access() function. But, under some conditions (example: when the Novell Server is in the process of shut-down), the _access() function takes very long time to return to the caller. So, what I need is a scheme which will enable me testing the existence of a file asynchronously. The Async version of access() should check the file existence and notify the caller once it is done with the file check. Thanks in advance. :)
-
Guys: I need to test the existence of a file on Novell server. I could use _access() function. But, under some conditions (example: when the Novell Server is in the process of shut-down), the _access() function takes very long time to return to the caller. So, what I need is a scheme which will enable me testing the existence of a file asynchronously. The Async version of access() should check the file existence and notify the caller once it is done with the file check. Thanks in advance. :)
Try using
CreateFile
inFILE_FLAG_OVERLAPPED
mode (this probably will work only in NT/2k/XP systems.) Joaquín M López Muñoz Telefónica, Investigación y Desarrollo