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