public static extern int AcceptSecurityContext(ref SecurityHandle phCredential,
                                                ref SecurityHandle phContext,
                                                ref SecurityBufferDesciption pInput,
                                                uint fContextReq,
                                                uint TargetDataRep,
                                                out SecurityHandle phNewContext,
                                                out SecurityBufferDesciption pOutput,
                                                out uint pfContextAttr,
                                                out SecurityInteger ptsTimeStamp
                                                );
 public static extern int AcquireCredentialsHandle(
     string pszPrincipal,
     string pszPackage,
     int fCredentialUse,
     IntPtr PAuthenticationID,
     IntPtr pAuthData,
     int pGetKeyFn,
     IntPtr pvGetKeyArgument,
     ref SecurityHandle phCredential,
     ref SecurityInteger ptsExpiry);
 public static extern int QuerySecurityContextToken(
     ref SecurityHandle phContext,
     ref IntPtr phToken
     );
 public static extern int AcceptSecurityContext(ref SecurityHandle phCredential,
     ref SecurityHandle phContext,
     ref SecurityBufferDesciption pInput,
     uint fContextReq,
     uint TargetDataRep,
     out SecurityHandle phNewContext,
     out SecurityBufferDesciption pOutput,
     out uint pfContextAttr,
     out SecurityInteger ptsTimeStamp
     );
 public static extern int AcquireCredentialsHandle(
     string pszPrincipal,
     string pszPackage,
     int fCredentialUse,
     IntPtr PAuthenticationID,
     IntPtr pAuthData,
     int pGetKeyFn,
     IntPtr pvGetKeyArgument,
     ref SecurityHandle phCredential,
     ref SecurityInteger ptsExpiry);
 public WindowsAuthenticationHandshake()
 {
     credentials = new SecurityHandle(0);
     context     = new SecurityHandle(0);
 }
 public static extern int QuerySecurityContextToken(
     ref SecurityHandle phContext,
     ref IntPtr phToken
     );
 public WindowsAuthenticationHandshake()
 {
     credentials = new SecurityHandle(0);
     context = new SecurityHandle(0);
 }