Home Reference WMI Reference root CIMV2 CIM_DataFile ChangeSecurityPermissionsEx
 

ChangeSecurityPermissionsEx

The ChangeSecurityPermissionsEx method changes the security permissions for the logical file specified in the object path. If the logical file is actually a directory, then this method will act recursively, changing the security permissions of all the files and sub-directories the directory contains. ChangeSecurityPermissionsEx returns an integer value of 0 if the permissions were changed, and any other number to indicate an error. The ChangeSecurityPermissionsEx method is an extended version of the ChangeSecurityPermissions method.

It returns one of the following integer values:

Syntax

UInt32 ReturnValue = ChangeSecurityPermissionsEx(Object SecurityDescriptor, UInt32 Option, String StartFileName, Boolean Recursive)

Parameters

Return Value

Examples

See Also

Help and Questions

  Community Content

You are cordially invited to add knowledge to this page. If you have sample code or additional information related to this WMI class, please share it. Use the comment form to send your information. We will edit and incorparate it into the reference library. Thank you!

Please do not use the comment form to submit questions. If you have questions or need assistance, visit our free forum: Help me with WMI.

Content last updated: 2013-12-27 12:23:03 (UTC).