- 1 year ago
Function NetShareGetInfo return always 2310 (This share doesn't exist)
The error code 2310 returned by the NetShareGetInfo
function indicates that the share you are trying to retrieve information for does not exist. This error typically occurs when the share name specified in the function call does not match an existing share on the system.
Here are a few things to check to resolve the issue:
Verify the share name: Make sure that the share name provided in the
NetShareGetInfo
function call matches the exact name of an existing share on the system. Double-check for any typos or case sensitivity.Check share permissions: Ensure that the account used to call the
NetShareGetInfo
function has sufficient permissions to access the share. If the account does not have appropriate permissions, it may not be able to retrieve share information.Confirm share existence: Verify that the share you are trying to retrieve information for actually exists on the system. You can check this by listing the shares on the system using the
net share
command or by using theNetShareEnum
function.
If you have confirmed that the share name is correct, the account has sufficient permissions, and the share exists, but you still encounter the error, it's possible that there may be an issue with the underlying system or network configuration. In such cases, you may need to troubleshoot further or consult the Windows documentation or support resources for additional assistance.