Add the DllImport attrib for InitializeSecurityContext_Client; still only a rough idea of how it will be used.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user