Επεξεργασία

Κοινή χρήση μέσω


DEF_SHARE_ID enumeration (shobjidl_core.h)

Values that specify the folder being acted on by methods of the ISharingConfigurationManager interface.

Syntax

typedef enum DEF_SHARE_ID {
  DEFSHAREID_USERS = 1,
  DEFSHAREID_PUBLIC = 2
} ;

Constants

 
DEFSHAREID_USERS
Value: 1
The Users folder (FOLDERID_UserProfiles). This folder is usually found at C:\Users.
DEFSHAREID_PUBLIC
Value: 2
The Public folder (FOLDERID_Public). This folder is usually found at C:\Users\Public.

Remarks

In Windows Vista, an Server Message Block (SMB) share is created for both the Users and Public folders. As of Windows 7, the Public share is accessed through the Users share, so only Users is given an SMB share.

When methods are called with the DEFSHAREID_PUBLIC value, the restrictions specified by the SHARE_ROLE value in that call apply to the Everyone access control entry (ACE).

When methods are called with the DEFSHAREID_USERS value, the restrictions specified by the SHARE_ROLE value in that call apply to the Authenticated Users ACE.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header shobjidl_core.h (include Shobjidl.h)