mirror of https://github.com/winsw/winsw
parent
ba562f20f7
commit
9c513e8584
|
@ -17,7 +17,6 @@ namespace WinSW.Native
|
|||
}
|
||||
finally
|
||||
{
|
||||
_ = FreeSid(sid);
|
||||
Marshal.FreeHGlobal(sid);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,9 +7,6 @@ namespace WinSW.Native
|
|||
{
|
||||
internal static class SecurityApis
|
||||
{
|
||||
[DllImport(Libraries.Advapi32, SetLastError = false)]
|
||||
internal static extern IntPtr FreeSid(IntPtr sid);
|
||||
|
||||
[DllImport(Libraries.Advapi32, SetLastError = true)]
|
||||
internal static extern bool GetTokenInformation(
|
||||
IntPtr tokenHandle,
|
||||
|
|
Loading…
Reference in New Issue