dB.
2010-02-10 17:40:15 UTC
I can't see anything wrong with my PInvoke declaration for
AcquireCredentialsHandle, but it keeps coming back with garbage for
the credential handle (high part = 0, low part = some number). Both
should be filled.
Anyone has a working sample that uses AcquireCredentialsHandle in C#,
tested on Windows 64bit?
[DllImport("secur32.dll", CharSet = CharSet.Auto)]
public static extern int AcquireCredentialsHandle(
[In] string pszPrincipal,
[In] string pszPackage,
[In] uint fCredentialUse,
[In] IntPtr pvLogonID,
[In] IntPtr pAuthData,
[In] IntPtr pGetKeyFn,
[In] IntPtr pvGetKeyArgument,
[Out] out SecHandle phCredential,
[Out] out SECURITY_INTEGER ptsExpiry);
Thanks,
dB.
AcquireCredentialsHandle, but it keeps coming back with garbage for
the credential handle (high part = 0, low part = some number). Both
should be filled.
Anyone has a working sample that uses AcquireCredentialsHandle in C#,
tested on Windows 64bit?
[DllImport("secur32.dll", CharSet = CharSet.Auto)]
public static extern int AcquireCredentialsHandle(
[In] string pszPrincipal,
[In] string pszPackage,
[In] uint fCredentialUse,
[In] IntPtr pvLogonID,
[In] IntPtr pAuthData,
[In] IntPtr pGetKeyFn,
[In] IntPtr pvGetKeyArgument,
[Out] out SecHandle phCredential,
[Out] out SECURITY_INTEGER ptsExpiry);
Thanks,
dB.