# GetSecurityDescriptorLength

```csharp
[DllImport("Advapi32.dll", SetLastError = true)]
public static extern uint GetSecurityDescriptorLength(
   IntPtr pSecurityDescriptor
);
```

Microsoft documentation: [Link](https://docs.microsoft.com/en-us/windows/win32/api/securitybaseapi/nf-securitybaseapi-getsecuritydescriptorlength)
