https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-sevalidsecuritydescriptor
SeValidSecurityDescriptor function (wdm.h) - Windows drivers | Microsoft Learn
The SeValidSecurityDescriptor routine returns whether a given security descriptor is structurally valid.
windows driversfunctionwdmhmicrosoft