Compartir a través de


Win32_LogicalFileAccess class

The Win32_LogicalFileAccess association WMI class relates the security settings of a file or directory and one member of its discretionary access control list (DACL). You cannot enumerate this class.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[Dynamic, Provider("SECRCW32"), UUID("{8502C590-5FBB-11D2-AAC1-006008C78BC7}"), AMENDMENT]
class Win32_LogicalFileAccess : Win32_SecuritySettingAccess
{
  uint32                               AccessMask;
  string                               GuidInheritedObjectType;
  string                               GuidObjectType;
  uint32                               Inheritance;
  uint32                               Type;
  Win32_LogicalFileSecuritySetting REF SecuritySetting;
  Win32_SID                        REF Trustee;
};

Members

The Win32_LogicalFileAccess class has these types of members:

Properties

The Win32_LogicalFileAccess class has these properties.

AccessMask

Data type: uint32

Access type: Read-only

Bit flags specifying what permissions are affected.

This property is inherited from Win32_SecuritySettingAccess.

FILE_READ_DATA (file) FILE_LIST_DIRECTORY (directory) (0 (0x0))

Grants the right to read data from the file. For a directory, this value grants the right to list the contents of the directory.

FILE_WRITE_DATA (file) FILE_ADD_FILE (directory) (1 (0x1))

Grants the right to write data to the file. For a directory, this value grants the right to create a file in the directory.

FILE_APPEND_DATA (file) FILE_ADD_SUBDIRECTORY (4 (0x4))

Grants the right to append data to the file. For a directory, this value grants the right to create a subdirectory.

FILE_READ_EA (8 (0x8))

Grants the right to read extended attributes.

FILE_WRITE_EA (16 (0x10))

Grants the right to write extended attributes.

FILE_EXECUTE (file) FILE_TRAVERSE (directory) (32 (0x20))

Grants the right to execute a file. For a directory, the directory can be traversed.

FILE_DELETE_CHILD (64 (0x40))

Grants the right to delete a directory and all of the files it contains (its children), even if the files are read-only.

FILE_READ_ATTRIBUTES (128 (0x80))

Grants the right to read file attributes.

FILE_WRITE_ATTRIBUTES (256 (0x100))

Grants the right to change file attributes.

DELETE (65536 (0x10000))

Grants delete access.

READ_CONTROL (131072 (0x20000))

Grants read access to the security descriptor and owner.

WRITE_DAC (262144 (0x40000))

Grants write access to the discretionary access control list (DACL).

WRITE_OWNER (524288 (0x80000))

Assigns the write owner.

SYNCHRONIZE (1048576 (0x100000))

Synchronizes access and allows a process to wait for an object to enter the signaled state.

GuidInheritedObjectType

Data type: string

Access type: Read-only

Globally unique identifier (GUID) of the type of object from which this object inherits.

This property is inherited from Win32_SecuritySettingAccess.

GuidObjectType

Data type: string

Access type: Read-only

GUID of the type of object to which the security settings are applied.

This property is inherited from Win32_SecuritySettingAccess.

Inheritance

Data type: uint32

Access type: Read-only

Bit flags specifying how the access rights are inherited.

This property is inherited from Win32_SecuritySettingAccess.

SecuritySetting

Data type: Win32_LogicalFileSecuritySetting

Access type: Read-only

Qualifiers: Override ("SecuritySetting")

Reference to the instance representing the security settings of the file or directory object. This property cannot be enumerated.

Trustee

Data type: Win32_SID

Access type: Read-only

Qualifiers: Override ("Trustee")

Reference to the instance representing the entry on the object's DACL.

Type

Data type: uint32

Access type: Read-only

Type of access specified for the trustee.

This property is inherited from Win32_SecuritySettingAccess.

Set (0)

Deny (1)

Remarks

The Win32_LogicalFileAccess class is derived from Win32_SecuritySettingAccess.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\CIMV2
MOF
Secrcw32.mof
DLL
CIMWin32.dll

See also

Win32_SecuritySettingAccess

Operating System Classes

WMI Security Descriptor Objects