ISharingConfigurationManager::ShareExists method (shobjidl_core.h)
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) |
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για