(PyCredHandle,PyTime) = AcquireCredentialsHandle(Principal, Package , CredentialUse , LogonID , AuthData )

Creates a handle to credentials for use with SSPI


Principal : str/unicode

Use None for current security context

Package : str/unicode

Name of security package that credentials will be used with

CredentialUse : int

Intended use of requested credentials, SECPKG_CRED_INBOUND, SECPKG_CRED_OUTBOUND, or SECPKG_CRED_BOTH

LogonID : long

LUID representing a logon session, can be None

AuthData : tuple

Sequence of 3 strings: (User, Domain, Password) - use none for existing credentials

Return Value

Returns credential handle and credential's expiration time