Exemple #1
0
 public unsafe static extern int AcquireCredentialsHandleA(
     [In, MarshalAs(UnmanagedType.LPStr)] string pszPrincipal,
     [In, MarshalAs(UnmanagedType.LPStr)] string pszPackage,
     [In] int fCredentialUse,
     [In] void *pvLogonID,
     [In] void *pAuthData,
     [In] void *pGetKeyFn,
     [In] void *pvGetKeyArgument,
     [Out] out CredHandle phCredential,
     [Out] out long ptsExpiry);
Exemple #2
0
 public unsafe static extern int AcceptSecurityContext(
     [In] ref CredHandle phCredential,
     [In, Out] void *phContext,
     [In] ref SecBufferDesc pInput,
     [In] int fContextReq,
     [In] int TargetDataRep,
     [In, Out] ref CtxtHandle phNewContext,
     [In, Out] ref SecBufferDesc pOutput,
     [Out] out int pfContextAttr,
     [Out] out long ptsTimeStamp);
Exemple #3
0
 public SafeCredHandle(CredHandle credHandle)
     : base(IntPtr.Zero, true)
 {
     this.Handle = credHandle;
 }
Exemple #4
0
 public static extern int FreeCredentialsHandle(
     [In] ref CredHandle phCredential);