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 "GetNamedSecurityInfo" in [All]

advapi32

.

    ret = GetNamedSecurityInfo(strPath, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION, Nothing, Nothing, pOldDACL, Nothing, pSecDesc)

.

    ret = GetNamedSecurityInfo(_Path, SE_OBJECT_TYPE.SE_FILE_OBJECT, SECURITY_INFORMATION.DACL_SECURITY_INFORMATION, Nothing, Nothing, pDACL, Nothing, pSD)

.

    If GetNamedSecurityInfo(Path, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION, Nothing, Nothing, pDACL, Nothing, pSecDesc) <> 0 Then

.
Summary
The GetNamedSecurityInfo function retrieves a copy of the security descriptor for an object specified by name.
.

static extern uint GetNamedSecurityInfo(

.

Declare Function GetNamedSecurityInfo Lib "advapi32.dll" ( _

.

    int errorReturn = GetNamedSecurityInfo(objectName, SE_FILE_OBJECT,

.

        Console.WriteLine("GetNamedSecurityInfo: {0} ", errorReturn);

.

    ret = GetNamedSecurityInfo(strPath, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION, Nothing, Nothing, pOldDACL, Nothing, pSecDesc)

.
Documentation
[GetNamedSecurityInfo] on MSDN
.
Summary
The QueryServiceObjectSecurity function retrieves a copy of the security descriptor associated with a service object. You can also use the GetNamedSecurityInfo function to retrieve a security descriptor.

Constants

.

GetNamedSecurityInfo

.

GetNamedSecurityInfo

.

GetNamedSecurityInfo


 
Access PInvoke.net directly from VS: