locked
SetSecurityDescriptorDacl error 0x519 RRS feed

  • Question

  • I am trying to use SetSecurityDescriptorDac to modify  a Security Descriptor for a file object,but it return error 0x519,why?

    PSECURITY_DESCRIPTOR sd;  GetNamedSecurityInfoW(L"C:\\Windows\\System\\drivers\\etc\\protocol",SE_FILE_OBJECT,NULL,NULL,NULL,NULL,NULL,&sd); //GetNamedSecurityInfoW is successful,i then call the  SetSecurityDescriptorDacl.  SetSecurityDescriptorDac(&sd,TRUE,NULL,FALSE);

    GetLastError();



    If you can’t explain it simply, you don’t understand it well enough.

    Saturday, May 26, 2012 9:00 AM

Answers

  • I have already solved it.


    If you can’t explain it simply, you don’t understand it well enough.

    • Marked as answer by wm_zhangwu Saturday, May 26, 2012 3:49 PM
    Saturday, May 26, 2012 3:48 PM