[Win32utils-devel] Help needed for get_permissions
djberg96 at gmail.com
Sat Dec 1 18:09:46 UTC 2012
On Fri, Nov 30, 2012 at 3:48 PM, Heesob Park <phasis at gmail.com> wrote:
> 2012/12/1 Daniel Berger <djberg96 at gmail.com>
>> On Thu, Nov 29, 2012 at 8:23 PM, Heesob Park <phasis at gmail.com> wrote:
>> > Hi,
>> > 2012/11/30 Daniel Berger <djberg96 at gmail.com>:
>> >> I'm working on the win32-file-security lib (the security functions
>> >> split out from win32-file), but I'm stuck on the get_permissions
>> >> method conversion to FFI. Specifically, the ACL struct doesn't seem to
>> >> get filled with correct values on the call to
>> >> GetSecurityDescriptorDacl. They're junk.
>> >> I've tried creating a new ACL from the pointer, but that didn't seem
>> >> to work. Any ideas?
>> > I guess you have some trouble for the pointer of pointer.
>> > Here is a working code:
>> I think I'm stuck again, this time the SidStart member of the
>> ACCESS_ALLOWED_ACE struct isn't valid. Can you please take a look?
>> git clone https://github.com/djberg96/win32-file-security.git
> The LookupAccountSidW call should be
> val = LookupAccountSidW(
I thought the :SidStart member was the same thing. Guess not. Anyway,
that worked, thanks!
More information about the win32utils-devel