Everything is working fine If I run the application normally. But when running the application as "Run as Administrator", I am getting the following error.
Also if I try to use _access("Z:\TestFolder\Database1.mdb", mode);
api , then this api always return -1 for any mode either 00, 02, 04, or 06.
I think it is related with security in windows for accessing network drive, but not getting what exactly the problem is and how to handle such cases.