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

advapi32

.
Summary
The GetSidSubAuthorityCount function returns a pointer to the member in a security identifier (SID) structure containing the subauthority count
.

static extern IntPtr GetSidSubAuthorityCount(IntPtr psid);

.

Declare Function GetSidSubAuthorityCount Lib "advapi32.dll" (

.

Dim numSubAuthorities As Byte = Runtime.InteropServices.Marshal.ReadByte(GetSidSubAuthorityCount(pSID), 0)

.

   iptr = GetSidSubAuthorityCount(Sid)

.

     iptr = GetSidSubAuthority(Sid, i)

.
Documentation
[GetSidSubAuthorityCount] on MSDN
.
Summary
The GetSidSubAuthorityCount function returns a pointer to the member in a security identifier (SID) structure containing the subauthority count
.

static extern TODO GetSidSubAuthorityCount(TODO);

.

Declare Function GetSidSubAuthorityCount Lib "advapi32.dll" (

.

Dim numSubAuthorities As Byte = Runtime.InteropServices.Marshal.ReadByte(GetSidSubAuthorityCount(pSID), 0)

.

   iptr = GetSidSubAuthorityCount(Sid)

.

     iptr = GetSidSubAuthority(Sid, i)

.
Documentation
[GetSidSubAuthorityCount] on MSDN

Constants

.

        static extern IntPtr GetSidSubAuthority(IntPtr sid, UInt32 subAuthorityIndex);

.

        static extern IntPtr GetSidSubAuthorityCount(IntPtr sid);

.

                            int dwIntegrityLevel = Marshal.ReadInt32(GetSidSubAuthority(pSid, (Marshal.ReadByte(GetSidSubAuthorityCount(pSid)) - 1U)));


 
Access PInvoke.net directly from VS: