ISharingConfigurationManager::DeleteShare method (shobjidl_core.h)
Removes sharing from either the Users or Public folder.
Syntax
HRESULT DeleteShare(
[in] DEF_SHARE_ID dsid
);
Parameters
[in] dsid
Type: DEF_SHARE_ID
One of the DEF_SHARE_ID values that specifies the folder to no longer share.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Running this method requires an Administrator privilege level.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |