Group: Network Management - Library: netapi32
Deletes a share name from a server"s list of shared resources, disconnecting all connections to the shared resource.
How to enumerate, add and delete shares on the local computer (WinNT/XP)
NET_API_STATUS NetShareDel(
LMSTR servername,
LMSTR netname,
DWORD reserved
); DECLARE INTEGER NetShareDel IN netapi32;
STRING servername,;
STRING netname,;
LONG reserved servername [in] Pointer to a string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute.
netname [in] Pointer to a string that specifies the name of the share to delete.
reserved Reserved, must be zero.
If the function succeeds, the return value is NERR_Success (0).
If the servername parameter is NULL, the local computer is used.
Home