ISharingConfigurationManager::ShareExists method
Queries whether the Users or Public folder is shared.
Syntax
HRESULT ShareExists(
[in] DEF_SHARE_ID dsid
);
Parameters
- dsid [in]
-
Type: DEF_SHARE_ID
One of the DEF_SHARE_ID values that indicates the folder whose sharing state is being checked.
Return value
Type: HRESULT
S_OK if the folder is shared; otherwise, S_FALSE.
Remarks
Because as of Windows 7 Public is shared in-place through Users, callers should always check for the Users share first. If a share is found to exist on Users, then it follows that a share exists on Public as well.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
Show: