How to get a pointer to a SID from an ACE

From: Christopher Grace ([remove)
Date: 11/05/02


From: "Christopher Grace" <[remove]conceptualcoding@yahoo.com>
Date: Mon, 4 Nov 2002 17:19:43 -0700


I am trying to duplicate the functionality of some C++ code in VB.NET. The
code gets
a pointer to an Access Control Entry and from that gets a pointer to a
Security Identifier.

***
GetAce( pDacl, i, reinterpret_cast<void**>(&pAce) )
If EqualSid( pSid, &pAce->SidStart ) ...
***

The ACE is an Access_Allowed_Ace. That structure has
a SidStart field that's used to get a pointer to the SID. I am able to get
the vlaue in SidStart, but it equals 769; that's not a pointer to a valid
SID. I read somewhere that SidStart is not actually a pointer, but can be
used to get one in C++. Does anyone know what's going on here? How do I
use the value in SidStart?



Relevant Pages

  • How to get a pointer to a SID from an ACE
    ... a pointer to an Access Control Entry and from that gets a pointer to a ... a SidStart field that's used to get a pointer to the SID. ...
    (microsoft.public.win2000.security)
  • Re: C# prototype of C: void**
    ... private static extern int imgSnap(int sid, ref IntPtr bufAddr); ... have a pointer to a pointer, you need to pass it by ref. ... How do I call this C# method (rval is uint, sid is int)? ... > "bufAddr" exists allready, it must not be allocated, and I don't want ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: UserName of a process
    ... Prisy ... > SID_AND_ATTRIBUTES, which has two fields, Sid and Attributes. ... > is the pointer to the SID. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: UserName of a process
    ... want to get the username for first. ... SID_AND_ATTRIBUTES, which has two fields, Sid and Attributes. ... is the pointer to the SID. ...
    (microsoft.public.dotnet.languages.csharp)
  • Mouse Pointer
    ... When I switch to the console ctrl-alt-f1 and go back to Xwindow ... shows up the Xwindow X pointer on the center of the screen but the ... PD this happens with Sarge and SID too ...
    (Debian-User)