Export (0) Print
Expand All
Expand Minimize

DEF_SHARE_ID enumeration

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
} DEF_SHARE_ID;

Constants

DEFSHAREID_USERS

The Users folder (FOLDERID_UserProfiles). This folder is usually found at C:\Users.

DEFSHAREID_PUBLIC

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft