ExpWnfSpecializeSecurityDescriptor

VOID __stdcall ExpWnfSpecializeSecurityDescriptor(VOID *SecurityDescriptor){
  _GENERIC_MAPPING *v2; 
  _GENERIC_MAPPING *v3; 
  unsigned __int8 DaclPresent; 
  unsigned __int8 DaclDefaulted; 
  PACL Dacl; 

  Dacl = 0i64;
  DaclPresent = 0;
  if( RtlGetDaclSecurityDescriptor(SecurityDescriptor, &DaclPresent, &Dacl, &DaclDefaulted) >= 0 && DaclPresent && Dacl )
    RtlpApplyAclToObject(Dacl, (_GENERIC_MAPPING *)&ExpWnfNotificationMapping, v2);
  if( RtlGetSaclSecurityDescriptor(SecurityDescriptor, &DaclPresent, &Dacl, &DaclDefaulted) >= 0 && DaclPresent )
  {
    if( Dacl )
      RtlpApplyAclToObject(Dacl, (_GENERIC_MAPPING *)&ExpWnfNotificationMapping, v3);
  }
}

Referenced by:

ExpWnfLookupPermanentName
NtCreateWnfStateName