PC Review


Reply
Thread Tools Rate Thread

Access control list entries

 
 
Soeren S. Joergensen
Guest
Posts: n/a
 
      16th Sep 2005
Hi,

When using pinvoke to get an access control list (ACL) and from that ACL
getting every entry (ACE) I need to get the SID for wich this ACE concerns:

ACE (for allowed access) structure looks like:

[StructLayoutAttribute(LayoutKind.Sequential)]
public struct ACCESS_ALLOWED_ACE
{
public ACE_HEADER Header;
public ACE_ACCESS_MASK Mask;
public int SidStart;
}

The SidStart member should be a pointer (as a DWORD) telling me the address
where the SID starts and is also the first 4 bytes of the SID

MSDN tells me that SidStart is:
The first DWORD of a trustee's SID. The remaining bytes of the SID are
stored in contiguous memory after the SidStart member. This SID can be
appended with application data.

In C++ you would do this to get the SID
SID *sid = (SID *) &ace->Header->SidStart;

How is the above statement done in managed C# ??

I've tried numerous ways, but cannot get a valid SID.

Kr.
Soren


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
403 Forbidden: Access denied by access control list (SOLUTION) triffid@oink.co.uk Windows XP Internet Explorer 0 24th Feb 2006 02:30 PM
403 Forbidden: Access denied by access control list (SOLUTION) triffid@oink.co.uk Windows XP New Users 0 24th Feb 2006 02:30 PM
Home network 403 - Access denied by access control list Robert McGregor Windows XP Networking 1 11th Jan 2006 09:52 AM
Error 403 Forbidden - Access Denied by Access Control List Harroguk Windows XP Help 4 11th Aug 2005 02:22 PM
How do you extract a list of entries from a large MS Access db? =?Utf-8?B?S1dCb2Nr?= Microsoft Access 3 29th Mar 2005 11:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:14 PM.