More hiding internals.

This commit is contained in:
antiduh
2014-06-25 01:32:42 +00:00
parent 1577d2de66
commit ea80cfb1f5

View File

@@ -9,7 +9,7 @@ using NSspi.Credentials;
namespace NSspi namespace NSspi
{ {
public static class CredentialNativeMethods internal static class CredentialNativeMethods
{ {
/* /*
SECURITY_STATUS SEC_Entry AcquireCredentialsHandle( SECURITY_STATUS SEC_Entry AcquireCredentialsHandle(
@@ -37,7 +37,7 @@ namespace NSspi
[ReliabilityContract( Consistency.WillNotCorruptState, Cer.MayFail)] [ReliabilityContract( Consistency.WillNotCorruptState, Cer.MayFail)]
[DllImport( "Secur32.dll", EntryPoint = "AcquireCredentialsHandle", CharSet = CharSet.Unicode )] [DllImport( "Secur32.dll", EntryPoint = "AcquireCredentialsHandle", CharSet = CharSet.Unicode )]
public static extern SecurityStatus AcquireCredentialsHandle( internal static extern SecurityStatus AcquireCredentialsHandle(
string principleName, string principleName,
string packageName, string packageName,
CredentialUse credentialUse, CredentialUse credentialUse,
@@ -51,7 +51,7 @@ namespace NSspi
[ReliabilityContract( Consistency.WillNotCorruptState, Cer.Success )] [ReliabilityContract( Consistency.WillNotCorruptState, Cer.Success )]
[DllImport( "Secur32.dll", EntryPoint = "FreeCredentialsHandle", CharSet = CharSet.Unicode )] [DllImport( "Secur32.dll", EntryPoint = "FreeCredentialsHandle", CharSet = CharSet.Unicode )]
public static extern SecurityStatus FreeCredentialsHandle( internal static extern SecurityStatus FreeCredentialsHandle(
ref RawSspiHandle credentialHandle ref RawSspiHandle credentialHandle
); );
@@ -67,7 +67,7 @@ namespace NSspi
/// <returns></returns> /// <returns></returns>
[ReliabilityContract( Consistency.WillNotCorruptState, Cer.Success )] [ReliabilityContract( Consistency.WillNotCorruptState, Cer.Success )]
[DllImport( "Secur32.dll", EntryPoint = "QueryCredentialsAttributes", CharSet = CharSet.Unicode )] [DllImport( "Secur32.dll", EntryPoint = "QueryCredentialsAttributes", CharSet = CharSet.Unicode )]
public static extern SecurityStatus QueryCredentialsAttribute_Name( internal static extern SecurityStatus QueryCredentialsAttribute_Name(
ref RawSspiHandle credentialHandle, ref RawSspiHandle credentialHandle,
CredentialQueryAttrib attributeName, CredentialQueryAttrib attributeName,
ref QueryNameAttribCarrier name ref QueryNameAttribCarrier name