FindFirstFile/FindNextFile error in network
Posted on 2002-04-24
I make a program and I need user the FindFirstFile()
in the network... like:
hHandle = FindFirstFile( "\\\\network\\shared\\*.*",...)
But always I receive the error:
"Access is denied."
In the MSDN... at FindFirstFile() help... there is the following message:
[in] Pointer to a null-terminated string that specifies a valid directory or path and file name, which can contain wildcard characters (* and ?). If the string ends with a wildcard, a period, or a directory name, the user must have access to the root and all subdirectories on the path.
I have full access/permissions in the folder and the drive... and I continue receive the error...
In a console window, I can type:
and list all files... without problem...
What the problem with the FindFirstFile function ?
I dont know if have problems, but my program is a NT Service...