[Win32utils-devel] Help needed for get_permissions
phasis at gmail.com
Fri Nov 30 22:48:10 UTC 2012
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(
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the win32utils-devel