I need to use the Win32 NetShareGetInfo api to obtain a CIFS share definition
on the filer and for various reasons in isn't convenient for me to use the ONTAP
api to obtain the information.
An example of calling the api is:
/*=== Get actual path defined on remote machine ===*/
result = NetShareGetInfo(hostName , /* remote server */
shareName , /* share name */
502 , /* level of share info */
(LPBYTE *)&shi502P /* pointer to buffer address */
);
The api works inconstantly with shares mapped to various filers with both
a local filer root user and with a domain admin user.
When the api fails it returns a result code of 1003 which I cannot find documented
anywhere in the Microsoft SDK documentation.
Any suggestions/ideas would be appreciated.