Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Queries whether the Users or Public folder is shared.
Syntax
HRESULT ShareExists(
[in] DEF_SHARE_ID dsid
);
Parameters
[in] dsid
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
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) |