38{
39 static const WCHAR wszServerName[] = {
'W',
'i',
'n',
'e',
'T',
'e',
's',
't',0};
45
46 credui_info.
cbSize =
sizeof(credui_info);
50
53 "CredUIConfirmCredentials should have returned ERROR_INVALID_PARAMETER or ERROR_NOT_FOUND instead of %d\n",
ret);
54
56 ok(
ret ==
ERROR_NOT_FOUND,
"CredUIConfirmCredentials should have returned ERROR_NOT_FOUND instead of %d\n",
ret);
57
65
71
77
79 {
80 static const WCHAR wszCaption1[] = {
'C',
'R',
'E',
'D',
'U',
'I',
'_',
'F',
'L',
'A',
'G',
'S',
'_',
'E',
'X',
'P',
'E',
'C',
'T',
'_',
'C',
'O',
'N',
'F',
'I',
'R',
'M',
'A',
'T',
'I',
'O',
'N',0};
81 static const WCHAR wszCaption2[] = {
'C',
'R',
'E',
'D',
'U',
'I',
'_',
'F',
'L',
'A',
'G',
'S',
'_',
'I',
'N',
'C',
'O',
'R',
'R',
'E',
'C',
'T',
'_',
'P',
'A',
'S',
'S',
'W',
'O',
'R',
'D',
'|',
82 'C','R','E','D','U','I','_','F','L','A','G','S','_','E','X','P','E','C','T','_','C','O','N','F','I','R','M','A','T','I','O','N',0};
83 static const WCHAR wszCaption3[] = {
'C',
'R',
'E',
'D',
'U',
'I',
'_',
'F',
'L',
'A',
'G',
'S',
'_',
'D',
'O',
'_',
'N',
'O',
'T',
'_',
'P',
'E',
'R',
'S',
'I',
'S',
'T',
'|',
84 'C','R','E','D','U','I','_','F','L','A','G','S','_','E','X','P','E','C','T','_','C','O','N','F','I','R','M','A','T','I','O','N',0};
85 static const WCHAR wszCaption4[] = {
'C',
'R',
'E',
'D',
'U',
'I',
'_',
'F',
'L',
'A',
'G',
'S',
'_',
'P',
'E',
'R',
'S',
'I',
'S',
'T',
'|',
86 'C','R','E','D','U','I','_','F','L','A','G','S','_','E','X','P','E','C','T','_','C','O','N','F','I','R','M','A','T','I','O','N',0};
87
94 {
97 }
98
106 {
109 }
110
118 {
121 }
122
123
131 ok(save,
"save flag should have been untouched\n");
132
140 ok(!save,
"save flag should have been untouched\n");
142 {
145 }
146
147 }
148}
DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW pUIInfo, PCWSTR pszTargetName, PCtxtHandle Reserved, DWORD dwAuthError, PWSTR pszUsername, ULONG ulUsernameMaxChars, PWSTR pszPassword, ULONG ulPasswordMaxChars, PBOOL pfSave, DWORD dwFlags)
DWORD WINAPI CredUIConfirmCredentialsW(PCWSTR pszTargetName, BOOL bConfirm)
#define ERROR_INVALID_PARAMETER
#define ERROR_ACCESS_DENIED
#define CREDUI_FLAGS_EXPECT_CONFIRMATION
#define CREDUI_FLAGS_ALWAYS_SHOW_UI
#define CREDUI_FLAGS_GENERIC_CREDENTIALS
#define CREDUI_FLAGS_INCORRECT_PASSWORD
#define CREDUI_FLAGS_PERSIST
#define CREDUI_FLAGS_DO_NOT_PERSIST
#define CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX
#define ERROR_INVALID_FLAGS