I use Visual Studio 6 C++. For copy files to remote server(Windows 2000 Server) I call Win32 API function CopyFile(). If the destenition server is OK or does not exist in network CopyFile() returns immediatly. But if the server is defined (for example in active directory)but does not work at the moment CopyFile() "thinks" aproximatly 30 sec. befor fails.
I can't find in MSDN API to make something as ping or force CopyFile() to return more quikly.
I hope that my question is clear despite my terriable English.
Thanks Oleg.
I can't find in MSDN API to make something as ping or force CopyFile() to return more quikly.
I hope that my question is clear despite my terriable English.
Thanks Oleg.