ISharingConfigurationManager::GetSharePermissions method
Gets the access permissions currently associated with the User or Public folder for the Everyone access control entry (ACE).
Syntax
HRESULT GetSharePermissions(
[in] DEF_SHARE_ID dsid,
[out] SHARE_ROLE *pRole
);
Parameters
- dsid [in]
-
Type: DEF_SHARE_ID
One of the DEF_SHARE_ID values that specifies the folder.
- pRole [out]
-
Type: SHARE_ROLE*
A pointer to a value that, when this method returns successfully, receives one of the SHARE_ROLE values that indicate the sharing permissions set for the folder specified in the dsid parameter.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
Show: