Add the DllImport attrib for InitializeSecurityContext_Client; still only a rough idea of how it will be used.

This commit is contained in:
antiduh
2014-06-19 21:52:53 +00:00
parent cca5cf8486
commit 07b6c4c77c

View File

@@ -9,7 +9,6 @@ namespace NSspi
{ {
public class NativeMethods public class NativeMethods
{ {
// http://msdn.microsoft.com/en-us/library/windows/desktop/aa374713(v=vs.85).aspx // http://msdn.microsoft.com/en-us/library/windows/desktop/aa374713(v=vs.85).aspx
/* /*
@@ -160,6 +159,13 @@ namespace NSspi
); );
*/ */
[DllImport(
"Secur32.dll",
EntryPoint = "InitializeSecurityContext",
CallingConvention = CallingConvention.Winapi,
CharSet = CharSet.Unicode,
SetLastError = true
)]
public static extern SecurityStatus InitializeSecurityContext_Client( public static extern SecurityStatus InitializeSecurityContext_Client(
ref long credentialHandle, ref long credentialHandle,
ref long prevContextHandle, ref long prevContextHandle,
@@ -167,7 +173,7 @@ namespace NSspi
int requiredAttribs, int requiredAttribs,
int reserved1, int reserved1,
int dataRep, int dataRep,
IntPtr dataBuffers, IntPtr inputBuffer,
int reserved2, int reserved2,
ref long newContextHandle, ref long newContextHandle,
IntPtr outputBuffer, IntPtr outputBuffer,