Re: Cant get SACL



Hello Akin,

Akın ÖCal wrote:
I cant get SACL of an existing file on my system with this code.

GetNamedSecurityInfo returns 0 (ERROR_SUCCESS) , which means
there is no error in execution of it but pSACL still becomes 0x00000000
and IsValidAcl(pSACL) returns FALSE .



Are you sure the file contains a SACL? You could double-check with the more low-level functions GetFileSecurity to retrieve the file's Security descriptor and then GetSecurityDescriptorSacl to retrieve the SACL.

--
Stefan
.



Relevant Pages

  • Re: Read Timeout Error
    ... The requested URL could not be retrieved ... While trying to retrieve the URL: ... Read Timeout ... read in manual that set_time_limitwill increase only the execution ...
    (comp.lang.php)
  • IN Operator in SQL queries with a variable having comma seperated values
    ... The Argument i will be passing for execution is: ... This needs to retrieve all the dept valued based on the ... any suggessions to this... ...
    (microsoft.public.sqlserver.programming)
  • How @@RowCount works in a concurrent environment?
    ... After execution of an Insert statement in my stored procedure, ... to retrieve how many rows were inserted into table X. ... But @@RowCount is a little Confusing for me. ... how can I limit the scope of @@RowCount to my stored- ...
    (microsoft.public.sqlserver.programming)