Added basic functionality to query package information.

This commit is contained in:
antiduh
2014-06-25 20:14:12 +00:00
parent 5f3fd64169
commit 6dfaa54b63
5 changed files with 139 additions and 4 deletions

View File

@@ -29,5 +29,9 @@ namespace NSspi
[DllImport( "Secur32.dll", EntryPoint = "FreeContextBuffer", CharSet = CharSet.Unicode )]
public static extern SecurityStatus FreeContextBuffer( IntPtr buffer );
[ReliabilityContract( Consistency.WillNotCorruptState, Cer.Success )]
[DllImport( "Secur32.dll", EntryPoint = "QuerySecurityPackageInfo", CharSet = CharSet.Unicode )]
internal static extern SecurityStatus QuerySecurityPackageInfo( string packageName, ref IntPtr pkgInof );
}
}