in my VB6 program I encountered the following problem:
Problem regarding the API Function NetShareGetInfo:
If a user myuser has the following rights (permissions) on a share \\ComputerName\test_data
Full Control not allowed
Read & Execute allowed
List Folder Contents allowed
Special Permissions not allowed
the API Function NetShareGetInfo returns the Return Code ERROR_ACCESS_DENIED (=5).
But it is possible to establish a connection to this share using the user myuser on my computer;
and the files can be modified, ...
What could be wrong
is there another way to determine wether the share \\ComputerName\test_data is available?
I have used the Visual Basic program for the NetShareGetInfo API Function which can be found at:
If anyone knows a solution,
please supply an appropriate code snippet.
Thank you very much.