Windows Dev Center

ISharingConfigurationManager::DeleteShare method

Removes sharing from either the Users or Public folder.

Syntax


HRESULT DeleteShare(
  [in] DEF_SHARE_ID dsid
);

Parameters

dsid [in]

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Community Additions

ADD
Show:
© 2015 Microsoft