credui: Better match the PSDK types and fix the winapi_check warnings.

Francois Gouget fgouget at free.fr
Wed Feb 7 09:23:38 CST 2007


---
 dlls/credui/credui_main.c |    2 +-
 include/wincred.h         |    8 ++++----
 tools/winapi/win32.api    |   19 +++++++++++++++++++
 3 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/dlls/credui/credui_main.c b/dlls/credui/credui_main.c
index 8c21d13..714ec93 100644
--- a/dlls/credui/credui_main.c
+++ b/dlls/credui/credui_main.c
@@ -140,7 +140,7 @@ DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW pUIInfo,
                                          PWSTR pszUsername,
                                          ULONG ulUsernameMaxChars,
                                          PWSTR pszPassword,
-                                         ULONG ulPasswordMaxChars, BOOL *pfSave,
+                                         ULONG ulPasswordMaxChars, PBOOL pfSave,
                                          DWORD dwFlags)
 {
     INT_PTR ret;
diff --git a/include/wincred.h b/include/wincred.h
index 8f4f1f3..b44a83f 100644
--- a/include/wincred.h
+++ b/include/wincred.h
@@ -87,8 +87,8 @@ typedef struct _CREDUI_INFOW
 #define CREDUI_FLAGS_USERNAME_TARGET_CREDENTIALS    0x00080000
 #define CREDUI_FLAGS_KEEP_USERNAME                  0x00100000
 
-DWORD WINAPI CredUICmdLinePromptForCredentialsW(PCWSTR,PCWSTR,PCtxtHandle,DWORD,PWSTR,ULONG,PWSTR,ULONG,BOOL*,DWORD);
-DWORD WINAPI CredUICmdLinePromptForCredentialsA(PCSTR,PCSTR,PCtxtHandle,DWORD,PSTR,ULONG,PSTR,ULONG,BOOL*,DWORD);
+DWORD WINAPI CredUICmdLinePromptForCredentialsW(PCWSTR,PCtxtHandle,DWORD,PWSTR,ULONG,PWSTR,ULONG,PBOOL,DWORD);
+DWORD WINAPI CredUICmdLinePromptForCredentialsA(PCSTR,PCtxtHandle,DWORD,PSTR,ULONG,PSTR,ULONG,PBOOL,DWORD);
 #define      CredUICmdLinePromptForCredentials WINELIB_NAME_AW(CredUICmdLinePromptForCredentials)
 DWORD WINAPI CredUIConfirmCredentialsW(PCWSTR,BOOL);
 DWORD WINAPI CredUIConfirmCredentialsA(PCSTR,BOOL);
@@ -96,8 +96,8 @@ DWORD WINAPI CredUIConfirmCredentialsA(PCSTR,BOOL);
 DWORD WINAPI CredUIParseUserNameW(PCWSTR,PWSTR,ULONG,PWSTR,ULONG);
 DWORD WINAPI CredUIParseUserNameA(PCSTR,PSTR,ULONG,PSTR,ULONG);
 #define      CredUIParseUserName WINELIB_NAME_AW(CredUIParseUserName)
-DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW,PCWSTR,PCtxtHandle,DWORD,PWSTR,ULONG,PWSTR,ULONG,BOOL*,DWORD);
-DWORD WINAPI CredUIPromptForCredentialsA(PCREDUI_INFOA,PCSTR,PCtxtHandle,DWORD,PSTR,ULONG,PSTR,ULONG,BOOL*,DWORD);
+DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW,PCWSTR,PCtxtHandle,DWORD,PWSTR,ULONG,PWSTR,ULONG,PBOOL,DWORD);
+DWORD WINAPI CredUIPromptForCredentialsA(PCREDUI_INFOA,PCSTR,PCtxtHandle,DWORD,PSTR,ULONG,PSTR,ULONG,PBOOL,DWORD);
 #define      CredUIPromptForCredentials WINELIB_NAME_AW(CredUIPromptForCredentials)
 DWORD WINAPI CredUIStoreSSOCredW(PCWSTR,PCWSTR,PCWSTR,BOOL);
 /* Note: no CredUIStoreSSOCredA in PSDK header */
diff --git a/tools/winapi/win32.api b/tools/winapi/win32.api
index f7d9236..1bca4b2 100644
--- a/tools/winapi/win32.api
+++ b/tools/winapi/win32.api
@@ -634,6 +634,25 @@ ULONG_PTR
 LPDWORD
 PFNPROPSHEETUI
 
+%%credui.dll
+
+%long
+
+BOOL
+DWORD
+ULONG
+
+%ptr
+
+PBOOL
+PCREDUI_INFOW
+PCtxtHandle
+
+%wstr
+
+PCWSTR
+PWSTR
+
 %%crtdll.dll
 
 %long
-- 
1.4.4.3




More information about the wine-patches mailing list