29#define WINADVAPI DECLSPEC_IMPORT
32#ifndef __SECHANDLE_DEFINED__
33#define __SECHANDLE_DEFINED__
41#ifndef __WINE_CTXTHANDLE_DEFINED__
42#define __WINE_CTXTHANDLE_DEFINED__
160#define CERT_HASH_LENGTH 20
179#define CRED_MAX_STRING_LENGTH 256
180#define CRED_MAX_USERNAME_LENGTH 513
181#define CRED_MAX_GENERIC_TARGET_NAME_LENGTH 32767
182#define CRED_MAX_DOMAIN_TARGET_NAME_LENGTH 337
183#define CRED_MAX_VALUE_SIZE 256
184#define CRED_MAX_ATTRIBUTES 64
186#define CRED_MAX_BLOB_SIZE 512
187#define CRED_MAX_CREDENTIAL_BLOB_SIZE (5 * CRED_MAX_BLOB_SIZE)
189#define CREDUI_MAX_MESSAGE_LENGTH 32767
190#define CREDUI_MAX_CAPTION_LENGTH 128
191#define CREDUI_MAX_GENERIC_TARGET_LENGTH CRED_MAX_GENERIC_TARGET_NAME_LENGTH
192#define CREDUI_MAX_DOMAIN_TARGET_LENGTH CRED_MAX_DOMAIN_TARGET_LENGTH
193#define CREDUI_MAX_USERNAME_LENGTH CRED_MAX_USERNAME_LENGTH
194#define CREDUI_MAX_PASSWORD_LENGTH (CRED_MAX_CREDENTIAL_BLOB_SIZE / 2)
197#define CRED_FLAGS_PASSWORD_FOR_CERT 0x0001
198#define CRED_FLAGS_PROMPT_NOW 0x0002
199#define CRED_FLAGS_USERNAME_TARGET 0x0004
200#define CRED_FLAGS_OWF_CRED_BLOB 0x0008
201#define CRED_FLAGS_VALID_FLAGS 0x000f
204#define CRED_TYPE_GENERIC 1
205#define CRED_TYPE_DOMAIN_PASSWORD 2
206#define CRED_TYPE_DOMAIN_CERTIFICATE 3
207#define CRED_TYPE_DOMAIN_VISIBLE_PASSWORD 4
208#define CRED_TYPE_GENERIC_CERTIFICATE 5
209#define CRED_TYPE_MAXIMUM 6
210#define CRED_TYPE_MAXIMUM_EX (CRED_TYPE_MAXIMUM+1000)
213#define CRED_PERSIST_NONE 0
214#define CRED_PERSIST_SESSION 1
215#define CRED_PERSIST_LOCAL_MACHINE 2
216#define CRED_PERSIST_ENTERPRISE 3
219#define CRED_TI_SERVER_FORMAT_UNKNOWN 1
220#define CRED_TI_DOMAIN_FORMAT_UNKNOWN 2
221#define CRED_TI_ONLY_PASSWORD_REQUIRED 4
223#define CREDUI_FLAGS_INCORRECT_PASSWORD 0x00000001
224#define CREDUI_FLAGS_DO_NOT_PERSIST 0x00000002
225#define CREDUI_FLAGS_REQUEST_ADMINISTRATOR 0x00000004
226#define CREDUI_FLAGS_EXCLUDE_CERTIFICATES 0x00000008
227#define CREDUI_FLAGS_REQUIRE_CERTIFICATE 0x00000010
228#define CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX 0x00000040
229#define CREDUI_FLAGS_ALWAYS_SHOW_UI 0x00000080
230#define CREDUI_FLAGS_REQUIRE_SMARTCARD 0x00000100
231#define CREDUI_FLAGS_PASSWORD_ONLY_OK 0x00000200
232#define CREDUI_FLAGS_VALIDATE_USERNAME 0x00000400
233#define CREDUI_FLAGS_COMPLETE_USERNAME 0x00000800
234#define CREDUI_FLAGS_PERSIST 0x00001000
235#define CREDUI_FLAGS_SERVER_CREDENTIAL 0x00004000
236#define CREDUI_FLAGS_EXPECT_CONFIRMATION 0x00020000
237#define CREDUI_FLAGS_GENERIC_CREDENTIALS 0x00040000
238#define CREDUI_FLAGS_USERNAME_TARGET_CREDENTIALS 0x00080000
239#define CREDUI_FLAGS_KEEP_USERNAME 0x00100000
242#define CRED_PRESERVE_CREDENTIAL_BLOB 0x00000001
246#define CredDelete WINELIB_NAME_AW(CredDelete)
266#define CredEnumerate WINELIB_NAME_AW(CredEnumerate)
279#define CredIsMarshaledCredential WINELIB_NAME_AW(CredIsMarshaledCredential)
297#define CredMarshalCredential WINELIB_NAME_AW(CredMarshalCredential)
317#define CredRead WINELIB_NAME_AW(CredRead)
337#define CredReadDomainCredentials WINELIB_NAME_AW(CredReadDomainCredentials)
357#define CredRename WINELIB_NAME_AW(CredRename)
375#define CredUnmarshalCredential WINELIB_NAME_AW(CredUnmarshalCredential)
379#define CredWrite WINELIB_NAME_AW(CredWrite)
407#define CredUICmdLinePromptForCredentials WINELIB_NAME_AW(CredUICmdLinePromptForCredentials)
411#define CredUIConfirmCredentials WINELIB_NAME_AW(CredUIConfirmCredentials)
431#define CredUIParseUserName WINELIB_NAME_AW(CredUIParseUserName)
461#define CredUIPromptForCredentials WINELIB_NAME_AW(CredUIPromptForCredentials)
#define _Inout_updates_(s)
#define _Outptr_result_buffer_(s)
UCHAR rgbHashOfCert[CERT_HASH_LENGTH]
PCREDENTIAL_ATTRIBUTEA Attributes
_Field_size_bytes_(CredentialBlobSize) LPBYTE CredentialBlob
PCREDENTIAL_ATTRIBUTEW Attributes
WINADVAPI BOOL WINAPI CredEnumerateA(_In_opt_ LPCSTR, _Reserved_ DWORD, _Out_ DWORD *Count, _Outptr_result_buffer_(*Count) PCREDENTIALA **)
DWORD WINAPI CredUIPromptForCredentialsA(_In_opt_ PCREDUI_INFOA, _In_opt_ PCSTR, _Reserved_ PCtxtHandle, _In_ DWORD, _Inout_updates_(ulUserNameBufferSize) PSTR, _In_ ULONG ulUserNameBufferSize, _Inout_updates_(ulPasswordBufferSize) PSTR, _In_ ULONG ulPasswordBufferSize, _Inout_opt_ PBOOL, _In_ DWORD)
DWORD WINAPI CredUICmdLinePromptForCredentialsA(_In_opt_ PCSTR, _Reserved_ PCtxtHandle, _In_ DWORD, _Inout_updates_(ulUserBufferSize) PSTR, _In_ ULONG ulUserBufferSize, _Inout_updates_(ulPasswordBufferSize) PSTR, _In_ ULONG ulPasswordBufferSize, _Inout_opt_ PBOOL, _In_ DWORD)
DWORD WINAPI CredUIConfirmCredentialsA(_In_ PCSTR, _In_ BOOL)
struct _CREDENTIAL_TARGET_INFORMATIONA CREDENTIAL_TARGET_INFORMATIONA
DWORD WINAPI CredUIParseUserNameW(_In_ PCWSTR, _Out_writes_(userBufferSize) PWSTR, _In_ ULONG userBufferSize, _Out_writes_(domainBufferSize) PWSTR, _In_ ULONG domainBufferSize)
struct _CREDENTIALA CREDENTIALA
WINADVAPI BOOL WINAPI CredDeleteA(_In_ LPCSTR, _In_ DWORD, _Reserved_ DWORD)
WINADVAPI BOOL WINAPI CredMarshalCredentialA(_In_ CRED_MARSHAL_TYPE, _In_ PVOID, _Out_ LPSTR *)
WINADVAPI BOOL WINAPI CredEnumerateW(_In_opt_ LPCWSTR, _Reserved_ DWORD, _Out_ DWORD *Count, _Outptr_result_buffer_(*Count) PCREDENTIALW **)
struct _CERT_CREDENTIAL_INFO CERT_CREDENTIAL_INFO
enum _CRED_MARSHAL_TYPE CRED_MARSHAL_TYPE
WINADVAPI BOOL WINAPI CredMarshalCredentialW(_In_ CRED_MARSHAL_TYPE, _In_ PVOID, _Out_ LPWSTR *)
struct _CREDUI_INFOA * PCREDUI_INFOA
struct _CREDENTIAL_TARGET_INFORMATIONA * PCREDENTIAL_TARGET_INFORMATIONA
struct _CERT_CREDENTIAL_INFO * PCERT_CREDENTIAL_INFO
DWORD WINAPI CredUIConfirmCredentialsW(_In_ PCWSTR, _In_ BOOL)
WINADVAPI BOOL WINAPI CredReadDomainCredentialsW(_In_ PCREDENTIAL_TARGET_INFORMATIONW, _In_ DWORD, _Out_ DWORD *Count, _Outptr_result_buffer_(*Count) PCREDENTIALW **)
struct _CREDUI_INFOW CREDUI_INFOW
WINADVAPI BOOL WINAPI CredReadA(_In_ LPCSTR, _In_ DWORD, _Reserved_ DWORD, _Out_ PCREDENTIALA *)
WINADVAPI BOOL WINAPI CredGetSessionTypes(_In_ DWORD MaximumPersistCount, _Out_writes_(MaximumPersistCount) LPDWORD)
struct _CREDENTIAL_TARGET_INFORMATIONW CREDENTIAL_TARGET_INFORMATIONW
struct _CREDENTIAL_ATTRIBUTEA CREDENTIAL_ATTRIBUTEA
WINADVAPI BOOL WINAPI CredReadW(_In_ LPCWSTR, _In_ DWORD, _Reserved_ DWORD, _Out_ PCREDENTIALW *)
struct _SecHandle * PSecHandle
enum _CRED_MARSHAL_TYPE * PCRED_MARSHAL_TYPE
WINADVAPI VOID WINAPI CredFree(_In_ PVOID)
WINADVAPI BOOL WINAPI CredDeleteW(_In_ LPCWSTR, _In_ DWORD, _Reserved_ DWORD)
struct _CREDENTIALW * PCREDENTIALW
struct _CREDENTIALW CREDENTIALW
WINADVAPI BOOL WINAPI CredWriteW(_In_ PCREDENTIALW, _In_ DWORD)
struct _CREDENTIAL_TARGET_INFORMATIONW * PCREDENTIAL_TARGET_INFORMATIONW
DWORD WINAPI CredUIPromptForCredentialsW(_In_opt_ PCREDUI_INFOW, _In_opt_ PCWSTR, _Reserved_ PCtxtHandle, _In_ DWORD, _Inout_updates_(ulUserNameBufferSize) PWSTR, _In_ ULONG ulUserNameBufferSize, _Inout_updates_(ulPasswordBufferSize) PWSTR, _In_ ULONG ulPasswordBufferSize, _Inout_opt_ PBOOL, _In_ DWORD)
WINADVAPI BOOL WINAPI CredWriteA(_In_ PCREDENTIALA, _In_ DWORD)
WINADVAPI BOOL WINAPI CredUnmarshalCredentialW(_In_ LPCWSTR, _Out_ PCRED_MARSHAL_TYPE, _Out_ PVOID *)
WINADVAPI BOOL WINAPI CredUnmarshalCredentialA(_In_ LPCSTR, _Out_ PCRED_MARSHAL_TYPE, _Out_ PVOID *)
DWORD WINAPI CredUIParseUserNameA(_In_ PCSTR, _Out_writes_(userBufferSize) PSTR, _In_ ULONG userBufferSize, _Out_writes_(domainBufferSize) PSTR, _In_ ULONG domainBufferSize)
DWORD WINAPI CredUIStoreSSOCredW(_In_opt_ PCWSTR, _In_ PCWSTR, _In_ PCWSTR, _In_ BOOL)
struct _CREDUI_INFOW * PCREDUI_INFOW
struct _CREDENTIALA * PCREDENTIALA
struct _CREDENTIAL_ATTRIBUTEW CREDENTIAL_ATTRIBUTEW
@ UsernameTargetCredential
DWORD WINAPI CredUIReadSSOCredW(_In_opt_ PCWSTR, _Outptr_ PWSTR *)
struct _CREDENTIAL_ATTRIBUTEA * PCREDENTIAL_ATTRIBUTEA
WINADVAPI BOOL WINAPI CredReadDomainCredentialsA(_In_ PCREDENTIAL_TARGET_INFORMATIONA, _In_ DWORD, _Out_ DWORD *Count, _Outptr_result_buffer_(*Count) PCREDENTIALA **)
struct _CREDUI_INFOA CREDUI_INFOA
struct _BINARY_BLOB_CREDENTIAL_INFO * PBINARY_BLOB_CREDENTIAL_INFO
struct _USERNAME_TARGET_CREDENTIAL_INFO USERNAME_TARGET_CREDENTIAL_INFO
WINADVAPI BOOL WINAPI CredIsMarshaledCredentialA(_In_ LPCSTR)
struct _BINARY_BLOB_CREDENTIAL_INFO BINARY_BLOB_CREDENTIAL_INFO
struct _SecHandle SecHandle
struct _CREDENTIAL_ATTRIBUTEW * PCREDENTIAL_ATTRIBUTEW
DWORD WINAPI CredUICmdLinePromptForCredentialsW(_In_opt_ PCWSTR, _Reserved_ PCtxtHandle, _In_ DWORD, _Inout_updates_(ulUserBufferSize) PWSTR, _In_ ULONG ulUserBufferSize, _Inout_updates_(ulPasswordBufferSize) PWSTR, _In_ ULONG ulPasswordBufferSize, _Inout_opt_ PBOOL, _In_ DWORD)
WINADVAPI BOOL WINAPI CredRenameW(_In_ LPCWSTR, _In_ LPCWSTR, _In_ DWORD, _Reserved_ DWORD)
WINADVAPI BOOL WINAPI CredRenameA(_In_ LPCSTR, _In_ LPCSTR, _In_ DWORD, _Reserved_ DWORD)
WINADVAPI BOOL WINAPI CredIsMarshaledCredentialW(_In_ LPCWSTR)
#define DECL_WINELIB_TYPE_AW(type)