45 {
46 int num = -1;
47 outCredential = new SafeFreeCredential_SECURITY();
48 num = global::Interop.SspiCli.AcquireCredentialsHandleW(null, package, (int)intent, null, authdata, null, null, ref outCredential._handle, out var _);
49 if (num != 0)
50 {
51 outCredential.SetHandleAsInvalid();
52 }
53 return num;
54 }