Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "SetNamedSecurityInfo" in [All]

advapi32

.

static extern TODO SetNamedSecurityInfo)(TODO);

.

Declare Function SetNamedSecurityInfo) Lib "advapi32.dll" (TODO) As TODO

.
Documentation
SetNamedSecurityInfo)@msdn on MSDN
.
Summary
The SetNamedSecurityInfo function sets specified security information in the security descriptor of a specified object. The caller identifies the object by name
.

static extern uint SetNamedSecurityInfo(

.

Declare Function SetNamedSecurityInfo Lib "advapi32.dll" ( _

.

private static extern uint SetNamedSecurityInfoW(String pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, IntPtr psidOwner, IntPtr psidGroup, IntPtr pDacl, IntPtr pSacl);

.

        SetNamedSecurityInfoW(UnicodeHeader+objectName, SE_OBJECT_TYPE.SE_FILE_OBJECT, sFlags,sidPtr , IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);

.

ret = SetNamedSecurityInfo(strPath, _

.
Documentation
[SetNamedSecurityInfo] on MSDN
.

The TreeSetNamedSecurityInfo function sets specified security information in the security descriptor of a specified tree of objects. This function allows a specified discretionary access control list (DACL) or any elements in the system access control list (SACL) to be propagated throughout an entire tree. This function supports a callback function to track the progress of the tree operation.

.

[DllImport("advapi32.dll", EntryPoint = "TreeSetNamedSecurityInfoW", SetLastError = true, CharSet = CharSet.Unicode)]

.

static extern uint TreeSetNamedSecurityInfo(string pObjectName, SE_OBJECT_TYPE ObjectType, SecurityInformation SecurityInfo,

.

    uint errorReturn = TreeSetNamedSecurityInfo(path, SE_OBJECT_TYPE.SE_FILE_OBJECT, si, pSidOwner, pSidGroup, pDacl, pSacl, TREE_SEC_INFO_SET, callback, PROGRESS_INVOKE_SETTING.ProgressInvokePrePostError, pArgs);

.
Documentation
[TreeSetNamedSecurityInfo] on MSDN

Constants

.

SetNamedSecurityInfo

.

SetNamedSecurityInfo

.

SetNamedSecurityInfo

Enums

.
Summary
.

  [DllImport("advapi32.dll", EntryPoint = "SetNamedSecurityInfoW", CallingConvention = CallingConvention.Winapi,


 
Access PInvoke.net directly from VS: