ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
January 2012
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
19 participants
559 discussions
Start a n
N
ew thread
[akhaldi] 55107: [CREDUI_WINETEST] * Sync to Wine 1.3.37.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 15:43:10 2012 New Revision: 55107 URL:
http://svn.reactos.org/svn/reactos?rev=55107&view=rev
Log: [CREDUI_WINETEST] * Sync to Wine 1.3.37. Modified: trunk/rostests/winetests/credui/credui.c Modified: trunk/rostests/winetests/credui/credui.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/credui/credui.c…
============================================================================== --- trunk/rostests/winetests/credui/credui.c [iso-8859-1] (original) +++ trunk/rostests/winetests/credui/credui.c [iso-8859-1] Mon Jan 23 15:43:10 2012 @@ -83,7 +83,10 @@ &save, CREDUI_FLAGS_EXPECT_CONFIRMATION); ok(ret == ERROR_SUCCESS || ret == ERROR_CANCELLED, "CredUIPromptForCredentials failed with error %d\n", ret); if (ret == ERROR_SUCCESS) + { ret = CredUIConfirmCredentialsW(wszServerName, FALSE); + ok(ret == ERROR_SUCCESS, "CredUIConfirmCredentials failed with error %d\n", ret); + } credui_info.pszCaptionText = wszCaption1; ret = CredUIPromptForCredentialsW(&credui_info, wszServerName, NULL, @@ -93,7 +96,10 @@ &save, CREDUI_FLAGS_EXPECT_CONFIRMATION); ok(ret == ERROR_SUCCESS || ret == ERROR_CANCELLED, "CredUIPromptForCredentials failed with error %d\n", ret); if (ret == ERROR_SUCCESS) + { ret = CredUIConfirmCredentialsW(wszServerName, FALSE); + ok(ret == ERROR_SUCCESS, "CredUIConfirmCredentials failed with error %d\n", ret); + } credui_info.pszCaptionText = wszCaption2; ret = CredUIPromptForCredentialsW(&credui_info, wszServerName, NULL, 0, @@ -102,7 +108,11 @@ NULL, CREDUI_FLAGS_INCORRECT_PASSWORD|CREDUI_FLAGS_EXPECT_CONFIRMATION); ok(ret == ERROR_SUCCESS || ret == ERROR_CANCELLED, "CredUIPromptForCredentials failed with error %d\n", ret); if (ret == ERROR_SUCCESS) + { ret = CredUIConfirmCredentialsW(wszServerName, FALSE); + ok(ret == ERROR_SUCCESS, "CredUIConfirmCredentials failed with error %d\n", ret); + } + save = TRUE; credui_info.pszCaptionText = wszCaption3; @@ -122,7 +132,11 @@ ok(ret == ERROR_SUCCESS || ret == ERROR_CANCELLED, "CredUIPromptForCredentials failed with error %d\n", ret); ok(!save, "save flag should have been untouched\n"); if (ret == ERROR_SUCCESS) + { ret = CredUIConfirmCredentialsW(wszServerName, FALSE); + ok(ret == ERROR_SUCCESS, "CredUIConfirmCredentials failed with error %d\n", ret); + } + } }
12 years, 11 months
1
0
0
0
[akhaldi] 55106: [CREDUI] * Sync to Wine 1.3.37.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 15:42:58 2012 New Revision: 55106 URL:
http://svn.reactos.org/svn/reactos?rev=55106&view=rev
Log: [CREDUI] * Sync to Wine 1.3.37. Modified: trunk/reactos/dll/win32/credui/credui_main.c trunk/reactos/media/doc/README.WINE Modified: trunk/reactos/dll/win32/credui/credui_main.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/credui/credui_ma…
============================================================================== --- trunk/reactos/dll/win32/credui/credui_main.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/credui/credui_main.c [iso-8859-1] Mon Jan 23 15:42:58 2012 @@ -65,19 +65,21 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { + struct pending_credentials *entry, *cursor2; TRACE("(0x%p, %d, %p)\n",hinstDLL,fdwReason,lpvReserved); - if (fdwReason == DLL_WINE_PREATTACH) return FALSE; /* prefer native version */ - - if (fdwReason == DLL_PROCESS_ATTACH) - { + switch (fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + + case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); hinstCredUI = hinstDLL; InitCommonControls(); - } - else if (fdwReason == DLL_PROCESS_DETACH) - { - struct pending_credentials *entry, *cursor2; + break; + + case DLL_PROCESS_DETACH: LIST_FOR_EACH_ENTRY_SAFE(entry, cursor2, &pending_credentials_list, struct pending_credentials, entry) { list_remove(&entry->entry); @@ -88,6 +90,8 @@ HeapFree(GetProcessHeap(), 0, entry->pszPassword); HeapFree(GetProcessHeap(), 0, entry); } + DeleteCriticalSection(&csPendingCredentials); + break; } return TRUE; @@ -260,7 +264,7 @@ SendMessageW(params->hwndBalloonTip, TTM_SETTITLEW, TTI_ERROR, (LPARAM)wszTitle); GetWindowRect(GetDlgItem(hwndDlg, IDC_PASSWORD), &rcPassword); - /* centred vertically and in the right side of the password edit control */ + /* centered vertically and in the right side of the password edit control */ x = rcPassword.right - 12; y = (rcPassword.top + rcPassword.bottom) / 2; SendMessageW(params->hwndBalloonTip, TTM_TRACKPOSITION, 0, MAKELONG(x, y)); Modified: trunk/reactos/media/doc/README.WINE URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
============================================================================== --- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original) +++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Mon Jan 23 15:42:58 2012 @@ -51,7 +51,7 @@ reactos/dll/win32/comctl32 # Synced to Wine 1.3.14 reactos/dll/win32/comdlg32 # Autosync reactos/dll/win32/compstui # Autosync -reactos/dll/win32/credui # Autosync +reactos/dll/win32/credui # Synced to Wine-1.3.37 reactos/dll/win32/crypt32 # Autosync reactos/dll/win32/cryptdlg # Autosync reactos/dll/win32/cryptdll # Autosync
12 years, 11 months
1
0
0
0
[akhaldi] 55105: [PSDK] * Update winuser.h annotations.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 15:19:38 2012 New Revision: 55105 URL:
http://svn.reactos.org/svn/reactos?rev=55105&view=rev
Log: [PSDK] * Update winuser.h annotations. Modified: trunk/reactos/include/psdk/winuser.h Modified: trunk/reactos/include/psdk/winuser.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winuser.h?rev…
============================================================================== --- trunk/reactos/include/psdk/winuser.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/winuser.h [iso-8859-1] Mon Jan 23 15:19:38 2012 @@ -2905,9 +2905,9 @@ } COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT,*LPCOMPAREITEMSTRUCT; typedef struct tagCOPYDATASTRUCT { - ULONG_PTR dwData; - DWORD cbData; - PVOID lpData; + ULONG_PTR dwData; + DWORD cbData; + _Field_size_bytes_(cbData) PVOID lpData; } COPYDATASTRUCT,*PCOPYDATASTRUCT; typedef struct tagCURSORSHAPE { @@ -3852,740 +3852,1493 @@ } #define POINTTOPOINTS(p) ((POINTS)MAKELONG((p).x,(p).y)) -HKL WINAPI ActivateKeyboardLayout(HKL,UINT); -BOOL WINAPI AdjustWindowRect(LPRECT,DWORD,BOOL); -BOOL WINAPI AdjustWindowRectEx(LPRECT,DWORD,BOOL,DWORD); +HKL WINAPI ActivateKeyboardLayout(_In_ HKL, _In_ UINT); +BOOL WINAPI AdjustWindowRect(_Inout_ LPRECT, _In_ DWORD, _In_ BOOL); +BOOL WINAPI AdjustWindowRectEx(_Inout_ LPRECT, _In_ DWORD, _In_ BOOL, _In_ DWORD); #if (_WIN32_WINNT >= 0x0500) -BOOL WINAPI AnimateWindow(HWND,DWORD,DWORD); +BOOL WINAPI AnimateWindow(_In_ HWND, _In_ DWORD, _In_ DWORD); #endif /* (_WIN32_WINNT >= 0x0500) */ BOOL WINAPI AnyPopup(void); -BOOL WINAPI AppendMenuA(HMENU,UINT,UINT_PTR,LPCSTR); -BOOL WINAPI AppendMenuW(HMENU,UINT,UINT_PTR,LPCWSTR); -UINT WINAPI ArrangeIconicWindows(HWND); -BOOL WINAPI AttachThreadInput(DWORD,DWORD,BOOL); -HDWP WINAPI BeginDeferWindowPos(int); -HDC WINAPI BeginPaint(HWND,LPPAINTSTRUCT); -BOOL WINAPI BringWindowToTop(HWND); -long WINAPI BroadcastSystemMessage(DWORD,LPDWORD,UINT,WPARAM,LPARAM); +BOOL WINAPI AppendMenuA(_In_ HMENU, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCSTR); +BOOL WINAPI AppendMenuW(_In_ HMENU, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR); +UINT WINAPI ArrangeIconicWindows(_In_ HWND); +BOOL WINAPI AttachThreadInput(_In_ DWORD, _In_ DWORD, _In_ BOOL); +HDWP WINAPI BeginDeferWindowPos(_In_ int); +HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT); +BOOL WINAPI BringWindowToTop(_In_ HWND); +long WINAPI BroadcastSystemMessage(_In_ DWORD, _Inout_opt_ LPDWORD, _In_ UINT, _In_ WPARAM, _In_ LPARAM); + #if (_WIN32_WINNT >= 0x0400) -LONG WINAPI BroadcastSystemMessageA(DWORD,LPDWORD,UINT,WPARAM,LPARAM); -LONG WINAPI BroadcastSystemMessageW(DWORD,LPDWORD,UINT,WPARAM,LPARAM); + +LONG +WINAPI +BroadcastSystemMessageA( + _In_ DWORD flags, + _Inout_opt_ LPDWORD lpInfo, + _In_ UINT Msg, + _In_ WPARAM wParam, + _In_ LPARAM lParam); + +LONG +WINAPI +BroadcastSystemMessageW( + _In_ DWORD flags, + _Inout_opt_ LPDWORD lpInfo, + _In_ UINT Msg, + _In_ WPARAM wParam, + _In_ LPARAM lParam); + #endif /* (_WIN32_WINNT >= 0x0400) */ + #if (_WIN32_WINNT >= 0x0501) -LONG WINAPI BroadcastSystemMessageExA(DWORD,LPDWORD,UINT,WPARAM,LPARAM,PBSMINFO); -LONG WINAPI BroadcastSystemMessageExW(DWORD,LPDWORD,UINT,WPARAM,LPARAM,PBSMINFO); + +LONG +WINAPI +BroadcastSystemMessageExA( + _In_ DWORD flags, + _Inout_opt_ LPDWORD lpInfo, + _In_ UINT Msg, + _In_ WPARAM wParam, + _In_ LPARAM lParam, + _Out_opt_ PBSMINFO pbsmInfo); + +LONG +WINAPI +BroadcastSystemMessageExW( + _In_ DWORD flags, + _Inout_opt_ LPDWORD lpInfo, + _In_ UINT Msg, + _In_ WPARAM wParam, + _In_ LPARAM lParam, + _Out_opt_ PBSMINFO pbsmInfo); + #endif /* (_WIN32_WINNT >= 0x0501) */ + void WINAPI CalcChildScroll(HWND, INT); -BOOL WINAPI CallMsgFilterA(LPMSG,INT); -BOOL WINAPI CallMsgFilterW(LPMSG,INT); -LRESULT WINAPI CallNextHookEx(HHOOK,int,WPARAM,LPARAM); -LRESULT WINAPI CallWindowProcA(WNDPROC,HWND,UINT,WPARAM,LPARAM); -LRESULT WINAPI CallWindowProcW(WNDPROC,HWND,UINT,WPARAM,LPARAM); -WORD WINAPI CascadeWindows(HWND,UINT,LPCRECT,UINT,const HWND*); -BOOL WINAPI ChangeClipboardChain(HWND,HWND); +BOOL WINAPI CallMsgFilterA(_In_ LPMSG, _In_ INT); +BOOL WINAPI CallMsgFilterW(_In_ LPMSG, _In_ INT); +LRESULT WINAPI CallNextHookEx(_In_opt_ HHOOK, _In_ int, _In_ WPARAM, _In_ LPARAM); +LRESULT WINAPI CallWindowProcA(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); + +WORD +WINAPI +CascadeWindows( + _In_opt_ HWND hwndParent, + _In_ UINT wHow, + _In_opt_ CONST RECT * lpRect, + _In_ UINT cKids, + _In_reads_opt_(cKids) const HWND FAR *lpKids); + +BOOL WINAPI ChangeClipboardChain(_In_ HWND, _In_ HWND); #if defined(_WINGDI_) && !defined(NOGDI) -LONG WINAPI ChangeDisplaySettingsA(PDEVMODEA,DWORD); -LONG WINAPI ChangeDisplaySettingsW(PDEVMODEW,DWORD); -LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID); -LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID); -#endif -BOOL WINAPI ChangeMenuA(HMENU,UINT,LPCSTR,UINT,UINT); -BOOL WINAPI ChangeMenuW(HMENU,UINT,LPCWSTR,UINT,UINT); -LPSTR WINAPI CharLowerA(LPSTR); -LPWSTR WINAPI CharLowerW(LPWSTR); -DWORD WINAPI CharLowerBuffA(LPSTR,DWORD); -DWORD WINAPI CharLowerBuffW(LPWSTR,DWORD); -LPSTR WINAPI CharNextA(LPCSTR); -LPWSTR WINAPI CharNextW(LPCWSTR); -LPSTR WINAPI CharNextExA(WORD,LPCSTR,DWORD); -LPWSTR WINAPI CharNextExW(WORD,LPCWSTR,DWORD); -LPSTR WINAPI CharPrevA(LPCSTR,LPCSTR); -LPWSTR WINAPI CharPrevW(LPCWSTR,LPCWSTR); -LPSTR WINAPI CharPrevExA(WORD,LPCSTR,LPCSTR,DWORD); -LPWSTR WINAPI CharPrevExW(WORD,LPCWSTR,LPCWSTR,DWORD); -BOOL WINAPI CharToOemA(LPCSTR,LPSTR); -BOOL WINAPI CharToOemW(LPCWSTR,LPSTR); -BOOL WINAPI CharToOemBuffA(LPCSTR,LPSTR,DWORD); -BOOL WINAPI CharToOemBuffW(LPCWSTR,LPSTR,DWORD); -LPSTR WINAPI CharUpperA(LPSTR); -LPWSTR WINAPI CharUpperW(LPWSTR); -DWORD WINAPI CharUpperBuffA(LPSTR,DWORD); -DWORD WINAPI CharUpperBuffW(LPWSTR,DWORD); -BOOL WINAPI CheckDlgButton(HWND,int,UINT); -DWORD WINAPI CheckMenuItem(HMENU,UINT,UINT); -BOOL WINAPI CheckMenuRadioItem(HMENU,UINT,UINT,UINT,UINT); -BOOL WINAPI CheckRadioButton(HWND,int,int,int); -HWND WINAPI ChildWindowFromPoint(HWND,POINT); -HWND WINAPI ChildWindowFromPointEx(HWND,POINT,UINT); -BOOL WINAPI ClientToScreen(HWND,LPPOINT); -BOOL WINAPI ClipCursor(LPCRECT); +LONG WINAPI ChangeDisplaySettingsA(_In_opt_ PDEVMODEA, _In_ DWORD); +LONG WINAPI ChangeDisplaySettingsW(_In_opt_ PDEVMODEW, _In_ DWORD); +LONG WINAPI ChangeDisplaySettingsExA(_In_opt_ LPCSTR, _In_opt_ LPDEVMODEA, _Reserved_ HWND, _In_ DWORD, _In_opt_ LPVOID); +LONG WINAPI ChangeDisplaySettingsExW(_In_opt_ LPCWSTR, _In_opt_ LPDEVMODEW, _Reserved_ HWND, _In_ DWORD, _In_opt_ LPVOID); +#endif +BOOL WINAPI ChangeMenuA(_In_ HMENU, _In_ UINT, _In_opt_ LPCSTR, _In_ UINT, _In_ UINT); +BOOL WINAPI ChangeMenuW(_In_ HMENU, _In_ UINT, _In_opt_ LPCWSTR, _In_ UINT, _In_ UINT); +LPSTR WINAPI CharLowerA(_Inout_ LPSTR); +LPWSTR WINAPI CharLowerW(_Inout_ LPWSTR); + +DWORD +WINAPI +CharLowerBuffA( + _Inout_updates_(cchLength) LPSTR lpsz, + _In_ DWORD cchLength); + +DWORD +WINAPI +CharLowerBuffW( + _Inout_updates_(cchLength) LPWSTR lpsz, + _In_ DWORD cchLength); + +LPSTR WINAPI CharNextA(_In_ LPCSTR); +LPWSTR WINAPI CharNextW(_In_ LPCWSTR); + +LPSTR WINAPI CharNextExA(_In_ WORD, _In_ LPCSTR, _In_ DWORD); +LPWSTR WINAPI CharNextExW(_In_ WORD, _In_ LPCWSTR, _In_ DWORD); +LPSTR WINAPI CharPrevA(_In_ LPCSTR, _In_ LPCSTR); +LPWSTR WINAPI CharPrevW(_In_ LPCWSTR, _In_ LPCWSTR); +LPSTR WINAPI CharPrevExA(_In_ WORD, _In_ LPCSTR, _In_ LPCSTR, _In_ DWORD); +LPWSTR WINAPI CharPrevExW(_In_ WORD, _In_ LPCWSTR, _In_ LPCWSTR, _In_ DWORD); + +BOOL +WINAPI +CharToOemA( + _In_ LPCSTR pSrc, + _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPSTR pDst); + +BOOL +WINAPI +CharToOemW( + _In_ LPCWSTR pSrc, + _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPSTR pDst); + +BOOL +WINAPI +CharToOemBuffA( + _In_ LPCSTR lpszSrc, + _Out_writes_(cchDstLength) LPSTR lpszDst, + _In_ DWORD cchDstLength); + +BOOL +WINAPI +CharToOemBuffW( + _In_ LPCWSTR lpszSrc, + _Out_writes_(cchDstLength) LPSTR lpszDst, + _In_ DWORD cchDstLength); + +LPSTR WINAPI CharUpperA(_Inout_ LPSTR); +LPWSTR WINAPI CharUpperW(_Inout_ LPWSTR); + +DWORD +WINAPI +CharUpperBuffA( + _Inout_updates_(cchLength) LPSTR lpsz, + _In_ DWORD cchLength); + +DWORD +WINAPI +CharUpperBuffW( + _Inout_updates_(cchLength) LPWSTR lpsz, + _In_ DWORD cchLength); + +BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT); +DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT); +BOOL WINAPI CheckMenuRadioItem(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT, _In_ UINT); +BOOL WINAPI CheckRadioButton(_In_ HWND, _In_ int, _In_ int, _In_ int); +HWND WINAPI ChildWindowFromPoint(_In_ HWND, _In_ POINT); +HWND WINAPI ChildWindowFromPointEx(_In_ HWND, _In_ POINT, _In_ UINT); +BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT); +BOOL WINAPI ClipCursor(_In_opt_ LPCRECT); BOOL WINAPI CloseClipboard(void); -BOOL WINAPI CloseDesktop(HDESK); -BOOL WINAPI CloseWindow(HWND); -BOOL WINAPI CloseWindowStation(HWINSTA); -int WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,int); -int WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,int); +BOOL WINAPI CloseDesktop(_In_ HDESK); +BOOL WINAPI CloseWindow(_In_ HWND); +BOOL WINAPI CloseWindowStation(_In_ HWINSTA); + +int +WINAPI +CopyAcceleratorTableA( + _In_ HACCEL hAccelSrc, + _Out_writes_to_opt_(cAccelEntries, return) LPACCEL lpAccelDst, + _In_ int cAccelEntries); + +int +WINAPI +CopyAcceleratorTableW( + _In_ HACCEL hAccelSrc, + _Out_writes_to_opt_(cAccelEntries, return) LPACCEL lpAccelDst, + _In_ int cAccelEntries); + #define CopyCursor(c) ((HCURSOR)CopyIcon((HICON)(c))) -HICON WINAPI CopyIcon(HICON); -HANDLE WINAPI CopyImage(HANDLE,UINT,int,int,UINT); -BOOL WINAPI CopyRect(LPRECT,LPCRECT); +HICON WINAPI CopyIcon(_In_ HICON); +HANDLE WINAPI CopyImage(_In_ HANDLE, _In_ UINT, _In_ int, _In_ int, _In_ UINT); +BOOL WINAPI CopyRect(_Out_ LPRECT, _In_ LPCRECT); int WINAPI CountClipboardFormats(void); -HACCEL WINAPI CreateAcceleratorTableA(LPACCEL,int); -HACCEL WINAPI CreateAcceleratorTableW(LPACCEL,int); -BOOL WINAPI CreateCaret(HWND,HBITMAP,int,int); -HCURSOR WINAPI CreateCursor(HINSTANCE,int,int,int,int,CONST VOID*,CONST VOID*); + +HACCEL +WINAPI +CreateAcceleratorTableA( + _In_reads_(cAccel) LPACCEL paccel, + _In_ int cAccel); + +HACCEL +WINAPI +CreateAcceleratorTableW( + _In_reads_(cAccel) LPACCEL paccel, + _In_ int cAccel); + +BOOL WINAPI CreateCaret(_In_ HWND, _In_opt_ HBITMAP, _In_ int, _In_ int); +HCURSOR WINAPI CreateCursor(_In_opt_ HINSTANCE, _In_ int, _In_ int, _In_ int, _In_ int, _In_ CONST VOID*, _In_ CONST VOID*); + #if defined(_WINGDI_) && !defined(NOGDI) -HDESK WINAPI CreateDesktopA(LPCSTR,LPCSTR,LPDEVMODEA,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES); -HDESK WINAPI CreateDesktopW(LPCWSTR,LPCWSTR,LPDEVMODEW,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES); -#endif + +HDESK +WINAPI +CreateDesktopA( + _In_ LPCSTR lpszDesktop, + _Reserved_ LPCSTR lpszDevice, + _Reserved_ DEVMODEA* pDevmode, + _In_ DWORD dwFlags, + _In_ ACCESS_MASK dwDesiredAccess, + _In_opt_ LPSECURITY_ATTRIBUTES lpsa); + +HDESK +WINAPI +CreateDesktopW( + _In_ LPCWSTR lpszDesktop, + _Reserved_ LPCWSTR lpszDevice, + _Reserved_ DEVMODEW* pDevmode, + _In_ DWORD dwFlags, + _In_ ACCESS_MASK dwDesiredAccess, + _In_opt_ LPSECURITY_ATTRIBUTES lpsa); + +#endif + #define CreateDialogA(h,n,w,f) CreateDialogParamA(h,n,w,f,0) #define CreateDialogW(h,n,w,f) CreateDialogParamW(h,n,w,f,0) #define CreateDialogIndirectA(h,t,w,f) CreateDialogIndirectParamA(h,t,w,f,0) #define CreateDialogIndirectW(h,t,w,f) CreateDialogIndirectParamW(h,t,w,f,0) -HWND WINAPI CreateDialogIndirectParamA(HINSTANCE,LPCDLGTEMPLATE,HWND,DLGPROC,LPARAM); -HWND WINAPI CreateDialogIndirectParamW(HINSTANCE,LPCDLGTEMPLATE,HWND,DLGPROC,LPARAM); -HWND WINAPI CreateDialogParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM); -HWND WINAPI CreateDialogParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM); -HICON WINAPI CreateIcon(HINSTANCE,int,int,BYTE,BYTE,const BYTE*,const BYTE*); -HICON WINAPI CreateIconFromResource(PBYTE,DWORD,BOOL,DWORD); -HICON WINAPI CreateIconFromResourceEx(PBYTE,DWORD,BOOL,DWORD,int,int,UINT); -HICON WINAPI CreateIconIndirect(PICONINFO); -HWND WINAPI CreateMDIWindowA(LPCSTR,LPCSTR,DWORD,int,int,int,int,HWND,HINSTANCE,LPARAM); -HWND WINAPI CreateMDIWindowW(LPCWSTR,LPCWSTR,DWORD,int,int,int,int,HWND,HINSTANCE,LPARAM); +HWND WINAPI CreateDialogIndirectParamA(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); +HWND WINAPI CreateDialogIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); +HWND WINAPI CreateDialogParamA(_In_opt_ HINSTANCE, _In_ LPCSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); +HWND WINAPI CreateDialogParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); +HICON WINAPI CreateIcon(_In_opt_ HINSTANCE, _In_ int, _In_ int, _In_ BYTE, _In_ BYTE, _In_ const BYTE*, _In_ const BYTE*); + +HICON +WINAPI +CreateIconFromResource( + _In_reads_bytes_(dwResSize) PBYTE presbits, + _In_ DWORD dwResSize, + _In_ BOOL fIcon, + _In_ DWORD dwVer); + +HICON +WINAPI +CreateIconFromResourceEx( + _In_reads_bytes_(dwResSize) PBYTE presbits, + _In_ DWORD dwResSize, + _In_ BOOL fIcon, + _In_ DWORD dwVer, + _In_ int cxDesired, + _In_ int cyDesired, + _In_ UINT Flags); + +HICON WINAPI CreateIconIndirect(_In_ PICONINFO); +HWND WINAPI CreateMDIWindowA(_In_ LPCSTR, _In_ LPCSTR, _In_ DWORD, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HWND, _In_opt_ HINSTANCE, _In_ LPARAM); +HWND WINAPI CreateMDIWindowW(_In_ LPCWSTR, _In_ LPCWSTR, _In_ DWORD, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HWND, _In_opt_ HINSTANCE, _In_ LPARAM); HMENU WINAPI CreateMenu(void); HMENU WINAPI CreatePopupMenu(void); + #define CreateWindowA(a,b,c,d,e,f,g,h,i,j,k) CreateWindowExA(0,a,b,c,d,e,f,g,h,i,j,k) #define CreateWindowW(a,b,c,d,e,f,g,h,i,j,k) CreateWindowExW(0,a,b,c,d,e,f,g,h,i,j,k) -HWND WINAPI CreateWindowExA(DWORD,LPCSTR,LPCSTR,DWORD,int,int,int,int,HWND,HMENU,HINSTANCE,LPVOID); -HWND WINAPI CreateWindowExW(DWORD,LPCWSTR,LPCWSTR,DWORD,int,int,int,int,HWND,HMENU,HINSTANCE,LPVOID); + +HWND +WINAPI +CreateWindowExA( + _In_ DWORD dwExStyle, + _In_opt_ LPCSTR lpClassName, + _In_opt_ LPCSTR lpWindowName, + _In_ DWORD dwStyle, + _In_ int X, + _In_ int Y, + _In_ int nWidth, + _In_ int nHeight, + _In_opt_ HWND hWndParent, + _In_opt_ HMENU hMenu, + _In_opt_ HINSTANCE hInstance, + _In_opt_ LPVOID lpParam); + +HWND +WINAPI +CreateWindowExW( + _In_ DWORD dwExStyle, + _In_opt_ LPCWSTR lpClassName, + _In_opt_ LPCWSTR lpWindowName, + _In_ DWORD dwStyle, + _In_ int X, + _In_ int Y, + _In_ int nWidth, + _In_ int nHeight, + _In_opt_ HWND hWndParent, + _In_opt_ HMENU hMenu, + _In_opt_ HINSTANCE hInstance, + _In_opt_ LPVOID lpParam); + #ifndef NOWINDOWSTATION -HWINSTA WINAPI CreateWindowStationA(LPCSTR,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES); -HWINSTA WINAPI CreateWindowStationW(LPCWSTR,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES); -#endif -LRESULT WINAPI DefDlgProcA(HWND,UINT,WPARAM,LPARAM); -LRESULT WINAPI DefDlgProcW(HWND,UINT,WPARAM,LPARAM); -HDWP WINAPI DeferWindowPos(HDWP,HWND,HWND,int,int,int,int,UINT); -LRESULT WINAPI DefFrameProcA(HWND,HWND,UINT,WPARAM,LPARAM); -LRESULT WINAPI DefFrameProcW(HWND,HWND,UINT,WPARAM,LPARAM); + +HWINSTA +WINAPI +CreateWindowStationA( + _In_opt_ LPCSTR lpwinsta, + _In_ DWORD dwFlags, + _In_ ACCESS_MASK dwDesiredAccess, + _In_opt_ LPSECURITY_ATTRIBUTES lpsa); + +HWINSTA +WINAPI +CreateWindowStationW( + _In_opt_ LPCWSTR lpwinsta, + _In_ DWORD dwFlags, + _In_ ACCESS_MASK dwDesiredAccess, + _In_opt_ LPSECURITY_ATTRIBUTES lpsa); + +#endif + +LRESULT WINAPI DefDlgProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +LRESULT WINAPI DefDlgProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +HDWP WINAPI DeferWindowPos(_In_ HDWP, _In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT); +LRESULT WINAPI DefFrameProcA(_In_ HWND, _In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +LRESULT WINAPI DefFrameProcW(_In_ HWND, _In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); #define DefHookProc(c,p,lp,h) CallNextHookEx((HHOOK)*h,c,p,lp) -LRESULT WINAPI DefMDIChildProcA(HWND,UINT,WPARAM,LPARAM); -LRESULT WINAPI DefMDIChildProcW(HWND,UINT,WPARAM,LPARAM); +LRESULT WINAPI DefMDIChildProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +LRESULT WINAPI DefMDIChildProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); + #if (_WIN32_WINNT >= 0x0501) -LRESULT WINAPI DefRawInputProc(PRAWINPUT*,INT,UINT); -#endif -LRESULT WINAPI DefWindowProcA(HWND,UINT,WPARAM,LPARAM); -LRESULT WINAPI DefWindowProcW(HWND,UINT,WPARAM,LPARAM); -BOOL WINAPI DeleteMenu(HMENU,UINT,UINT); -BOOL WINAPI DeregisterShellHookWindow(HWND); -BOOL WINAPI DestroyAcceleratorTable(HACCEL); +LRESULT +WINAPI +DefRawInputProc( + _In_reads_(nInput) PRAWINPUT *paRawInput, + _In_ INT nInput, + _In_ UINT cbSizeHeader); +#endif + +LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +BOOL WINAPI DeleteMenu(_In_ HMENU, _In_ UINT, _In_ UINT); +BOOL WINAPI DeregisterShellHookWindow(_In_ HWND); +BOOL WINAPI DestroyAcceleratorTable(_In_ HACCEL); BOOL WINAPI DestroyCaret(void); -BOOL WINAPI DestroyCursor(HCURSOR); -BOOL WINAPI DestroyIcon(HICON); -BOOL WINAPI DestroyMenu(HMENU); -BOOL WINAPI DestroyWindow(HWND); +BOOL WINAPI DestroyCursor(_In_ HCURSOR); +BOOL WINAPI DestroyIcon(_In_ HICON); +BOOL WINAPI DestroyMenu(_In_ HMENU); +BOOL WINAPI DestroyWindow(_In_ HWND); #define DialogBoxA(i,t,p,f) DialogBoxParamA(i,t,p,f,0) #define DialogBoxW(i,t,p,f) DialogBoxParamW(i,t,p,f,0) #define DialogBoxIndirectA(i,t,p,f) DialogBoxIndirectParamA(i,t,p,f,0) #define DialogBoxIndirectW(i,t,p,f) DialogBoxIndirectParamW(i,t,p,f,0) -INT_PTR WINAPI DialogBoxIndirectParamA(HINSTANCE,LPCDLGTEMPLATE,HWND,DLGPROC,LPARAM); -INT_PTR WINAPI DialogBoxIndirectParamW(HINSTANCE,LPCDLGTEMPLATE,HWND,DLGPROC,LPARAM); -INT_PTR WINAPI DialogBoxParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM); -INT_PTR WINAPI DialogBoxParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM); -LRESULT WINAPI DispatchMessageA(const MSG*); -LRESULT WINAPI DispatchMessageW(const MSG*); -int WINAPI DlgDirListA(HWND,LPSTR,int,int,UINT); -int WINAPI DlgDirListW(HWND,LPWSTR,int,int,UINT); -int WINAPI DlgDirListComboBoxA(HWND,LPSTR,int,int,UINT); -int WINAPI DlgDirListComboBoxW(HWND,LPWSTR,int,int,UINT); -BOOL WINAPI DlgDirSelectComboBoxExA(HWND,LPSTR,int,int); -BOOL WINAPI DlgDirSelectComboBoxExW(HWND,LPWSTR,int,int); -BOOL WINAPI DlgDirSelectExA(HWND,LPSTR,int,int); -BOOL WINAPI DlgDirSelectExW(HWND,LPWSTR,int,int); -BOOL WINAPI DragDetect(HWND,POINT); -DWORD WINAPI DragObject(HWND,HWND,UINT,ULONG_PTR,HCURSOR); -BOOL WINAPI DrawAnimatedRects(HWND,int,LPCRECT,LPCRECT); -BOOL WINAPI DrawCaption(HWND,HDC,LPCRECT,UINT); +INT_PTR WINAPI DialogBoxIndirectParamA(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); +INT_PTR WINAPI DialogBoxIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); +INT_PTR WINAPI DialogBoxParamA(_In_opt_ HINSTANCE, _In_ LPCSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); +INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM); +LRESULT WINAPI DispatchMessageA(_In_ const MSG*); +LRESULT WINAPI DispatchMessageW(_In_ const MSG*); +int WINAPI DlgDirListA(_In_ HWND, _Inout_ LPSTR, _In_ int, _In_ int, _In_ UINT); +int WINAPI DlgDirListW(_In_ HWND, _Inout_ LPWSTR, _In_ int, _In_ int, _In_ UINT); +int WINAPI DlgDirListComboBoxA(_In_ HWND, _Inout_ LPSTR, _In_ int, _In_ int, _In_ UINT); +int WINAPI DlgDirListComboBoxW(_In_ HWND, _Inout_ LPWSTR, _In_ int, _In_ int, _In_ UINT); + +BOOL +WINAPI +DlgDirSelectComboBoxExA( + _In_ HWND hwndDlg, + _Out_writes_(cchOut) LPSTR lpString, + _In_ int cchOut, + _In_ int idComboBox); + +BOOL +WINAPI +DlgDirSelectComboBoxExW( + _In_ HWND hwndDlg, + _Out_writes_(cchOut) LPWSTR lpString, + _In_ int cchOut, + _In_ int idComboBox); + +BOOL +WINAPI +DlgDirSelectExA( + _In_ HWND hwndDlg, + _Out_writes_(chCount) LPSTR lpString, + _In_ int chCount, + _In_ int idListBox); + +BOOL +WINAPI +DlgDirSelectExW( + _In_ HWND hwndDlg, + _Out_writes_(chCount) LPWSTR lpString, + _In_ int chCount, + _In_ int idListBox); + +BOOL WINAPI DragDetect(_In_ HWND, _In_ POINT); +DWORD WINAPI DragObject(_In_ HWND, _In_ HWND, _In_ UINT, _In_ ULONG_PTR, _In_opt_ HCURSOR); +BOOL WINAPI DrawAnimatedRects(_In_opt_ HWND, _In_ int, _In_ LPCRECT, _In_ LPCRECT); +BOOL WINAPI DrawCaption(_In_ HWND, _In_ HDC, _In_ LPCRECT, _In_ UINT); BOOL WINAPI DrawCaptionTempA(HWND,HDC,const RECT*,HFONT,HICON,LPCSTR,UINT); BOOL WINAPI DrawCaptionTempW(HWND,HDC,const RECT*,HFONT,HICON,LPCWSTR,UINT); -BOOL WINAPI DrawEdge(HDC,LPRECT,UINT,UINT); -BOOL WINAPI DrawFocusRect(HDC,LPCRECT); -BOOL WINAPI DrawFrameControl(HDC,LPRECT,UINT,UINT); -BOOL WINAPI DrawIcon(HDC,int,int,HICON); -BOOL WINAPI DrawIconEx(HDC,int,int,HICON,int,int,UINT,HBRUSH,UINT); -BOOL WINAPI DrawMenuBar(HWND); +BOOL WINAPI DrawEdge(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT); +BOOL WINAPI DrawFocusRect(_In_ HDC, _In_ LPCRECT); +BOOL WINAPI DrawFrameControl(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT); +BOOL WINAPI DrawIcon(_In_ HDC, _In_ int, _In_ int, _In_ HICON); +BOOL WINAPI DrawIconEx(_In_ HDC, _In_ int, _In_ int, _In_ HICON, _In_ int, _In_ int, _In_ UINT, _In_opt_ HBRUSH, _In_ UINT); +BOOL WINAPI DrawMenuBar(_In_ HWND); DWORD WINAPI DrawMenuBarTemp(HWND,HDC,LPRECT,HMENU,HFONT); -BOOL WINAPI DrawStateA(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,int,int,int,int,UINT); -BOOL WINAPI DrawStateW(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,int,int,int,int,UINT); -int WINAPI DrawTextA(HDC,LPCSTR,int,LPRECT,UINT); -int WINAPI DrawTextW(HDC,LPCWSTR,int,LPRECT,UINT); -int WINAPI DrawTextExA(HDC,LPSTR,int,LPRECT,UINT,LPDRAWTEXTPARAMS); -int WINAPI DrawTextExW(HDC,LPWSTR,int,LPRECT,UINT,LPDRAWTEXTPARAMS); +BOOL WINAPI DrawStateA(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ DRAWSTATEPROC, _In_ LPARAM, _In_ WPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT); +BOOL WINAPI DrawStateW(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ DRAWSTATEPROC, _In_ LPARAM, _In_ WPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT); + +int +WINAPI +DrawTextA( + _In_ HDC hdc, + _Inout_updates_opt_(cchText) LPCSTR lpchText, + _In_ int cchText, + _Inout_ LPRECT lprc, + _In_ UINT format); + +int +WINAPI +DrawTextW( + _In_ HDC hdc, + _Inout_updates_opt_(cchText) LPCWSTR lpchText, + _In_ int cchText, + _Inout_ LPRECT lprc, + _In_ UINT format); + +int +WINAPI +DrawTextExA( + _In_ HDC hdc, + _Inout_updates_opt_(cchText) LPSTR lpchText, + _In_ int cchText, + _Inout_ LPRECT lprc, + _In_ UINT format, + _In_opt_ LPDRAWTEXTPARAMS lpdtp); + +int +WINAPI +DrawTextExW( + _In_ HDC hdc, + _Inout_updates_opt_(cchText) LPWSTR lpchText, + _In_ int cchText, + _Inout_ LPRECT lprc, + _In_ UINT format, + _In_opt_ LPDRAWTEXTPARAMS lpdtp); + BOOL WINAPI EmptyClipboard(void); -BOOL WINAPI EnableMenuItem(HMENU,UINT,UINT); -BOOL WINAPI EnableScrollBar(HWND,UINT,UINT); -BOOL WINAPI EnableWindow(HWND,BOOL); -BOOL WINAPI EndDeferWindowPos(HDWP); -BOOL WINAPI EndDialog(HWND,INT_PTR); +BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT); +BOOL WINAPI EnableScrollBar(_In_ HWND, _In_ UINT, _In_ UINT); +BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL); +BOOL WINAPI EndDeferWindowPos(_In_ HDWP); +BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR); BOOL WINAPI EndMenu(void); -BOOL WINAPI EndPaint(HWND,const PAINTSTRUCT*); +BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT*); #if (_WIN32_WINNT >= 0x0500) -BOOL WINAPI EndTask(HWND,BOOL,BOOL); -#endif -BOOL WINAPI EnumChildWindows(HWND,WNDENUMPROC,LPARAM); -UINT WINAPI EnumClipboardFormats(UINT); -BOOL WINAPI EnumDesktopsA(HWINSTA,DESKTOPENUMPROCA,LPARAM); -BOOL WINAPI EnumDesktopsW(HWINSTA,DESKTOPENUMPROCW,LPARAM); -BOOL WINAPI EnumDesktopWindows(HDESK,WNDENUMPROC,LPARAM); -BOOL WINAPI EnumDisplayMonitors(HDC,LPCRECT,MONITORENUMPROC,LPARAM); +BOOL WINAPI EndTask(_In_ HWND, _In_ BOOL, _In_ BOOL); +#endif +BOOL WINAPI EnumChildWindows(_In_opt_ HWND, _In_ WNDENUMPROC, _In_ LPARAM); +UINT WINAPI EnumClipboardFormats(_In_ UINT); +BOOL WINAPI EnumDesktopsA(_In_opt_ HWINSTA, _In_ DESKTOPENUMPROCA, _In_ LPARAM); +BOOL WINAPI EnumDesktopsW(_In_opt_ HWINSTA, _In_ DESKTOPENUMPROCW, _In_ LPARAM); +BOOL WINAPI EnumDesktopWindows(_In_opt_ HDESK, _In_ WNDENUMPROC, _In_ LPARAM); +BOOL WINAPI EnumDisplayMonitors(_In_opt_ HDC, _In_opt_ LPCRECT, _In_ MONITORENUMPROC, _In_ LPARAM); #if defined(_WINGDI_) && !defined(NOGDI) -BOOL WINAPI EnumDisplaySettingsA(LPCSTR,DWORD,PDEVMODEA); -BOOL WINAPI EnumDisplaySettingsW(LPCWSTR,DWORD,PDEVMODEW); +BOOL WINAPI EnumDisplaySettingsA(_In_opt_ LPCSTR, _In_ DWORD, _Inout_ PDEVMODEA); +BOOL WINAPI EnumDisplaySettingsW(_In_opt_ LPCWSTR, _In_ DWORD, _Inout_ PDEVMODEW); #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410) -BOOL WINAPI EnumDisplaySettingsExA(LPCSTR,DWORD,LPDEVMODEA,DWORD); -BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR,DWORD,LPDEVMODEW,DWORD); -#endif -BOOL WINAPI EnumDisplayDevicesA(LPCSTR,DWORD,PDISPLAY_DEVICEA,DWORD); -BOOL WINAPI EnumDisplayDevicesW(LPCWSTR,DWORD,PDISPLAY_DEVICEW,DWORD); -#endif -int WINAPI EnumPropsA(HWND,PROPENUMPROCA); -int WINAPI EnumPropsW(HWND,PROPENUMPROCW); -int WINAPI EnumPropsExA(HWND,PROPENUMPROCEXA,LPARAM); -int WINAPI EnumPropsExW(HWND,PROPENUMPROCEXW,LPARAM); +BOOL WINAPI EnumDisplaySettingsExA(_In_opt_ LPCSTR, _In_ DWORD, _Inout_ LPDEVMODEA, _In_ DWORD); +BOOL WINAPI EnumDisplaySettingsExW(_In_opt_ LPCWSTR, _In_ DWORD, _Inout_ LPDEVMODEW, _In_ DWORD); +#endif +BOOL WINAPI EnumDisplayDevicesA(_In_opt_ LPCSTR, _In_ DWORD, _Inout_ PDISPLAY_DEVICEA, _In_ DWORD); +BOOL WINAPI EnumDisplayDevicesW(_In_opt_ LPCWSTR, _In_ DWORD, _Inout_ PDISPLAY_DEVICEW, _In_ DWORD); +#endif +int WINAPI EnumPropsA(_In_ HWND, _In_ PROPENUMPROCA); +int WINAPI EnumPropsW(_In_ HWND, _In_ PROPENUMPROCW); +int WINAPI EnumPropsExA(_In_ HWND, _In_ PROPENUMPROCEXA, _In_ LPARAM); +int WINAPI EnumPropsExW(_In_ HWND, _In_ PROPENUMPROCEXW, _In_ LPARAM); #define EnumTaskWindows(h,f,p) EnumThreadWindows((DWORD)h,f,p) -BOOL WINAPI EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM); -BOOL WINAPI EnumWindows(WNDENUMPROC,LPARAM); -BOOL WINAPI EnumWindowStationsA(WINSTAENUMPROCA,LPARAM); -BOOL WINAPI EnumWindowStationsW(WINSTAENUMPROCW,LPARAM); -BOOL WINAPI EqualRect(LPCRECT,LPCRECT); +BOOL WINAPI EnumThreadWindows(_In_ DWORD, _In_ WNDENUMPROC, _In_ LPARAM); +BOOL WINAPI EnumWindows(_In_ WNDENUMPROC, _In_ LPARAM); +BOOL WINAPI EnumWindowStationsA(_In_ WINSTAENUMPROCA, _In_ LPARAM); +BOOL WINAPI EnumWindowStationsW(_In_ WINSTAENUMPROCW, _In_ LPARAM); +BOOL WINAPI EqualRect(_In_ LPCRECT, _In_ LPCRECT); #define ExitWindows(r,c) ExitWindowsEx(EWX_LOGOFF,0) -BOOL WINAPI ExitWindowsEx(UINT,DWORD); -HWND WINAPI FindWindowA(LPCSTR,LPCSTR); -HWND WINAPI FindWindowExA(HWND,HWND,LPCSTR,LPCSTR); -HWND WINAPI FindWindowExW(HWND,HWND,LPCWSTR,LPCWSTR); -HWND WINAPI FindWindowW(LPCWSTR,LPCWSTR); -BOOL WINAPI FlashWindow(HWND,BOOL); +BOOL WINAPI ExitWindowsEx(_In_ UINT, _In_ DWORD); +HWND WINAPI FindWindowA(_In_opt_ LPCSTR, _In_opt_ LPCSTR); +HWND WINAPI FindWindowW(_In_opt_ LPCWSTR, _In_opt_ LPCWSTR); +HWND WINAPI FindWindowExA(_In_opt_ HWND, _In_opt_ HWND, _In_opt_ LPCSTR, _In_opt_ LPCSTR); +HWND WINAPI FindWindowExW(_In_opt_ HWND, _In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR); +BOOL WINAPI FlashWindow(_In_ HWND, _In_ BOOL); #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410) -BOOL WINAPI FlashWindowEx(PFLASHWINFO); -#endif -int WINAPI FrameRect(HDC,LPCRECT,HBRUSH); +BOOL WINAPI FlashWindowEx(_In_ PFLASHWINFO); +#endif +int WINAPI FrameRect(_In_ HDC, _In_ LPCRECT, _In_ HBRUSH); BOOL WINAPI FrameRgn(HDC,HRGN,HBRUSH,int,int); HWND WINAPI GetActiveWindow(void); -HWND WINAPI GetAncestor(HWND,UINT); -SHORT WINAPI GetAsyncKeyState(int); +HWND WINAPI GetAncestor(_In_ HWND, _In_ UINT); +SHORT WINAPI GetAsyncKeyState(_In_ int); HWND WINAPI GetCapture(void); UINT WINAPI GetCaretBlinkTime(void); -BOOL WINAPI GetCaretPos(LPPOINT); -BOOL WINAPI GetClassInfoA(HINSTANCE,LPCSTR,LPWNDCLASSA); -BOOL WINAPI GetClassInfoExA(HINSTANCE,LPCSTR,LPWNDCLASSEXA); -BOOL WINAPI GetClassInfoW(HINSTANCE,LPCWSTR,LPWNDCLASSW); -BOOL WINAPI GetClassInfoExW(HINSTANCE,LPCWSTR,LPWNDCLASSEXW); -DWORD WINAPI GetClassLongA(HWND,int); -DWORD WINAPI GetClassLongW(HWND,int); +BOOL WINAPI GetCaretPos(_Out_ LPPOINT); +BOOL WINAPI GetClassInfoA(_In_opt_ HINSTANCE, _In_ LPCSTR, _Out_ LPWNDCLASSA); +BOOL WINAPI GetClassInfoExA(_In_opt_ HINSTANCE, _In_ LPCSTR, _Out_ LPWNDCLASSEXA); +BOOL WINAPI GetClassInfoW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSW); +BOOL WINAPI GetClassInfoExW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSEXW); +DWORD WINAPI GetClassLongA(_In_ HWND, _In_ int); +DWORD WINAPI GetClassLongW(_In_ HWND, _In_ int); #ifdef _WIN64 -ULONG_PTR WINAPI GetClassLongPtrA(HWND,int); -ULONG_PTR WINAPI GetClassLongPtrW(HWND,int); +ULONG_PTR WINAPI GetClassLongPtrA(_In_ HWND, _In_ int); +ULONG_PTR WINAPI GetClassLongPtrW(_In_ HWND, _In_ int); #else #define GetClassLongPtrA GetClassLongA #define GetClassLongPtrW GetClassLongW #endif -int WINAPI GetClassNameA(HWND,LPSTR,int); -int WINAPI GetClassNameW(HWND,LPWSTR,int); -WORD WINAPI GetClassWord(HWND,int); -BOOL WINAPI GetClientRect(HWND,LPRECT); -HANDLE WINAPI GetClipboardData(UINT); -int WINAPI GetClipboardFormatNameA(UINT,LPSTR,int); -int WINAPI GetClipboardFormatNameW(UINT,LPWSTR,int); + +int +WINAPI +GetClassNameA( + _In_ HWND hWnd, + _Out_writes_to_(nMaxCount, return) LPSTR lpClassName, + _In_ int nMaxCount); + +int +WINAPI +GetClassNameW( + _In_ HWND hWnd, + _Out_writes_to_(nMaxCount, return) LPWSTR lpClassName, + _In_ int nMaxCount); + +WORD WINAPI GetClassWord(_In_ HWND, _In_ int); +BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT); +HANDLE WINAPI GetClipboardData(_In_ UINT); + +int +WINAPI +GetClipboardFormatNameA( + _In_ UINT format, + _Out_writes_(cchMaxCount) LPSTR lpszFormatName, + _In_ int cchMaxCount); + +int +WINAPI +GetClipboardFormatNameW( + _In_ UINT format, + _Out_writes_(cchMaxCount) LPWSTR lpszFormatName, + _In_ int cchMaxCount); + HWND WINAPI GetClipboardOwner(void); #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410) DWORD WINAPI GetClipboardSequenceNumber(void); #endif HWND WINAPI GetClipboardViewer(void); -BOOL WINAPI GetClipCursor(LPRECT); -BOOL WINAPI GetCursorPos(LPPOINT); -HDC WINAPI GetDC(HWND); -HDC WINAPI GetDCEx(HWND,HRGN,DWORD); +BOOL WINAPI GetClipCursor(_Out_ LPRECT); +BOOL WINAPI GetCursorPos(_Out_ LPPOINT); +HDC WINAPI GetDC(_In_opt_ HWND); +HDC WINAPI GetDCEx(_In_opt_ HWND, _In_opt_ HRGN, _In_ DWORD); HWND WINAPI GetDesktopWindow(void); LONG WINAPI GetDialogBaseUnits(void); -int WINAPI GetDlgCtrlID(HWND); -HWND WINAPI GetDlgItem(HWND,int); -UINT WINAPI GetDlgItemInt(HWND,int,PBOOL,BOOL); -UINT WINAPI GetDlgItemTextA(HWND,int,LPSTR,int); -UINT WINAPI GetDlgItemTextW(HWND,int,LPWSTR,int); +int WINAPI GetDlgCtrlID(_In_ HWND); +HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int); +UINT WINAPI GetDlgItemInt(_In_ HWND, _In_ int, _Out_opt_ PBOOL, _In_ BOOL); + +_Ret_range_(0, cchMax) +UINT +WINAPI +GetDlgItemTextA( + _In_ HWND hDlg, + _In_ int nIDDlgItem, + _Out_writes_(cchMax) LPSTR lpString, + _In_ int cchMax); + +_Ret_range_(0, cchMax) +UINT +WINAPI +GetDlgItemTextW( + _In_ HWND hDlg, + _In_ int nIDDlgItem, + _Out_writes_(cchMax) LPWSTR lpString, + _In_ int cchMax); + UINT WINAPI GetDoubleClickTime(void); HWND WINAPI GetFocus(void); HWND WINAPI GetForegroundWindow(void); #if (_WIN32_WINNT >= 0x0500) -DWORD WINAPI GetGuiResources(HANDLE,DWORD); -#endif -BOOL WINAPI GetIconInfo(HICON,PICONINFO); -BOOL WINAPI GetIconInfoExA(HICON,ICONINFOEXA*); -BOOL WINAPI GetIconInfoExW(HICON,ICONINFOEXW*); +DWORD WINAPI GetGuiResources(_In_ HANDLE, _In_ DWORD); +#endif +BOOL WINAPI GetIconInfo(_In_ HICON, _Out_ PICONINFO); +BOOL WINAPI GetIconInfoExA(_In_ HICON, _Inout_ ICONINFOEXA*); +BOOL WINAPI GetIconInfoExW(_In_ HICON, _Inout_ ICONINFOEXW*); BOOL WINAPI GetInputState(void); UINT WINAPI GetKBCodePage(void); -HKL WINAPI GetKeyboardLayout(DWORD); -UINT WINAPI GetKeyboardLayoutList(int,HKL*); -BOOL WINAPI GetKeyboardLayoutNameA(LPSTR); -BOOL WINAPI GetKeyboardLayoutNameW(LPWSTR); -BOOL WINAPI GetKeyboardState(PBYTE); -int WINAPI GetKeyboardType(int); -int WINAPI GetKeyNameTextA(LONG,LPSTR,int); -int WINAPI GetKeyNameTextW(LONG,LPWSTR,int); -SHORT WINAPI GetKeyState(int); -HWND WINAPI GetLastActivePopup(HWND); -HMENU WINAPI GetMenu(HWND); +HKL WINAPI GetKeyboardLayout(_In_ DWORD); + +UINT +WINAPI +GetKeyboardLayoutList( + _In_ int nBuff, + _Out_writes_to_opt_(nBuff, return) HKL FAR *lpList); + +BOOL WINAPI GetKeyboardLayoutNameA(_Out_writes_(KL_NAMELENGTH) LPSTR); +BOOL WINAPI GetKeyboardLayoutNameW(_Out_writes_(KL_NAMELENGTH) LPWSTR); + +_Check_return_ +BOOL +WINAPI +GetKeyboardState( + _Out_writes_(256) PBYTE lpKeyState); + +int WINAPI GetKeyboardType(_In_ int); + +int +WINAPI +GetKeyNameTextA( + _In_ LONG lParam, + _Out_writes_(cchSize) LPSTR lpString, + _In_ int cchSize); + +int +WINAPI +GetKeyNameTextW( + _In_ LONG lParam, + _Out_writes_(cchSize) LPWSTR lpString, + _In_ int cchSize); + +SHORT WINAPI GetKeyState(_In_ int); +HWND WINAPI GetLastActivePopup(_In_ HWND); +HMENU WINAPI GetMenu(_In_ HWND); LONG WINAPI GetMenuCheckMarkDimensions(void); -DWORD WINAPI GetMenuContextHelpId(HMENU); -UINT WINAPI GetMenuDefaultItem(HMENU,UINT,UINT); -int WINAPI GetMenuItemCount(HMENU); -UINT WINAPI GetMenuItemID(HMENU,int); -BOOL WINAPI GetMenuItemInfoA(HMENU,UINT,BOOL,LPMENUITEMINFOA); -BOOL WINAPI GetMenuItemInfoW(HMENU,UINT,BOOL,LPMENUITEMINFOW); -BOOL WINAPI GetMenuItemRect(HWND,HMENU,UINT,LPRECT); -UINT WINAPI GetMenuState(HMENU,UINT,UINT); -int WINAPI GetMenuStringA(HMENU,UINT,LPSTR,int,UINT); -int WINAPI GetMenuStringW(HMENU,UINT,LPWSTR,int,UINT); -BOOL WINAPI GetMessageA(LPMSG,HWND,UINT,UINT); -BOOL WINAPI GetMessageW(LPMSG,HWND,UINT,UINT); +DWORD WINAPI GetMenuContextHelpId(_In_ HMENU); +UINT WINAPI GetMenuDefaultItem(_In_ HMENU, _In_ UINT, _In_ UINT); +int WINAPI GetMenuItemCount(_In_opt_ HMENU); +UINT WINAPI GetMenuItemID(_In_ HMENU, _In_ int); +BOOL WINAPI GetMenuItemInfoA(_In_ HMENU, _In_ UINT, _In_ BOOL, _Inout_ LPMENUITEMINFOA); +BOOL WINAPI GetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _Inout_ LPMENUITEMINFOW); +BOOL WINAPI GetMenuItemRect(_In_opt_ HWND, _In_ HMENU, _In_ UINT, _Out_ LPRECT); +UINT WINAPI GetMenuState(_In_ HMENU, _In_ UINT, _In_ UINT); + +int +WINAPI +GetMenuStringA( + _In_ HMENU hMenu, + _In_ UINT uIDItem, + _Out_writes_opt_(cchMax) LPSTR lpString, + _In_ int cchMax, + _In_ UINT flags); + +int +WINAPI +GetMenuStringW( + _In_ HMENU hMenu, + _In_ UINT uIDItem, + _Out_writes_opt_(cchMax) LPWSTR lpString, + _In_ int cchMax, + _In_ UINT flags); + +BOOL WINAPI GetMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT); +BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT); + LPARAM WINAPI GetMessageExtraInfo(void); DWORD WINAPI GetMessagePos(void); LONG WINAPI GetMessageTime(void); + #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490) -int WINAPI GetMouseMovePointsEx(UINT,LPMOUSEMOVEPOINT,LPMOUSEMOVEPOINT,int,DWORD); -#endif -HWND WINAPI GetNextDlgGroupItem(HWND,HWND,BOOL); -HWND WINAPI GetNextDlgTabItem(HWND,HWND,BOOL); +int +WINAPI +GetMouseMovePointsEx( + _In_ UINT cbSize, + _In_ LPMOUSEMOVEPOINT lppt, + _Out_writes_(nBufPoints) LPMOUSEMOVEPOINT lpptBuf, + _In_ int nBufPoints, + _In_ DWORD resolution); +#endif + +HWND WINAPI GetNextDlgGroupItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL); +HWND WINAPI GetNextDlgTabItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL); #define GetNextWindow(h,c) GetWindow(h,c) HWND WINAPI GetOpenClipboardWindow(void); -HWND WINAPI GetParent(HWND); -int WINAPI GetPriorityClipboardFormat(UINT*,int); -HANDLE WINAPI GetPropA(HWND,LPCSTR); -HANDLE WINAPI GetPropW(HWND,LPCWSTR); +HWND WINAPI GetParent(_In_ HWND); + +int +WINAPI +GetPriorityClipboardFormat( + _In_reads_(cFormats) UINT *paFormatPriorityList, + _In_ int cFormats); + +HANDLE WINAPI GetPropA(_In_ HWND, _In_ LPCSTR); +HANDLE WINAPI GetPropW(_In_ HWND, _In_ LPCWSTR); + #if (_WIN32_WINNT >= 0x0501) -UINT WINAPI GetRawInputBuffer(PRAWINPUT,PUINT,UINT); -UINT WINAPI GetRawInputData(HRAWINPUT,UINT,LPVOID,PUINT,UINT); -UINT WINAPI GetRawInputDeviceInfoA(HANDLE,UINT,LPVOID,PUINT); -UINT WINAPI GetRawInputDeviceInfoW(HANDLE,UINT,LPVOID,PUINT); -UINT WINAPI GetRawInputDeviceList(PRAWINPUTDEVICELIST,PUINT,UINT); -UINT WINAPI GetRegisteredRawInputDevices(PRAWINPUTDEVICE,PUINT,UINT); -#endif -DWORD WINAPI GetQueueStatus(UINT); -BOOL WINAPI GetScrollInfo(HWND,int,LPSCROLLINFO); -int WINAPI GetScrollPos(HWND,int); -BOOL WINAPI GetScrollRange(HWND,int,LPINT,LPINT); + +UINT +WINAPI +GetRawInputBuffer( + _Out_writes_bytes_opt_(*pcbSize) PRAWINPUT pData, + _Inout_ PUINT pcbSize, + _In_ UINT cbSizeHeader); + +UINT +WINAPI +GetRawInputData( + _In_ HRAWINPUT hRawInput, + _In_ UINT uiCommand, + _Out_writes_bytes_to_opt_(*pcbSize, return) LPVOID pData, + _Inout_ PUINT pcbSize, + _In_ UINT cbSizeHeader); + +UINT +WINAPI +GetRawInputDeviceInfoA( + _In_opt_ HANDLE hDevice, + _In_ UINT uiCommand, + _Inout_updates_bytes_to_opt_(*pcbSize, *pcbSize) LPVOID pData, + _Inout_ PUINT pcbSize); + +UINT +WINAPI +GetRawInputDeviceInfoW( + _In_opt_ HANDLE hDevice, + _In_ UINT uiCommand, + _Inout_updates_bytes_to_opt_(*pcbSize, *pcbSize) LPVOID pData, + _Inout_ PUINT pcbSize); + +UINT +WINAPI +GetRawInputDeviceList( + _Out_writes_opt_(*puiNumDevices) PRAWINPUTDEVICELIST pRawInputDeviceList, + _Inout_ PUINT puiNumDevices, + _In_ UINT cbSize); + +UINT +WINAPI +GetRegisteredRawInputDevices( + _Out_writes_opt_(*puiNumDevices) PRAWINPUTDEVICE pRawInputDevices, + _Inout_ PUINT puiNumDevices, + _In_ UINT cbSize); + +#endif /* (_WIN32_WINNT >= 0x0501) */ + +DWORD WINAPI GetQueueStatus(_In_ UINT); +BOOL WINAPI GetScrollInfo(_In_ HWND, _In_ int, _Inout_ LPSCROLLINFO); +int WINAPI GetScrollPos(_In_ HWND, _In_ int); +BOOL WINAPI GetScrollRange(_In_ HWND, _In_ int, _Out_ LPINT, _Out_ LPINT); #if (_WIN32_WINNT >= 0x0500) HWND WINAPI GetShellWindow(void); #endif -HMENU WINAPI GetSubMenu(HMENU,int); -DWORD WINAPI GetSysColor(int); -HBRUSH WINAPI GetSysColorBrush(int); +HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int); +DWORD WINAPI GetSysColor(_In_ int); +HBRUSH WINAPI GetSysColorBrush(_In_ int); #define GetSysModalWindow() (NULL) -HMENU WINAPI GetSystemMenu(HWND,BOOL); -int WINAPI GetSystemMetrics(int); -DWORD WINAPI GetTabbedTextExtentA(HDC,LPCSTR,int,int,CONST INT*); -DWORD WINAPI GetTabbedTextExtentW(HDC,LPCWSTR,int,int,CONST INT*); -LONG WINAPI GetWindowLongA(HWND,int); -LONG WINAPI GetWindowLongW(HWND,int); +HMENU WINAPI GetSystemMenu(_In_ HWND, _In_ BOOL); +int WINAPI GetSystemMetrics(_In_ int); + +DWORD +WINAPI +GetTabbedTextExtentA( + _In_ HDC hdc, + _In_reads_(chCount) LPCSTR lpString, + _In_ int chCount, + _In_ int nTabPositions, + _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions); + +DWORD +WINAPI +GetTabbedTextExtentW( + _In_ HDC hdc, + _In_reads_(chCount) LPCWSTR lpString, + _In_ int chCount, + _In_ int nTabPositions, + _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions); + +LONG WINAPI GetWindowLongA(_In_ HWND, _In_ int); +LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int); #ifdef _WIN64 -LONG_PTR WINAPI GetWindowLongPtrA(HWND,int); -LONG_PTR WINAPI GetWindowLongPtrW(HWND,int); +LONG_PTR WINAPI GetWindowLongPtrA(_In_ HWND, _In_ int); +LONG_PTR WINAPI GetWindowLongPtrW(_In_ HWND, _In_ int); #else #define GetWindowLongPtrA GetWindowLongA #define GetWindowLongPtrW GetWindowLongW #endif -HDESK WINAPI GetThreadDesktop(DWORD); -HWND WINAPI GetTopWindow(HWND); -BOOL WINAPI GetUpdateRect(HWND,LPRECT,BOOL); -int WINAPI GetUpdateRgn(HWND,HRGN,BOOL); -BOOL WINAPI GetUserObjectInformationA(HANDLE,int,PVOID,DWORD,PDWORD); -BOOL WINAPI GetUserObjectInformationW(HANDLE,int,PVOID,DWORD,PDWORD); -BOOL WINAPI GetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,PDWORD); -HWND WINAPI GetWindow(HWND,UINT); -DWORD WINAPI GetWindowContextHelpId(HWND); -HDC WINAPI GetWindowDC(HWND); +HDESK WINAPI GetThreadDesktop(_In_ DWORD); +HWND WINAPI GetTopWindow(_In_opt_ HWND); +BOOL WINAPI GetUpdateRect(_In_ HWND, _Out_opt_ LPRECT, _In_ BOOL); +int WINAPI GetUpdateRgn(_In_ HWND, _In_ HRGN, _In_ BOOL); + +BOOL +WINAPI +GetUserObjectInformationA( + _In_ HANDLE hObj, + _In_ int nIndex, + _Out_writes_bytes_opt_(nLength) PVOID pvInfo, + _In_ DWORD nLength, + _Out_opt_ LPDWORD lpnLengthNeeded); + +BOOL +WINAPI +GetUserObjectInformationW( + _In_ HANDLE hObj, + _In_ int nIndex, + _Out_writes_bytes_opt_(nLength) PVOID pvInfo, + _In_ DWORD nLength, + _Out_opt_ LPDWORD lpnLengthNeeded); + +BOOL +WINAPI +GetUserObjectSecurity( + _In_ HANDLE hObj, + _In_ PSECURITY_INFORMATION pSIRequested, + _Out_writes_bytes_opt_(nLength) PSECURITY_DESCRIPTOR pSID, + _In_ DWORD nLength, + _Out_ LPDWORD lpnLengthNeeded); + +HWND WINAPI GetWindow(_In_ HWND, _In_ UINT); +DWORD WINAPI GetWindowContextHelpId(_In_ HWND); +HDC WINAPI GetWindowDC(_In_opt_ HWND); BOOL WINAPI GetWindowExtEx(HDC,LPSIZE); -BOOL WINAPI GetWindowPlacement(HWND,WINDOWPLACEMENT*); -BOOL WINAPI GetWindowRect(HWND,LPRECT); -int WINAPI GetWindowRgn(HWND,HRGN); +BOOL WINAPI GetWindowPlacement(_In_ HWND, _Inout_ WINDOWPLACEMENT*); +BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT); +int WINAPI GetWindowRgn(_In_ HWND, _In_ HRGN); #define GetWindowTask(hWnd) ((HANDLE)GetWindowThreadProcessId(hWnd, NULL)) -int WINAPI GetWindowTextA(HWND,LPSTR,int); -int WINAPI GetWindowTextLengthA(HWND); -int WINAPI GetWindowTextLengthW(HWND); -int WINAPI GetWindowTextW(HWND,LPWSTR,int); -WORD WINAPI GetWindowWord(HWND,int); -BOOL WINAPI GetAltTabInfoA(HWND,int,PALTTABINFO,LPSTR,UINT); -BOOL WINAPI GetAltTabInfoW(HWND,int,PALTTABINFO,LPWSTR,UINT); -BOOL WINAPI GetComboBoxInfo(HWND,PCOMBOBOXINFO); -BOOL WINAPI GetCursorInfo(PCURSORINFO); + +_Ret_range_(0, nMaxCount) +int +WINAPI +GetWindowTextA( + _In_ HWND hWnd, + _Out_writes_(nMaxCount) LPSTR lpString, + _In_ int nMaxCount); + +_Ret_range_(0, nMaxCount) +int +WINAPI +GetWindowTextW( + _In_ HWND hWnd, + _Out_writes_(nMaxCount) LPWSTR lpString, + _In_ int nMaxCount); + +int WINAPI GetWindowTextLengthA(_In_ HWND); +int WINAPI GetWindowTextLengthW(_In_ HWND); +WORD WINAPI GetWindowWord(_In_ HWND, _In_ int); + +BOOL +WINAPI +GetAltTabInfoA( + _In_opt_ HWND hwnd, + _In_ int iItem, + _Inout_ PALTTABINFO pati, + _Out_writes_opt_(cchItemText) LPSTR pszItemText, + _In_ UINT cchItemText); + +BOOL +WINAPI +GetAltTabInfoW( + _In_opt_ HWND hwnd, + _In_ int iItem, + _Inout_ PALTTABINFO pati, + _Out_writes_opt_(cchItemText) LPWSTR pszItemText, + _In_ UINT cchItemText); + +BOOL WINAPI GetComboBoxInfo(_In_ HWND, _Inout_ PCOMBOBOXINFO); +BOOL WINAPI GetCursorInfo(_Inout_ PCURSORINFO); #if (WINVER >= 0x0500) -BOOL WINAPI GetGUIThreadInfo(DWORD,LPGUITHREADINFO); -#endif -BOOL WINAPI GetLastInputInfo(PLASTINPUTINFO); -DWORD WINAPI GetListBoxInfo(HWND); -BOOL WINAPI GetMenuBarInfo(HWND,LONG,LONG,PMENUBARINFO); -BOOL WINAPI GetMenuInfo(HMENU,LPMENUINFO); +BOOL WINAPI GetGUIThreadInfo(_In_ DWORD, _Inout_ LPGUITHREADINFO); +#endif +BOOL WINAPI GetLastInputInfo(_Out_ PLASTINPUTINFO); +DWORD WINAPI GetListBoxInfo(_In_ HWND); +BOOL WINAPI GetMenuBarInfo(_In_ HWND, _In_ LONG, _In_ LONG, _Inout_ PMENUBARINFO); +BOOL WINAPI GetMenuInfo(_In_ HMENU, _Inout_ LPMENUINFO); #if (_WIN32_WINNT >= 0x0500) -BOOL WINAPI GetProcessDefaultLayout(DWORD*); -#endif -BOOL WINAPI GetScrollBarInfo(HWND,LONG,PSCROLLBARINFO); -BOOL WINAPI GetTitleBarInfo(HWND,PTITLEBARINFO); -BOOL WINAPI GetWindowInfo(HWND,PWINDOWINFO); -BOOL WINAPI GetMonitorInfoA(HMONITOR,LPMONITORINFO); -BOOL WINAPI GetMonitorInfoW(HMONITOR,LPMONITORINFO); -UINT WINAPI GetWindowModuleFileNameA(HWND,LPSTR,UINT); -UINT WINAPI GetWindowModuleFileNameW(HWND,LPWSTR,UINT); -BOOL WINAPI GrayStringA(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,int,int,int,int,int); -BOOL WINAPI GrayStringW(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,int,int,int,int,int); -BOOL WINAPI HideCaret(HWND); -BOOL WINAPI HiliteMenuItem(HWND,HMENU,UINT,UINT); -BOOL WINAPI InflateRect(LPRECT,int,int); +BOOL WINAPI GetProcessDefaultLayout(_Out_ DWORD*); +#endif +BOOL WINAPI GetScrollBarInfo(_In_ HWND, _In_ LONG, _Inout_ PSCROLLBARINFO); +BOOL WINAPI GetTitleBarInfo(_In_ HWND, _Inout_ PTITLEBARINFO); +BOOL WINAPI GetWindowInfo(_In_ HWND, _Inout_ PWINDOWINFO); +BOOL WINAPI GetMonitorInfoA(_In_ HMONITOR, _Inout_ LPMONITORINFO); +BOOL WINAPI GetMonitorInfoW(_In_ HMONITOR, _Inout_ LPMONITORINFO); + +UINT +WINAPI +GetWindowModuleFileNameA( + _In_ HWND hwnd, + _Out_writes_to_(cchFileNameMax, return) LPSTR pszFileName, + _In_ UINT cchFileNameMax); + +UINT +WINAPI +GetWindowModuleFileNameW( + _In_ HWND hwnd, + _Out_writes_to_(cchFileNameMax, return) LPWSTR pszFileName, + _In_ UINT cchFileNameMax); + +BOOL WINAPI GrayStringA(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ GRAYSTRINGPROC, _In_ LPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int); +BOOL WINAPI GrayStringW(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ GRAYSTRINGPROC, _In_ LPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int); +BOOL WINAPI HideCaret(_In_opt_ HWND); +BOOL WINAPI HiliteMenuItem(_In_ HWND, _In_ HMENU, _In_ UINT, _In_ UINT); +BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int); BOOL WINAPI InSendMessage(void); #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410) -DWORD WINAPI InSendMessageEx(LPVOID); -#endif -BOOL WINAPI InsertMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR); -BOOL WINAPI InsertMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR); -BOOL WINAPI InsertMenuItemA(HMENU,UINT,BOOL,LPCMENUITEMINFOA); -BOOL WINAPI InsertMenuItemW(HMENU,UINT,BOOL,LPCMENUITEMINFOW); -INT WINAPI InternalGetWindowText(HWND,LPWSTR,INT); -BOOL WINAPI IntersectRect(LPRECT,LPCRECT,LPCRECT); -BOOL WINAPI InvalidateRect(HWND,LPCRECT,BOOL); -BOOL WINAPI InvalidateRgn(HWND,HRGN,BOOL); -BOOL WINAPI InvertRect(HDC,LPCRECT); -BOOL WINAPI IsCharAlphaA(CHAR ch); -BOOL WINAPI IsCharAlphaNumericA(CHAR); -BOOL WINAPI IsCharAlphaNumericW(WCHAR); -BOOL WINAPI IsCharAlphaW(WCHAR); -BOOL WINAPI IsCharLowerA(CHAR); -BOOL WINAPI IsCharLowerW(WCHAR); -BOOL WINAPI IsCharUpperA(CHAR); -BOOL WINAPI IsCharUpperW(WCHAR); -BOOL WINAPI IsChild(HWND,HWND); -BOOL WINAPI IsClipboardFormatAvailable(UINT); -BOOL WINAPI IsDialogMessageA(HWND,LPMSG); -BOOL WINAPI IsDialogMessageW(HWND,LPMSG); -UINT WINAPI IsDlgButtonChecked(HWND,int); +DWORD WINAPI InSendMessageEx(_Reserved_ LPVOID); +#endif +BOOL WINAPI InsertMenuA(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCSTR); +BOOL WINAPI InsertMenuW(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR); +BOOL WINAPI InsertMenuItemA(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOA); +BOOL WINAPI InsertMenuItemW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW); + +INT +WINAPI +InternalGetWindowText( + _In_ HWND hWnd, + _Out_writes_to_(cchMaxCount, return + 1) LPWSTR pString, + _In_ int cchMaxCount); + +BOOL WINAPI IntersectRect(_Out_ LPRECT, _In_ LPCRECT, _In_ LPCRECT); +BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL); +BOOL WINAPI InvalidateRgn(_In_ HWND, _In_opt_ HRGN, _In_ BOOL); +BOOL WINAPI InvertRect(_In_ HDC, _In_ LPCRECT); +BOOL WINAPI IsCharAlphaA(_In_ CHAR ch); +BOOL WINAPI IsCharAlphaNumericA(_In_ CHAR); +BOOL WINAPI IsCharAlphaNumericW(_In_ WCHAR); +BOOL WINAPI IsCharAlphaW( _In_ WCHAR); +BOOL WINAPI IsCharLowerA(_In_ CHAR); +BOOL WINAPI IsCharLowerW(_In_ WCHAR); +BOOL WINAPI IsCharUpperA(_In_ CHAR); +BOOL WINAPI IsCharUpperW(_In_ WCHAR); +BOOL WINAPI IsChild(_In_ HWND, _In_ HWND); +BOOL WINAPI IsClipboardFormatAvailable(_In_ UINT); +BOOL WINAPI IsDialogMessageA(_In_ HWND, _In_ LPMSG); +BOOL WINAPI IsDialogMessageW(_In_ HWND, _In_ LPMSG); +UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int); #if(_WIN32_WINNT >= 0x0501) -BOOL WINAPI IsGUIThread(BOOL); +BOOL WINAPI IsGUIThread(_In_ BOOL); #endif #if(_WIN32_WINNT >= 0x0500) -BOOL WINAPI IsHungAppWindow(HWND); -#endif -BOOL WINAPI IsIconic(HWND); -BOOL WINAPI IsMenu(HMENU); -BOOL WINAPI IsRectEmpty(LPCRECT); -BOOL WINAPI IsWindow(HWND); -BOOL WINAPI IsWindowEnabled(HWND); -BOOL WINAPI IsWindowUnicode(HWND); -BOOL WINAPI IsWindowVisible(HWND); +BOOL WINAPI IsHungAppWindow(_In_ HWND); +#endif +BOOL WINAPI IsIconic(_In_ HWND); +BOOL WINAPI IsMenu(_In_ HMENU); +BOOL WINAPI IsRectEmpty(_In_ LPCRECT); +BOOL WINAPI IsWindow(_In_opt_ HWND); +BOOL WINAPI IsWindowEnabled(_In_ HWND); +BOOL WINAPI IsWindowUnicode(_In_ HWND); +BOOL WINAPI IsWindowVisible(_In_ HWND); #if (_WIN32_WINNT >= 0x0501) -BOOL WINAPI IsWinEventHookInstalled(DWORD); -#endif -BOOL WINAPI IsZoomed(HWND); -VOID WINAPI keybd_event(BYTE,BYTE,DWORD,ULONG_PTR); -BOOL WINAPI KillTimer(HWND,UINT_PTR); +BOOL WINAPI IsWinEventHookInstalled(_In_ DWORD); +#endif +BOOL WINAPI IsZoomed(_In_ HWND); +VOID WINAPI keybd_event(_In_ BYTE, _In_ BYTE, _In_ DWORD, _In_ ULONG_PTR); +BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR); BOOL WINAPI KillSystemTimer(HWND,UINT_PTR); -HACCEL WINAPI LoadAcceleratorsA(HINSTANCE,LPCSTR); -HACCEL WINAPI LoadAcceleratorsW(HINSTANCE,LPCWSTR); -HBITMAP WINAPI LoadBitmapA(HINSTANCE,LPCSTR); -HBITMAP WINAPI LoadBitmapW(HINSTANCE,LPCWSTR); -HCURSOR WINAPI LoadCursorA(HINSTANCE,LPCSTR); -HCURSOR WINAPI LoadCursorFromFileA(LPCSTR); -HCURSOR WINAPI LoadCursorFromFileW(LPCWSTR); -HCURSOR WINAPI LoadCursorW(HINSTANCE,LPCWSTR); -HICON WINAPI LoadIconA(HINSTANCE,LPCSTR); -HICON WINAPI LoadIconW(HINSTANCE,LPCWSTR); -HANDLE WINAPI LoadImageA(HINSTANCE,LPCSTR,UINT,int,int,UINT); -HANDLE WINAPI LoadImageW(HINSTANCE,LPCWSTR,UINT,int,int,UINT); -HKL WINAPI LoadKeyboardLayoutA(LPCSTR,UINT); -HKL WINAPI LoadKeyboardLayoutW(LPCWSTR,UINT); -HMENU WINAPI LoadMenuA(HINSTANCE,LPCSTR); -HMENU WINAPI LoadMenuIndirectA(const MENUTEMPLATE*); -HMENU WINAPI LoadMenuIndirectW(const MENUTEMPLATE*); -HMENU WINAPI LoadMenuW(HINSTANCE,LPCWSTR); -int WINAPI LoadStringA(HINSTANCE,UINT,LPSTR,int); -int WINAPI LoadStringW(HINSTANCE,UINT,LPWSTR,int); -BOOL WINAPI LockWindowUpdate(HWND); +HACCEL WINAPI LoadAcceleratorsA(_In_opt_ HINSTANCE, _In_ LPCSTR); +HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR); +HBITMAP WINAPI LoadBitmapA(_In_opt_ HINSTANCE, _In_ LPCSTR); +HBITMAP WINAPI LoadBitmapW(_In_opt_ HINSTANCE, _In_ LPCWSTR); +HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR); +HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR); +HCURSOR WINAPI LoadCursorFromFileA(_In_ LPCSTR); +HCURSOR WINAPI LoadCursorFromFileW(_In_ LPCWSTR); +HICON WINAPI LoadIconA(_In_opt_ HINSTANCE, _In_ LPCSTR); +HICON WINAPI LoadIconW(_In_opt_ HINSTANCE, _In_ LPCWSTR); +HANDLE WINAPI LoadImageA(_In_opt_ HINSTANCE, _In_ LPCSTR, _In_ UINT, _In_ int, _In_ int, _In_ UINT); +HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_ UINT, _In_ int, _In_ int, _In_ UINT); +HKL WINAPI LoadKeyboardLayoutA(_In_ LPCSTR, _In_ UINT); +HKL WINAPI LoadKeyboardLayoutW(_In_ LPCWSTR, _In_ UINT); +HMENU WINAPI LoadMenuA(_In_opt_ HINSTANCE, _In_ LPCSTR); +HMENU WINAPI LoadMenuIndirectA(_In_ const MENUTEMPLATE*); +HMENU WINAPI LoadMenuIndirectW(_In_ const MENUTEMPLATE*); +HMENU WINAPI LoadMenuW(_In_opt_ HINSTANCE, _In_ LPCWSTR); + +int +WINAPI +LoadStringA( + _In_opt_ HINSTANCE hInstance, + _In_ UINT uID, + _Out_writes_to_(cchBufferMax, return + 1) LPSTR lpBuffer, + _In_ int cchBufferMax); + +int +WINAPI +LoadStringW( + _In_opt_ HINSTANCE hInstance, + _In_ UINT uID, + _Out_writes_to_(cchBufferMax, return + 1) LPWSTR lpBuffer, + _In_ int cchBufferMax); + +BOOL WINAPI LockWindowUpdate(_In_opt_ HWND); #if (_WIN32_WINNT >= 0x0500) BOOL WINAPI LockWorkStation(void); #endif -int WINAPI LookupIconIdFromDirectory(PBYTE,BOOL); -int WINAPI LookupIconIdFromDirectoryEx(PBYTE,BOOL,int,int,UINT); -BOOL WINAPI MapDialogRect(HWND,LPRECT); -UINT WINAPI MapVirtualKeyA(UINT,UINT); -UINT WINAPI MapVirtualKeyExA(UINT,UINT,HKL); -UINT WINAPI MapVirtualKeyExW(UINT,UINT,HKL); -UINT WINAPI MapVirtualKeyW(UINT,UINT); -int WINAPI MapWindowPoints(HWND,HWND,LPPOINT,UINT); -int WINAPI MenuItemFromPoint(HWND,HMENU,POINT); -BOOL WINAPI MessageBeep(UINT); -int WINAPI MessageBoxA(HWND,LPCSTR,LPCSTR,UINT); -int WINAPI MessageBoxW(HWND,LPCWSTR,LPCWSTR,UINT); -int WINAPI MessageBoxExA(HWND,LPCSTR,LPCSTR,UINT,WORD); -int WINAPI MessageBoxExW(HWND,LPCWSTR,LPCWSTR,UINT,WORD); -int WINAPI MessageBoxIndirectA(CONST MSGBOXPARAMSA*); -int WINAPI MessageBoxIndirectW(CONST MSGBOXPARAMSW*); -BOOL WINAPI ModifyMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR); -BOOL WINAPI ModifyMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR); -HMONITOR WINAPI MonitorFromPoint(POINT,DWORD); -HMONITOR WINAPI MonitorFromRect(LPCRECT,DWORD); -HMONITOR WINAPI MonitorFromWindow(HWND,DWORD); -void WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,ULONG_PTR); -BOOL WINAPI MoveWindow(HWND,int,int,int,int,BOOL); -DWORD WINAPI MsgWaitForMultipleObjects(DWORD,CONST HANDLE*,BOOL,DWORD,DWORD); -DWORD WINAPI MsgWaitForMultipleObjectsEx(DWORD,CONST HANDLE*,DWORD,DWORD,DWORD); + +typedef struct { + WORD Reserved; + WORD ResType; + WORD ResCount; +} NEWHEADER; + +int WINAPI LookupIconIdFromDirectory(_In_reads_bytes_(sizeof(NEWHEADER)) PBYTE, _In_ BOOL); +int WINAPI LookupIconIdFromDirectoryEx(_In_reads_bytes_(sizeof(NEWHEADER)) PBYTE, _In_ BOOL, _In_ int, _In_ int, _In_ UINT); +BOOL WINAPI MapDialogRect(_In_ HWND, _Inout_ LPRECT); +UINT WINAPI MapVirtualKeyA(_In_ UINT, _In_ UINT); +UINT WINAPI MapVirtualKeyExA(_In_ UINT, _In_ UINT, _In_opt_ HKL); +UINT WINAPI MapVirtualKeyExW(_In_ UINT, _In_ UINT, _In_opt_ HKL); +UINT WINAPI MapVirtualKeyW(_In_ UINT, _In_ UINT); + +int +WINAPI +MapWindowPoints( + _In_opt_ HWND hWndFrom, + _In_opt_ HWND hWndTo, + _Inout_updates_(cPoints) LPPOINT lpPoints, + _In_ UINT cPoints); + +int WINAPI MenuItemFromPoint(_In_opt_ HWND, _In_ HMENU, _In_ POINT); +BOOL WINAPI MessageBeep(_In_ UINT); +int WINAPI MessageBoxA(_In_opt_ HWND, _In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_ UINT); +int WINAPI MessageBoxW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT); +int WINAPI MessageBoxExA(_In_opt_ HWND, _In_opt_ LPCSTR, _In_opt_ LPCSTR, _In_ UINT, _In_ WORD); +int WINAPI MessageBoxExW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT, _In_ WORD); +int WINAPI MessageBoxIndirectA(_In_ CONST MSGBOXPARAMSA*); +int WINAPI MessageBoxIndirectW(_In_ CONST MSGBOXPARAMSW*); +BOOL WINAPI ModifyMenuA(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCSTR); +BOOL WINAPI ModifyMenuW(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR); +HMONITOR WINAPI MonitorFromPoint(_In_ POINT, _In_ DWORD); +HMONITOR WINAPI MonitorFromRect(_In_ LPCRECT, _In_ DWORD); +HMONITOR WINAPI MonitorFromWindow(_In_ HWND, _In_ DWORD); +void WINAPI mouse_event(_In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ ULONG_PTR); +BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL); + +DWORD +WINAPI +MsgWaitForMultipleObjects( + _In_ DWORD nCount, + _In_reads_opt_(nCount) CONST HANDLE *pHandles, + _In_ BOOL fWaitAll, + _In_ DWORD dwMilliseconds, + _In_ DWORD dwWakeMask); + +DWORD +WINAPI +MsgWaitForMultipleObjectsEx( + _In_ DWORD nCount, + _In_reads_opt_(nCount) CONST HANDLE *pHandles, + _In_ DWORD dwMilliseconds, + _In_ DWORD dwWakeMask, + _In_ DWORD dwFlags); + #if (WINVER >= 0x0500) -void WINAPI NotifyWinEvent(DWORD,HWND,LONG,LONG); -#endif -DWORD WINAPI OemKeyScan(WORD); -BOOL WINAPI OemToCharA(LPCSTR,LPSTR); -BOOL WINAPI OemToCharBuffA(LPCSTR,LPSTR,DWORD); -BOOL WINAPI OemToCharBuffW(LPCSTR,LPWSTR,DWORD); -BOOL WINAPI OemToCharW(LPCSTR,LPWSTR); -BOOL WINAPI OffsetRect(LPRECT,int,int); -BOOL WINAPI OpenClipboard(HWND); -HDESK WINAPI OpenDesktopA(LPCSTR,DWORD,BOOL,DWORD); -HDESK WINAPI OpenDesktopW(LPCWSTR,DWORD,BOOL,DWORD); -BOOL WINAPI OpenIcon(HWND); -HDESK WINAPI OpenInputDesktop(DWORD,BOOL,DWORD); -HWINSTA WINAPI OpenWindowStationA(LPCSTR,BOOL,DWORD); -HWINSTA WINAPI OpenWindowStationW(LPCWSTR,BOOL,DWORD); -BOOL WINAPI PaintDesktop(HDC); -BOOL WINAPI PeekMessageA(LPMSG,HWND,UINT,UINT,UINT); -BOOL WINAPI PeekMessageW(LPMSG,HWND,UINT,UINT,UINT); +void WINAPI NotifyWinEvent(_In_ DWORD, _In_ HWND, _In_ LONG, _In_ LONG); +#endif +DWORD WINAPI OemKeyScan(_In_ WORD); + +BOOL +WINAPI +OemToCharA( + _In_ LPCSTR pSrc, + _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPSTR pDst); + +BOOL +WINAPI +OemToCharBuffA( + _In_ LPCSTR lpszSrc, + _Out_writes_(cchDstLength) LPSTR lpszDst, + _In_ DWORD cchDstLength); + +BOOL +WINAPI +OemToCharBuffW( + _In_ LPCSTR lpszSrc, + _Out_writes_(cchDstLength) LPWSTR lpszDst, + _In_ DWORD cchDstLength); + +BOOL +WINAPI +OemToCharW( + _In_ LPCSTR pSrc, + _Out_writes_(_Inexpressible_(strlen(pSrc) + 1)) LPWSTR pDst); + +BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int); +BOOL WINAPI OpenClipboard(_In_opt_ HWND); +HDESK WINAPI OpenDesktopA(_In_ LPCSTR, _In_ DWORD, _In_ BOOL, _In_ DWORD); +HDESK WINAPI OpenDesktopW(_In_ LPCWSTR, _In_ DWORD, _In_ BOOL, _In_ DWORD); +BOOL WINAPI OpenIcon(_In_ HWND); +HDESK WINAPI OpenInputDesktop(_In_ DWORD, _In_ BOOL, _In_ DWORD); +HWINSTA WINAPI OpenWindowStationA(_In_ LPCSTR, _In_ BOOL, _In_ DWORD); +HWINSTA WINAPI OpenWindowStationW(_In_ LPCWSTR, _In_ BOOL, _In_ DWORD); +BOOL WINAPI PaintDesktop(_In_ HDC); +BOOL WINAPI PeekMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT); +BOOL WINAPI PeekMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT); #define PostAppMessageA(t,m,w,l) PostThreadMessageA((DWORD)t,m,w,l) #define PostAppMessageW(t,m,w,l) PostThreadMessageW((DWORD)t,m,w,l) -BOOL WINAPI PostMessageA(HWND,UINT,WPARAM,LPARAM); -BOOL WINAPI PostMessageW(HWND,UINT,WPARAM,LPARAM); -void WINAPI PostQuitMessage(int); -BOOL WINAPI PostThreadMessageA(DWORD,UINT,WPARAM,LPARAM); -BOOL WINAPI PostThreadMessageW(DWORD,UINT,WPARAM,LPARAM); +BOOL WINAPI PostMessageA(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); + +__analysis_noreturn +void WINAPI PostQuitMessage(_In_ int); + +BOOL WINAPI PostThreadMessageA(_In_ DWORD, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +BOOL WINAPI PostThreadMessageW(_In_ DWORD, _In_ UINT, _In_ WPARAM, _In_ LPARAM); #if (_WIN32_WINNT >= 0x0501) -BOOL WINAPI PrintWindow(HWND,HDC,UINT); -#endif -UINT WINAPI PrivateExtractIconsA(LPCSTR,int,int,int,HICON*,UINT*,UINT,UINT); -UINT WINAPI PrivateExtractIconsW(LPCWSTR,int,int,int,HICON*,UINT*,UINT,UINT); +BOOL WINAPI PrintWindow(_In_ HWND, _In_ HDC, _In_ UINT); +#endif + +UINT +WINAPI +PrivateExtractIconsA( + _In_reads_(MAX_PATH) LPCSTR szFileName, + _In_ int nIconIndex, + _In_ int cxIcon, + _In_ int cyIcon, + _Out_writes_opt_(nIcons) HICON *phicon, + _Out_writes_opt_(nIcons) UINT *piconid, + _In_ UINT nIcons, + _In_ UINT flags); + +UINT +WINAPI +PrivateExtractIconsW( + _In_reads_(MAX_PATH) LPCWSTR szFileName, + _In_ int nIconIndex, + _In_ int cxIcon, + _In_ int cyIcon, + _Out_writes_opt_(nIcons) HICON *phicon, + _Out_writes_opt_(nIcons) UINT *piconid, + _In_ UINT nIcons, + _In_ UINT flags); + UINT WINAPI WINAPI PrivateExtractIconExA(LPCSTR,int,HICON*,HICON*,UINT); UINT WINAPI WINAPI PrivateExtractIconExW(LPCWSTR,int,HICON*,HICON*,UINT); -BOOL WINAPI PtInRect(LPCRECT,POINT); -HWND WINAPI RealChildWindowFromPoint(HWND,POINT); -UINT WINAPI RealGetWindowClassA(HWND,LPSTR,UINT); -UINT WINAPI RealGetWindowClassW(HWND,LPWSTR,UINT); -BOOL WINAPI RedrawWindow(HWND,LPCRECT,HRGN,UINT); -ATOM WINAPI RegisterClassA(CONST WNDCLASSA*); -ATOM WINAPI RegisterClassW(CONST WNDCLASSW*); -ATOM WINAPI RegisterClassExA(CONST WNDCLASSEXA*); -ATOM WINAPI RegisterClassExW(CONST WNDCLASSEXW*); +BOOL WINAPI PtInRect(_In_ LPCRECT, _In_ POINT); +HWND WINAPI RealChildWindowFromPoint(_In_ HWND, _In_ POINT); + +UINT +WINAPI +RealGetWindowClassA( + _In_ HWND hwnd, + _Out_writes_to_(cchClassNameMax, return) LPSTR ptszClassName, + _In_ UINT cchClassNameMax); + +UINT +WINAPI +RealGetWindowClassW( + _In_ HWND hwnd, + _Out_writes_to_(cchClassNameMax, return) LPWSTR ptszClassName, + _In_ UINT cchClassNameMax); + +BOOL WINAPI RedrawWindow(_In_opt_ HWND, _In_opt_ LPCRECT, _In_opt_ HRGN, _In_ UINT); +ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA*); +ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW*); +ATOM WINAPI RegisterClassExA(_In_ CONST WNDCLASSEXA*); +ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW*); #if(_WIN32_WINNT >= 0x0501) typedef BOOLEAN (WINAPI * PREGISTERCLASSNAMEW)(LPCWSTR); #endif -UINT WINAPI RegisterClipboardFormatA(LPCSTR); -UINT WINAPI RegisterClipboardFormatW(LPCWSTR); +UINT WINAPI RegisterClipboardFormatA(_In_ LPCSTR); +UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR); #if (WINVER >= 0x0500) -HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE,LPVOID,DWORD); -HDEVNOTIFY WINAPI RegisterDeviceNotificationW(HANDLE,LPVOID,DWORD); -#endif -BOOL WINAPI RegisterHotKey(HWND,int,UINT,UINT); +HDEVNOTIFY WINAPI RegisterDeviceNotificationA(_In_ HANDLE, _In_ LPVOID, _In_ DWORD); +HDEVNOTIFY WINAPI RegisterDeviceNotificationW(_In_ HANDLE, _In_ LPVOID, _In_ DWORD); +#endif +BOOL WINAPI RegisterHotKey(_In_opt_ HWND, _In_ int, _In_ UINT, _In_ UINT); BOOL WINAPI RegisterLogonProcess(DWORD,BOOL); + #if (_WIN32_WINNT >= 0x0501) -BOOL WINAPI RegisterRawInputDevices(PCRAWINPUTDEVICE,UINT,UINT); -#endif -BOOL WINAPI RegisterShellHookWindow(HWND); -UINT WINAPI RegisterWindowMessageA(LPCSTR); -UINT WINAPI RegisterWindowMessageW(LPCWSTR); +BOOL +WINAPI +RegisterRawInputDevices( + _In_reads_(uiNumDevices) PCRAWINPUTDEVICE pRawInputDevices, + _In_ UINT uiNumDevices, + _In_ UINT cbSize); +#endif + +BOOL WINAPI RegisterShellHookWindow(_In_ HWND); +UINT WINAPI RegisterWindowMessageA(_In_ LPCSTR); +UINT WINAPI RegisterWindowMessageW(_In_ LPCWSTR); BOOL WINAPI ReleaseCapture(void); -int WINAPI ReleaseDC(HWND,HDC); -BOOL WINAPI RemoveMenu(HMENU,UINT,UINT); -HANDLE WINAPI RemovePropA(HWND,LPCSTR); -HANDLE WINAPI RemovePropW(HWND,LPCWSTR); -BOOL WINAPI ReplyMessage(LRESULT); -BOOL WINAPI ScreenToClient(HWND,LPPOINT); +int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC); +BOOL WINAPI RemoveMenu(_In_ HMENU, _In_ UINT, _In_ UINT); +HANDLE WINAPI RemovePropA(_In_ HWND, _In_ LPCSTR); +HANDLE WINAPI RemovePropW(_In_ HWND, _In_ LPCWSTR); +BOOL WINAPI ReplyMessage(_In_ LRESULT); +BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT); VOID WINAPI ScrollChildren(HWND,UINT,WPARAM,LPARAM); -BOOL WINAPI ScrollDC(HDC,int,int,LPCRECT,LPCRECT,HRGN,LPRECT); -BOOL WINAPI ScrollWindow(HWND,int,int,LPCRECT,LPCRECT); -int WINAPI ScrollWindowEx(HWND,int,int,LPCRECT,LPCRECT,HRGN,LPRECT,UINT); -LRESULT WINAPI SendDlgItemMessageA(HWND,int,UINT,WPARAM,LPARAM); -LRESULT WINAPI SendDlgItemMessageW(HWND,int,UINT,WPARAM,LPARAM); +BOOL WINAPI ScrollDC(_In_ HDC, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT); +BOOL WINAPI ScrollWindow(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT); +int WINAPI ScrollWindowEx(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT, _In_ UINT); +LRESULT WINAPI SendDlgItemMessageA(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM); + #if (_WIN32_WINNT >= 0x0403) -UINT WINAPI SendInput(UINT,LPINPUT,int); -#endif -LRESULT WINAPI SendMessageA(HWND,UINT,WPARAM,LPARAM); -BOOL WINAPI SendMessageCallbackA(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR); -BOOL WINAPI SendMessageCallbackW(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR); -LRESULT WINAPI SendMessageTimeoutA(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR); -LRESULT WINAPI SendMessageTimeoutW(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR); -LRESULT WINAPI SendMessageW(HWND,UINT,WPARAM,LPARAM); -BOOL WINAPI SendNotifyMessageA(HWND,UINT,WPARAM,LPARAM); -BOOL WINAPI SendNotifyMessageW(HWND,UINT,WPARAM,LPARAM); -HWND WINAPI SetActiveWindow(HWND); -HWND WINAPI SetCapture(HWND hWnd); -BOOL WINAPI SetCaretBlinkTime(UINT); -BOOL WINAPI SetCaretPos(int,int); -DWORD WINAPI SetClassLongA(HWND,int,LONG); -DWORD WINAPI SetClassLongW(HWND,int,LONG); +UINT +WINAPI +SendInput( + _In_ UINT cInputs, + _In_reads_(cInputs) LPINPUT pInputs, + _In_ int cbSize); +#endif + +LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +BOOL WINAPI SendMessageCallbackA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ SENDASYNCPROC, _In_ ULONG_PTR); +BOOL WINAPI SendMessageCallbackW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ SENDASYNCPROC, _In_ ULONG_PTR); +LRESULT WINAPI SendMessageTimeoutA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ UINT, _In_ UINT, _Out_opt_ PDWORD_PTR); +LRESULT WINAPI SendMessageTimeoutW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM, _In_ UINT, _In_ UINT, _Out_opt_ PDWORD_PTR); +LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +BOOL WINAPI SendNotifyMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +BOOL WINAPI SendNotifyMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM); +HWND WINAPI SetActiveWindow(_In_ HWND); +HWND WINAPI SetCapture(_In_ HWND hWnd); +BOOL WINAPI SetCaretBlinkTime(_In_ UINT); +BOOL WINAPI SetCaretPos(_In_ int, _In_ int); +DWORD WINAPI SetClassLongA(_In_ HWND, _In_ int, _In_ LONG); +DWORD WINAPI SetClassLongW(_In_ HWND, _In_ int, _In_ LONG); #ifdef _WIN64 -ULONG_PTR WINAPI SetClassLongPtrA(HWND,INT,LONG_PTR); -ULONG_PTR WINAPI SetClassLongPtrW(HWND,INT,LONG_PTR); +ULONG_PTR WINAPI SetClassLongPtrA(_In_ HWND, _In_ INT, _In_ LONG_PTR); +ULONG_PTR WINAPI SetClassLongPtrW(_In_ HWND, _In_ INT, _In_ LONG_PTR); #else #define SetClassLongPtrA SetClassLongA #define SetClassLongPtrW SetClassLongW #endif -WORD WINAPI SetClassWord(HWND,int,WORD); -HANDLE WINAPI SetClipboardData(UINT,HANDLE); -HWND WINAPI SetClipboardViewer(HWND); -HCURSOR WINAPI SetCursor(HCURSOR); -BOOL WINAPI SetCursorPos(int,int); -VOID WINAPI SetDebugErrorLevel(DWORD); +WORD WINAPI SetClassWord(_In_ HWND, _In_ int, _In_ WORD); +HANDLE WINAPI SetClipboardData(_In_ UINT, _In_opt_ HANDLE); +HWND WINAPI SetClipboardViewer(_In_ HWND); +HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR); +BOOL WINAPI SetCursorPos(_In_ int, _In_ int); +VOID WINAPI SetDebugErrorLevel(_In_ DWORD); BOOL WINAPI SetDeskWallPaper(LPCSTR); -BOOL WINAPI SetDlgItemInt(HWND,int,UINT,BOOL); -BOOL WINAPI SetDlgItemTextA(HWND,int,LPCSTR); -BOOL WINAPI SetDlgItemTextW(HWND,int,LPCWSTR); -BOOL WINAPI SetDoubleClickTime(UINT); -HWND WINAPI SetFocus(HWND); -BOOL WINAPI SetForegroundWindow(HWND); -BOOL WINAPI SetKeyboardState(PBYTE); -BOOL WINAPI SetMenu(HWND,HMENU); -BOOL WINAPI SetMenuContextHelpId(HMENU,DWORD); -BOOL WINAPI SetMenuDefaultItem(HMENU,UINT,UINT); -BOOL WINAPI SetMenuInfo(HMENU,LPCMENUINFO); -BOOL WINAPI SetMenuItemBitmaps(HMENU,UINT,UINT,HBITMAP,HBITMAP); -BOOL WINAPI SetMenuItemInfoA(HMENU,UINT,BOOL,LPCMENUITEMINFOA); -BOOL WINAPI SetMenuItemInfoW( HMENU,UINT,BOOL,LPCMENUITEMINFOW); -LPARAM WINAPI SetMessageExtraInfo(LPARAM); -BOOL WINAPI SetMessageQueue(int); -HWND WINAPI SetParent(HWND,HWND); +BOOL WINAPI SetDlgItemInt(_In_ HWND, _In_ int, _In_ UINT, _In_ BOOL); +BOOL WINAPI SetDlgItemTextA(_In_ HWND, _In_ int, _In_ LPCSTR); +BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR); +BOOL WINAPI SetDoubleClickTime(_In_ UINT); +HWND WINAPI SetFocus(_In_opt_ HWND); +BOOL WINAPI SetForegroundWindow(_In_ HWND); +BOOL WINAPI SetKeyboardState(_In_reads_(256) LPBYTE); +BOOL WINAPI SetMenu(_In_ HWND, _In_opt_ HMENU); +BOOL WINAPI SetMenuContextHelpId(_In_ HMENU, _In_ DWORD); +BOOL WINAPI SetMenuDefaultItem(_In_ HMENU, _In_ UINT, _In_ UINT); +BOOL WINAPI SetMenuInfo(_In_ HMENU, _In_ LPCMENUINFO); +BOOL WINAPI SetMenuItemBitmaps(_In_ HMENU, _In_ UINT, _In_ UINT, _In_opt_ HBITMAP, _In_opt_ HBITMAP); +BOOL WINAPI SetMenuItemInfoA(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOA); +BOOL WINAPI SetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW); +LPARAM WINAPI SetMessageExtraInfo(_In_ LPARAM); +BOOL WINAPI SetMessageQueue(_In_ int); +HWND WINAPI SetParent(_In_ HWND, _In_opt_ HWND); #if (_WIN32_WINNT >= 0x0500) -BOOL WINAPI SetProcessDefaultLayout(DWORD); +BOOL WINAPI SetProcessDefaultLayout(_In_ DWORD); #endif /* (_WIN32_WINNT >= 0x0500) */ -BOOL WINAPI SetProcessWindowStation(HWINSTA); -BOOL WINAPI SetPropA(HWND,LPCSTR,HANDLE); -BOOL WINAPI SetPropW(HWND,LPCWSTR,HANDLE); -BOOL WINAPI SetRect(LPRECT,int,int,int,int); -BOOL WINAPI SetRectEmpty(LPRECT); -int WINAPI SetScrollInfo(HWND,int,LPCSCROLLINFO,BOOL); -int WINAPI SetScrollPos(HWND,int,int,BOOL); -BOOL WINAPI SetScrollRange(HWND,int,int,int,BOOL); -BOOL WINAPI SetSysColors(int,const INT *,const COLORREF *); +BOOL WINAPI SetProcessWindowStation(_In_ HWINSTA); +BOOL WINAPI SetPropA(_In_ HWND, _In_ LPCSTR, _In_opt_ HANDLE); +BOOL WINAPI SetPropW(_In_ HWND, _In_ LPCWSTR, _In_opt_ HANDLE); +BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int); +BOOL WINAPI SetRectEmpty(_Out_ LPRECT); +int WINAPI SetScrollInfo(_In_ HWND, _In_ int, _In_ LPCSCROLLINFO, _In_ BOOL); +int WINAPI SetScrollPos(_In_ HWND, _In_ int, _In_ int, _In_ BOOL); +BOOL WINAPI SetScrollRange(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ BOOL); + +BOOL +WINAPI +SetSysColors( + _In_ int cElements, + _In_reads_(cElements) CONST INT * lpaElements, + _In_reads_(cElements) CONST COLORREF * lpaRgbValues); + DWORD_PTR WINAPI SetSysColorsTemp(const COLORREF *, const HBRUSH *, DWORD_PTR); #define SetSysModalWindow(h) (NULL) -BOOL WINAPI SetSystemCursor(HCURSOR,DWORD); +BOOL WINAPI SetSystemCursor(_In_ HCURSOR, _In_ DWORD); BOOL WINAPI SetSystemMenu(HWND,HMENU); -BOOL WINAPI SetThreadDesktop(HDESK); -UINT_PTR WINAPI SetTimer(HWND,UINT_PTR,UINT,TIMERPROC); +BOOL WINAPI SetThreadDesktop(_In_ HDESK); +UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC); UINT_PTR WINAPI SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC); -BOOL WINAPI SetUserObjectInformationA(HANDLE,int,PVOID,DWORD); -BOOL WINAPI SetUserObjectInformationW(HANDLE,int,PVOID,DWORD); -BOOL WINAPI SetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR); + +BOOL +WINAPI +SetUserObjectInformationA( + _In_ HANDLE hObj, + _In_ int nIndex, + _In_reads_bytes_(nLength) PVOID pvInfo, + _In_ DWORD nLength); + +BOOL +WINAPI +SetUserObjectInformationW( + _In_ HANDLE hObj, + _In_ int nIndex, + _In_reads_bytes_(nLength) PVOID pvInfo, + _In_ DWORD nLength); + +BOOL WINAPI SetUserObjectSecurity(_In_ HANDLE, _In_ PSECURITY_INFORMATION, _In_ PSECURITY_DESCRIPTOR); #if (WINVER >= 0x0500) -HWINEVENTHOOK WINAPI SetWinEventHook(UINT,UINT,HMODULE,WINEVENTPROC,DWORD,DWORD,UINT); -#endif -BOOL WINAPI SetWindowContextHelpId(HWND,DWORD); -LONG WINAPI SetWindowLongA(HWND,int,LONG); -LONG WINAPI SetWindowLongW(HWND,int,LONG); +HWINEVENTHOOK WINAPI SetWinEventHook(_In_ UINT, _In_ UINT, _In_opt_ HMODULE, _In_ WINEVENTPROC, _In_ DWORD, _In_ DWORD, _In_ UINT); +#endif +BOOL WINAPI SetWindowContextHelpId(_In_ HWND, _In_ DWORD); +LONG WINAPI SetWindowLongA(_In_ HWND, _In_ int, _In_ LONG); +LONG WINAPI SetWindowLongW(_In_ HWND, _In_ int, _In_ LONG); #ifdef _WIN64 -LONG_PTR WINAPI SetWindowLongPtrA(HWND,int,LONG_PTR); -LONG_PTR WINAPI SetWindowLongPtrW(HWND,int,LONG_PTR); +LONG_PTR WINAPI SetWindowLongPtrA(_In_ HWND, _In_ int, _In_ LONG_PTR); +LONG_PTR WINAPI SetWindowLongPtrW(_In_ HWND, _In_ int, _In_ LONG_PTR); #else #define SetWindowLongPtrA SetWindowLongA #define SetWindowLongPtrW SetWindowLongW #endif -BOOL WINAPI SetWindowPlacement(HWND hWnd,const WINDOWPLACEMENT*); -BOOL WINAPI SetWindowPos(HWND,HWND,int,int,int,int,UINT); -int WINAPI SetWindowRgn(HWND,HRGN,BOOL); -HHOOK WINAPI SetWindowsHookA(int,HOOKPROC); -HHOOK WINAPI SetWindowsHookExA(int,HOOKPROC,HINSTANCE,DWORD); -HHOOK WINAPI SetWindowsHookExW(int,HOOKPROC,HINSTANCE,DWORD); -HHOOK WINAPI SetWindowsHookW(int,HOOKPROC); -BOOL WINAPI SetWindowTextA(HWND,LPCSTR); -BOOL WINAPI SetWindowTextW(HWND,LPCWSTR); -WORD WINAPI SetWindowWord(HWND,int,WORD); -BOOL WINAPI ShowCaret(HWND); -int WINAPI ShowCursor(BOOL); -BOOL WINAPI ShowOwnedPopups(HWND,BOOL); -BOOL WINAPI ShowScrollBar(HWND,int,BOOL); -BOOL WINAPI ShowWindow(HWND,int); -BOOL WINAPI ShowWindowAsync(HWND,int); -BOOL WINAPI SubtractRect(LPRECT,LPCRECT,LPCRECT); -BOOL WINAPI SwapMouseButton(BOOL); -BOOL WINAPI SwitchDesktop(HDESK); +BOOL WINAPI SetWindowPlacement(_In_ HWND hWnd, _In_ const WINDOWPLACEMENT*); +BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT); +int WINAPI SetWindowRgn(_In_ HWND, _In_opt_ HRGN, _In_ BOOL); +HHOOK WINAPI SetWindowsHookA(_In_ int, _In_ HOOKPROC); +HHOOK WINAPI SetWindowsHookW(_In_ int, _In_ HOOKPROC); +HHOOK WINAPI SetWindowsHookExA(_In_ int, _In_ HOOKPROC, _In_opt_ HINSTANCE, _In_ DWORD); +HHOOK WINAPI SetWindowsHookExW(_In_ int, _In_ HOOKPROC, _In_opt_ HINSTANCE, _In_ DWORD); +BOOL WINAPI SetWindowTextA(_In_ HWND, _In_opt_ LPCSTR); +BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR); +WORD WINAPI SetWindowWord(_In_ HWND, _In_ int, _In_ WORD); +BOOL WINAPI ShowCaret(_In_opt_ HWND); +int WINAPI ShowCursor(_In_ BOOL); +BOOL WINAPI ShowOwnedPopups(_In_ HWND, _In_ BOOL); +BOOL WINAPI ShowScrollBar(_In_ HWND, _In_ int, _In_ BOOL); +BOOL WINAPI ShowWindow(_In_ HWND, _In_ int); +BOOL WINAPI ShowWindowAsync(_In_ HWND, _In_ int); +BOOL WINAPI SubtractRect(_Out_ LPRECT, _In_ LPCRECT, _In_ LPCRECT); +BOOL WINAPI SwapMouseButton(_In_ BOOL); +BOOL WINAPI SwitchDesktop(_In_ HDESK); #if(_WIN32_WINNT >= 0x0500) -VOID WINAPI SwitchToThisWindow(HWND,BOOL); +VOID WINAPI SwitchToThisWindow(_In_ HWND, _In_ BOOL); #endif /* (_WIN32_WINNT >= 0x0500) */ -BOOL WINAPI SystemParametersInfoA(UINT,UINT,PVOID,UINT); -BOOL WINAPI SystemParametersInfoW(UINT,UINT,PVOID,UINT); -LONG WINAPI TabbedTextOutA(HDC,int,int,LPCSTR,int,int,CONST INT*,int); -LONG WINAPI TabbedTextOutW(HDC,int,int,LPCWSTR,int,int,CONST INT*,int); -WORD WINAPI TileWindows(HWND,UINT,LPCRECT,UINT,const HWND *); -int WINAPI ToAscii(UINT,UINT,CONST BYTE*,LPWORD,UINT); -int WINAPI ToAsciiEx(UINT,UINT,CONST BYTE*,LPWORD,UINT,HKL); -int WINAPI ToUnicode(UINT,UINT,CONST BYTE*,LPWSTR,int,UINT); -int WINAPI ToUnicodeEx(UINT,UINT,CONST BYTE*,LPWSTR,int,UINT,HKL); -BOOL WINAPI TrackMouseEvent(LPTRACKMOUSEEVENT); -BOOL WINAPI TrackPopupMenu(HMENU,UINT,int,int,int,HWND,LPCRECT); -BOOL WINAPI TrackPopupMenuEx(HMENU,UINT,int,int,HWND,LPTPMPARAMS); -int WINAPI TranslateAcceleratorA(HWND,HACCEL,LPMSG); -int WINAPI TranslateAcceleratorW(HWND,HACCEL,LPMSG); -BOOL WINAPI TranslateMDISysAccel(HWND,LPMSG); -BOOL WINAPI TranslateMessage(const MSG*); -BOOL WINAPI UnhookWindowsHook(int,HOOKPROC); -BOOL WINAPI UnhookWindowsHookEx(HHOOK); +BOOL WINAPI SystemParametersInfoA(_In_ UINT, _In_ UINT, _Inout_opt_ PVOID, _In_ UINT); +BOOL WINAPI SystemParametersInfoW(_In_ UINT, _In_ UINT, _Inout_opt_ PVOID, _In_ UINT); + +LONG +WINAPI +TabbedTextOutA( + _In_ HDC hdc, + _In_ int x, + _In_ int y, + _In_reads_(chCount) LPCSTR lpString, + _In_ int chCount, + _In_ int nTabPositions, + _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions, + _In_ int nTabOrigin); + +LONG +WINAPI +TabbedTextOutW( + _In_ HDC hdc, + _In_ int x, + _In_ int y, + _In_reads_(chCount) LPCWSTR lpString, + _In_ int chCount, + _In_ int nTabPositions, + _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions, + _In_ int nTabOrigin); + +WORD +WINAPI +TileWindows( + _In_opt_ HWND hwndParent, + _In_ UINT wHow, + _In_opt_ CONST RECT * lpRect, + _In_ UINT cKids, + _In_reads_opt_(cKids) const HWND FAR *lpKids); + +int WINAPI ToAscii(_In_ UINT, _In_ UINT, _In_reads_opt_(256) CONST BYTE*, _Out_ LPWORD, _In_ UINT); +int WINAPI ToAsciiEx(_In_ UINT, _In_ UINT, _In_reads_opt_(256) CONST BYTE*, _Out_ LPWORD, _In_ UINT, _In_opt_ HKL); + +int +WINAPI +ToUnicode( + _In_ UINT wVirtKey, + _In_ UINT wScanCode, + _In_reads_bytes_opt_(256) CONST BYTE *lpKeyState, + _Out_writes_(cchBuff) LPWSTR pwszBuff, + _In_ int cchBuff, + _In_ UINT wFlags); + +int +WINAPI +ToUnicodeEx( + _In_ UINT wVirtKey, + _In_ UINT wScanCode, + _In_reads_bytes_(256) CONST BYTE *lpKeyState, + _Out_writes_(cchBuff) LPWSTR pwszBuff, + _In_ int cchBuff, + _In_ UINT wFlags, + _In_opt_ HKL dwhkl); + +BOOL WINAPI TrackMouseEvent(_Inout_ LPTRACKMOUSEEVENT); +BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT); +BOOL WINAPI TrackPopupMenuEx(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _In_ HWND, _In_opt_ LPTPMPARAMS); +int WINAPI TranslateAcceleratorA(_In_ HWND, _In_ HACCEL, _In_ LPMSG); +int WINAPI TranslateAcceleratorW(_In_ HWND, _In_ HACCEL, _In_ LPMSG); +BOOL WINAPI TranslateMDISysAccel(_In_ HWND, _In_ LPMSG); +BOOL WINAPI TranslateMessage(_In_ const MSG*); +BOOL WINAPI UnhookWindowsHook(_In_ int, _In_ HOOKPROC); +BOOL WINAPI UnhookWindowsHookEx(_In_ HHOOK); #if (WINVER >= 0x0500) -BOOL WINAPI UnhookWinEvent(HWINEVENTHOOK); -#endif -BOOL WINAPI UnionRect(LPRECT,LPCRECT,LPCRECT); -BOOL WINAPI UnloadKeyboardLayout(HKL); -BOOL WINAPI UnregisterClassA(LPCSTR,HINSTANCE); -BOOL WINAPI UnregisterClassW(LPCWSTR,HINSTANCE); -BOOL WINAPI UnregisterHotKey(HWND,int); -BOOL WINAPI UpdateWindow(HWND); +BOOL WINAPI UnhookWinEvent(_In_ HWINEVENTHOOK); +#endif +BOOL WINAPI UnionRect(_Out_ LPRECT, _In_ LPCRECT, _In_ LPCRECT); +BOOL WINAPI UnloadKeyboardLayout(_In_ HKL); +BOOL WINAPI UnregisterClassA(_In_ LPCSTR,HINSTANCE); +BOOL WINAPI UnregisterClassW(_In_ LPCWSTR,HINSTANCE); +BOOL WINAPI UnregisterHotKey(_In_opt_ HWND, _In_ int); +BOOL WINAPI UpdateWindow(_In_ HWND); #if (_WIN32_WINNT >= 0x0500) -BOOL WINAPI UserHandleGrantAccess(HANDLE,HANDLE,BOOL); -#endif -BOOL WINAPI ValidateRect(HWND,LPCRECT); -BOOL WINAPI ValidateRgn(HWND,HRGN); -SHORT WINAPI VkKeyScanA(CHAR); -SHORT WINAPI VkKeyScanExA(CHAR,HKL); -SHORT WINAPI VkKeyScanExW(WCHAR,HKL); -SHORT WINAPI VkKeyScanW(WCHAR); -DWORD WINAPI WaitForInputIdle(HANDLE,DWORD); +BOOL WINAPI UserHandleGrantAccess(_In_ HANDLE, _In_ HANDLE, _In_ BOOL); +#endif +BOOL WINAPI ValidateRect(_In_opt_ HWND, _In_opt_ LPCRECT); +BOOL WINAPI ValidateRgn(_In_ HWND, _In_opt_ HRGN); +SHORT WINAPI VkKeyScanA(_In_ CHAR); +SHORT WINAPI VkKeyScanExA(_In_ CHAR, _In_ HKL); +SHORT WINAPI VkKeyScanExW(_In_ WCHAR, _In_ HKL); +SHORT WINAPI VkKeyScanW(_In_ WCHAR); +DWORD WINAPI WaitForInputIdle(_In_ HANDLE, _In_ DWORD); BOOL WINAPI WaitMessage(void); -HWND WINAPI WindowFromDC(HDC hDC); +HWND WINAPI WindowFromDC(_In_ HDC hDC); #if (_WIN32_WINNT >= 0x0600) -HWND WINAPI WindowFromPhysicalPoint(POINT); -#endif -HWND WINAPI WindowFromPoint(POINT); +HWND WINAPI WindowFromPhysicalPoint(_In_ POINT); +#endif +HWND WINAPI WindowFromPoint(_In_ POINT); UINT WINAPI WinExec(LPCSTR,UINT); -BOOL WINAPI WinHelpA(HWND,LPCSTR,UINT,ULONG_PTR); -BOOL WINAPI WinHelpW(HWND,LPCWSTR,UINT,ULONG_PTR); -int WINAPIV wsprintfA(LPSTR,LPCSTR,...); -int WINAPIV wsprintfW(LPWSTR,LPCWSTR,...); -int WINAPI wvsprintfA(LPSTR,LPCSTR,va_list arglist); -int WINAPI wvsprintfW(LPWSTR,LPCWSTR,va_list arglist); +BOOL WINAPI WinHelpA(_In_opt_ HWND, _In_opt_ LPCSTR, _In_ UINT, _In_ ULONG_PTR); +BOOL WINAPI WinHelpW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_ UINT, _In_ ULONG_PTR); + +int +WINAPIV +wsprintfA( + _Out_ LPSTR, + _In_ _Printf_format_string_ LPCSTR, + ...); + +int +WINAPIV +wsprintfW( + _Out_ LPWSTR, + _In_ _Printf_format_string_ LPCWSTR, + ...); + +int +WINAPI +wvsprintfA( + _Out_ LPSTR, + _In_ _Printf_format_string_ LPCSTR, + _In_ va_list arglist); + +int +WINAPI +wvsprintfW( + _Out_ LPWSTR, + _In_ _Printf_format_string_ LPCWSTR, + _In_ va_list arglist); + #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0490) -BOOL WINAPI AllowSetForegroundWindow(DWORD); -BOOL WINAPI LockSetForegroundWindow(UINT); +BOOL WINAPI AllowSetForegroundWindow(_In_ DWORD); +BOOL WINAPI LockSetForegroundWindow(_In_ UINT); #endif #if (_WIN32_WINNT >= 0x0500) -BOOL WINAPI SetLayeredWindowAttributes(HWND,COLORREF,BYTE,DWORD); + +BOOL WINAPI SetLayeredWindowAttributes(_In_ HWND, _In_ COLORREF, _In_ BYTE, _In_ DWORD); + #if defined(_WINGDI_) && !defined(NOGDI) -BOOL WINAPI UpdateLayeredWindow(HWND,HDC,POINT*,SIZE*,HDC,POINT*,COLORREF,BLENDFUNCTION*,DWORD); -typedef struct tagUPDATELAYEREDWINDOWINFO -{ - DWORD cbSize; - HDC hdcDst; - POINT CONST* pptDst; - SIZE CONST* psize; - HDC hdcSrc; - POINT CONST* pptSrc; - COLORREF crKey; - BLENDFUNCTION CONST* pblend; - DWORD dwFlags; - RECT CONST* prcDirty; + +BOOL +WINAPI +UpdateLayeredWindow( + _In_ HWND hWnd, + _In_opt_ HDC hdcDst, + _In_opt_ POINT* pptDst, + _In_opt_ SIZE* psize, + _In_opt_ HDC hdcSrc, + _In_opt_ POINT* pptSrc, + _In_ COLORREF crKey, + _In_opt_ BLENDFUNCTION* pblend, + _In_ DWORD dwFlags); + +typedef struct tagUPDATELAYEREDWINDOWINFO { + DWORD cbSize; + HDC hdcDst; + POINT CONST* pptDst; + SIZE CONST* psize; + HDC hdcSrc; + POINT CONST* pptSrc; + COLORREF crKey; + BLENDFUNCTION CONST* pblend; + DWORD dwFlags; + RECT CONST* prcDirty; } UPDATELAYEREDWINDOWINFO, *PUPDATELAYEREDWINDOWINFO; -BOOL WINAPI UpdateLayeredWindowIndirect(HWND,UPDATELAYEREDWINDOWINFO CONST*); -#endif -#endif + +BOOL WINAPI UpdateLayeredWindowIndirect(_In_ HWND, _In_ const UPDATELAYEREDWINDOWINFO*); + +#endif /* defined(_WINGDI_) && !defined(NOGDI) */ + +#endif /* (_WIN32_WINNT >= 0x0500) */ + #if (_WIN32_WINNT >= 0x0501) -BOOL WINAPI GetLayeredWindowAttributes(HWND,COLORREF*,BYTE*,DWORD*); +BOOL WINAPI GetLayeredWindowAttributes(_In_ HWND, _Out_opt_ COLORREF*, _Out_opt_ BYTE*, _Out_opt_ DWORD*); #endif #ifdef UNICODE #define EDITWORDBREAKPROC EDITWORDBREAKPROCW
12 years, 11 months
1
0
0
0
[akhaldi] 55104: [CABINET_WINETEST] * Sync to Wine 1.3.37.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 15:12:57 2012 New Revision: 55104 URL:
http://svn.reactos.org/svn/reactos?rev=55104&view=rev
Log: [CABINET_WINETEST] * Sync to Wine 1.3.37. Modified: trunk/rostests/winetests/cabinet/extract.c trunk/rostests/winetests/cabinet/fdi.c Modified: trunk/rostests/winetests/cabinet/extract.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/cabinet/extract…
============================================================================== --- trunk/rostests/winetests/cabinet/extract.c [iso-8859-1] (original) +++ trunk/rostests/winetests/cabinet/extract.c [iso-8859-1] Mon Jan 23 15:12:57 2012 @@ -55,10 +55,10 @@ } SESSION; /* function pointers */ -HMODULE hCabinet; +static HMODULE hCabinet; static HRESULT (WINAPI *pExtract)(SESSION*, LPCSTR); -CHAR CURR_DIR[MAX_PATH]; +static CHAR CURR_DIR[MAX_PATH]; static void init_function_pointers(void) { Modified: trunk/rostests/winetests/cabinet/fdi.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/cabinet/fdi.c?r…
============================================================================== --- trunk/rostests/winetests/cabinet/fdi.c [iso-8859-1] (original) +++ trunk/rostests/winetests/cabinet/fdi.c [iso-8859-1] Mon Jan 23 15:12:57 2012 @@ -28,7 +28,7 @@ #define MEDIA_SIZE 999999999 #define FOLDER_THRESHOLD 900000 -CHAR CURR_DIR[MAX_PATH]; +static CHAR CURR_DIR[MAX_PATH]; /* FDI callbacks */ @@ -100,106 +100,106 @@ if (0) { SetLastError(0xdeadbeef); - erf.erfOper = 0xcafefeed; - erf.erfType = 0xdeadbabe; - erf.fError = 0xdecaface; + erf.erfOper = 0x1abe11ed; + erf.erfType = 0x5eed1e55; + erf.fError = 0x1ead1e55; hfdi = FDICreate(fdi_alloc, NULL, fdi_open, fdi_read, fdi_write, fdi_close, fdi_seek, cpuUNKNOWN, &erf); ok(hfdi != NULL, "Expected non-NULL context\n"); ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError()); - ok(erf.erfOper == 0xcafefeed, "Expected 0xcafefeed, got %d\n", erf.erfOper); - ok(erf.erfType == 0xdeadbabe, "Expected 0xdeadbabe, got %d\n", erf.erfType); - ok(erf.fError == 0xdecaface, "Expected 0xdecaface, got %d\n", erf.fError); + ok(erf.erfOper == 0x1abe11ed, "Expected 0x1abe11ed, got %d\n", erf.erfOper); + ok(erf.erfType == 0x5eed1e55, "Expected 0x5eed1e55, got %d\n", erf.erfType); + ok(erf.fError == 0x1ead1e55, "Expected 0x1ead1e55, got %d\n", erf.fError); FDIDestroy(hfdi); } SetLastError(0xdeadbeef); - erf.erfOper = 0xcafefeed; - erf.erfType = 0xdeadbabe; - erf.fError = 0xdecaface; + erf.erfOper = 0x1abe11ed; + erf.erfType = 0x5eed1e55; + erf.fError = 0x1ead1e55; hfdi = FDICreate(fdi_alloc, fdi_free, NULL, fdi_read, fdi_write, fdi_close, fdi_seek, cpuUNKNOWN, &erf); ok(hfdi != NULL, "Expected non-NULL context\n"); ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError()); - ok((erf.erfOper == 0xcafefeed || erf.erfOper == 0 /* Vista */), "Expected 0xcafefeed or 0, got %d\n", erf.erfOper); - ok((erf.erfType == 0xdeadbabe || erf.erfType == 0 /* Vista */), "Expected 0xdeadbabe or 0, got %d\n", erf.erfType); - ok((erf.fError == 0xdecaface || erf.fError == 0 /* Vista */), "Expected 0xdecaface or 0, got %d\n", erf.fError); - - FDIDestroy(hfdi); - - SetLastError(0xdeadbeef); - erf.erfOper = 0xcafefeed; - erf.erfType = 0xdeadbabe; - erf.fError = 0xdecaface; + ok((erf.erfOper == 0x1abe11ed || erf.erfOper == 0 /* Vista */), "Expected 0x1abe11ed or 0, got %d\n", erf.erfOper); + ok((erf.erfType == 0x5eed1e55 || erf.erfType == 0 /* Vista */), "Expected 0x5eed1e55 or 0, got %d\n", erf.erfType); + ok((erf.fError == 0x1ead1e55 || erf.fError == 0 /* Vista */), "Expected 0x1ead1e55 or 0, got %d\n", erf.fError); + + FDIDestroy(hfdi); + + SetLastError(0xdeadbeef); + erf.erfOper = 0x1abe11ed; + erf.erfType = 0x5eed1e55; + erf.fError = 0x1ead1e55; hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, NULL, fdi_write, fdi_close, fdi_seek, cpuUNKNOWN, &erf); ok(hfdi != NULL, "Expected non-NULL context\n"); ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError()); - ok((erf.erfOper == 0xcafefeed || erf.erfOper == 0 /* Vista */), "Expected 0xcafefeed or 0, got %d\n", erf.erfOper); - ok((erf.erfType == 0xdeadbabe || erf.erfType == 0 /* Vista */), "Expected 0xdeadbabe or 0, got %d\n", erf.erfType); - ok((erf.fError == 0xdecaface || erf.fError == 0 /* Vista */), "Expected 0xdecaface or 0, got %d\n", erf.fError); - - FDIDestroy(hfdi); - - SetLastError(0xdeadbeef); - erf.erfOper = 0xcafefeed; - erf.erfType = 0xdeadbabe; - erf.fError = 0xdecaface; + ok((erf.erfOper == 0x1abe11ed || erf.erfOper == 0 /* Vista */), "Expected 0x1abe11ed or 0, got %d\n", erf.erfOper); + ok((erf.erfType == 0x5eed1e55 || erf.erfType == 0 /* Vista */), "Expected 0x5eed1e55 or 0, got %d\n", erf.erfType); + ok((erf.fError == 0x1ead1e55 || erf.fError == 0 /* Vista */), "Expected 0x1ead1e55 or 0, got %d\n", erf.fError); + + FDIDestroy(hfdi); + + SetLastError(0xdeadbeef); + erf.erfOper = 0x1abe11ed; + erf.erfType = 0x5eed1e55; + erf.fError = 0x1ead1e55; hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read, NULL, fdi_close, fdi_seek, cpuUNKNOWN, &erf); ok(hfdi != NULL, "Expected non-NULL context\n"); ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError()); - ok((erf.erfOper == 0xcafefeed || erf.erfOper == 0 /* Vista */), "Expected 0xcafefeed or 0, got %d\n", erf.erfOper); - ok((erf.erfType == 0xdeadbabe || erf.erfType == 0 /* Vista */), "Expected 0xdeadbabe or 0, got %d\n", erf.erfType); - ok((erf.fError == 0xdecaface || erf.fError == 0 /* Vista */), "Expected 0xdecaface or 0, got %d\n", erf.fError); - - FDIDestroy(hfdi); - - SetLastError(0xdeadbeef); - erf.erfOper = 0xcafefeed; - erf.erfType = 0xdeadbabe; - erf.fError = 0xdecaface; + ok((erf.erfOper == 0x1abe11ed || erf.erfOper == 0 /* Vista */), "Expected 0x1abe11ed or 0, got %d\n", erf.erfOper); + ok((erf.erfType == 0x5eed1e55 || erf.erfType == 0 /* Vista */), "Expected 0x5eed1e55 or 0, got %d\n", erf.erfType); + ok((erf.fError == 0x1ead1e55 || erf.fError == 0 /* Vista */), "Expected 0x1ead1e55 or 0, got %d\n", erf.fError); + + FDIDestroy(hfdi); + + SetLastError(0xdeadbeef); + erf.erfOper = 0x1abe11ed; + erf.erfType = 0x5eed1e55; + erf.fError = 0x1ead1e55; hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read, fdi_write, NULL, fdi_seek, cpuUNKNOWN, &erf); ok(hfdi != NULL, "Expected non-NULL context\n"); ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError()); - ok((erf.erfOper == 0xcafefeed || erf.erfOper == 0 /* Vista */), "Expected 0xcafefeed or 0, got %d\n", erf.erfOper); - ok((erf.erfType == 0xdeadbabe || erf.erfType == 0 /* Vista */), "Expected 0xdeadbabe or 0, got %d\n", erf.erfType); - ok((erf.fError == 0xdecaface || erf.fError == 0 /* Vista */), "Expected 0xdecaface or 0, got %d\n", erf.fError); - - FDIDestroy(hfdi); - - SetLastError(0xdeadbeef); - erf.erfOper = 0xcafefeed; - erf.erfType = 0xdeadbabe; - erf.fError = 0xdecaface; + ok((erf.erfOper == 0x1abe11ed || erf.erfOper == 0 /* Vista */), "Expected 0x1abe11ed or 0, got %d\n", erf.erfOper); + ok((erf.erfType == 0x5eed1e55 || erf.erfType == 0 /* Vista */), "Expected 0x5eed1e55 or 0, got %d\n", erf.erfType); + ok((erf.fError == 0x1ead1e55 || erf.fError == 0 /* Vista */), "Expected 0x1ead1e55 or 0, got %d\n", erf.fError); + + FDIDestroy(hfdi); + + SetLastError(0xdeadbeef); + erf.erfOper = 0x1abe11ed; + erf.erfType = 0x5eed1e55; + erf.fError = 0x1ead1e55; hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read, fdi_write, fdi_close, NULL, cpuUNKNOWN, &erf); ok(hfdi != NULL, "Expected non-NULL context\n"); ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError()); - ok((erf.erfOper == 0xcafefeed || erf.erfOper == 0 /* Vista */), "Expected 0xcafefeed or 0, got %d\n", erf.erfOper); - ok((erf.erfType == 0xdeadbabe || erf.erfType == 0 /* Vista */), "Expected 0xdeadbabe or 0, got %d\n", erf.erfType); - ok((erf.fError == 0xdecaface || erf.fError == 0 /* Vista */), "Expected 0xdecaface or 0, got %d\n", erf.fError); - - FDIDestroy(hfdi); - - SetLastError(0xdeadbeef); - erf.erfOper = 0xcafefeed; - erf.erfType = 0xdeadbabe; - erf.fError = 0xdecaface; + ok((erf.erfOper == 0x1abe11ed || erf.erfOper == 0 /* Vista */), "Expected 0x1abe11ed or 0, got %d\n", erf.erfOper); + ok((erf.erfType == 0x5eed1e55 || erf.erfType == 0 /* Vista */), "Expected 0x5eed1e55 or 0, got %d\n", erf.erfType); + ok((erf.fError == 0x1ead1e55 || erf.fError == 0 /* Vista */), "Expected 0x1ead1e55 or 0, got %d\n", erf.fError); + + FDIDestroy(hfdi); + + SetLastError(0xdeadbeef); + erf.erfOper = 0x1abe11ed; + erf.erfType = 0x5eed1e55; + erf.fError = 0x1ead1e55; hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read, fdi_write, fdi_close, fdi_seek, cpuUNKNOWN, NULL); @@ -212,26 +212,26 @@ /* bad cpu type */ SetLastError(0xdeadbeef); - erf.erfOper = 0xcafefeed; - erf.erfType = 0xdeadbabe; - erf.fError = 0xdecaface; + erf.erfOper = 0x1abe11ed; + erf.erfType = 0x5eed1e55; + erf.fError = 0x1ead1e55; hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read, fdi_write, fdi_close, fdi_seek, 0xcafebabe, &erf); ok(hfdi != NULL, "Expected non-NULL context\n"); ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError()); - ok((erf.erfOper == 0xcafefeed || erf.erfOper == 0 /* Vista */), "Expected 0xcafefeed or 0, got %d\n", erf.erfOper); - ok((erf.erfType == 0xdeadbabe || erf.erfType == 0 /* Vista */), "Expected 0xdeadbabe or 0, got %d\n", erf.erfType); - ok((erf.fError == 0xdecaface || erf.fError == 0 /* Vista */), "Expected 0xdecaface or 0, got %d\n", erf.fError); + ok((erf.erfOper == 0x1abe11ed || erf.erfOper == 0 /* Vista */), "Expected 0x1abe11ed or 0, got %d\n", erf.erfOper); + ok((erf.erfType == 0x5eed1e55 || erf.erfType == 0 /* Vista */), "Expected 0x5eed1e55 or 0, got %d\n", erf.erfType); + ok((erf.fError == 0x1ead1e55 || erf.fError == 0 /* Vista */), "Expected 0x1ead1e55 or 0, got %d\n", erf.fError); FDIDestroy(hfdi); /* pfnalloc fails */ SetLastError(0xdeadbeef); - erf.erfOper = 0xcafefeed; - erf.erfType = 0xdeadbabe; - erf.fError = 0xdecaface; + erf.erfOper = 0x1abe11ed; + erf.erfType = 0x5eed1e55; + erf.fError = 0x1ead1e55; hfdi = FDICreate(fdi_alloc_bad, fdi_free, fdi_open, fdi_read, fdi_write, fdi_close, fdi_seek, cpuUNKNOWN, &erf); @@ -239,12 +239,9 @@ ok(erf.erfOper == FDIERROR_ALLOC_FAIL, "Expected FDIERROR_ALLOC_FAIL, got %d\n", erf.erfOper); ok(erf.fError == TRUE, "Expected TRUE, got %d\n", erf.fError); - todo_wine - { - ok(GetLastError() == 0xdeadbeef, - "Expected 0xdeadbeef, got %d\n", GetLastError()); - ok(erf.erfType == 0, "Expected 0, got %d\n", erf.erfType); - } + ok(GetLastError() == 0xdeadbeef, + "Expected 0xdeadbeef, got %d\n", GetLastError()); + ok(erf.erfType == 0, "Expected 0, got %d\n", erf.erfType); } static void test_FDIDestroy(void) @@ -581,11 +578,8 @@ ok(cabinfo.cFiles == 4, "Expected 4, got %d\n", cabinfo.cFiles); ok(cabinfo.cFolders == 1, "Expected 1, got %d\n", cabinfo.cFolders); ok(cabinfo.setID == 0xbeef, "Expected 0xbeef, got %d\n", cabinfo.setID); - todo_wine - { - ok(cabinfo.cbCabinet == 182, "Expected 182, got %d\n", cabinfo.cbCabinet); - ok(cabinfo.iCabinet == 0, "Expected 0, got %d\n", cabinfo.iCabinet); - } + ok(cabinfo.cbCabinet == 182, "Expected 182, got %d\n", cabinfo.cbCabinet); + ok(cabinfo.iCabinet == 0, "Expected 0, got %d\n", cabinfo.iCabinet); fdi_close(fd); FDIDestroy(hfdi); @@ -631,11 +625,8 @@ SetLastError(0xdeadbeef); ret = FDICopy(hfdi, name, path, 0, CopyProgress, NULL, 0); ok(ret == FALSE, "Expected FALSE, got %d\n", ret); - todo_wine - { - ok(GetLastError() == ERROR_INVALID_HANDLE, - "Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError()); - } + ok(GetLastError() == ERROR_INVALID_HANDLE, + "Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError()); FDIDestroy(hfdi); } @@ -651,7 +642,6 @@ /* cabinet with no files or folders */ SetLastError(0xdeadbeef); ret = FDICopy(hfdi, name, path, 0, CopyProgress, NULL, 0); - todo_wine ok(ret == TRUE, "Expected TRUE, got %d\n", ret); ok(GetLastError() == 0, "Expected 0f, got %d\n", GetLastError());
12 years, 11 months
1
0
0
0
[akhaldi] 55103: [CABINET] * Sync to Wine 1.3.37.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 15:12:50 2012 New Revision: 55103 URL:
http://svn.reactos.org/svn/reactos?rev=55103&view=rev
Log: [CABINET] * Sync to Wine 1.3.37. Modified: trunk/reactos/dll/win32/cabinet/CMakeLists.txt trunk/reactos/dll/win32/cabinet/cabinet.h trunk/reactos/dll/win32/cabinet/cabinet.rbuild trunk/reactos/dll/win32/cabinet/cabinet_main.c trunk/reactos/dll/win32/cabinet/fci.c trunk/reactos/dll/win32/cabinet/fdi.c trunk/reactos/media/doc/README.WINE [This mail would be too long, it was shortened to contain the URLs only.] Modified: trunk/reactos/dll/win32/cabinet/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/cabinet/CMakeLis…
Modified: trunk/reactos/dll/win32/cabinet/cabinet.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/cabinet/cabinet.…
Modified: trunk/reactos/dll/win32/cabinet/cabinet.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/cabinet/cabinet.…
Modified: trunk/reactos/dll/win32/cabinet/cabinet_main.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/cabinet/cabinet_…
Modified: trunk/reactos/dll/win32/cabinet/fci.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/cabinet/fci.c?re…
Modified: trunk/reactos/dll/win32/cabinet/fdi.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/cabinet/fdi.c?re…
Modified: trunk/reactos/media/doc/README.WINE URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
12 years, 11 months
1
0
0
0
[akhaldi] 55102: [PSDK] * Update wincrypt.h from Wine.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 14:07:25 2012 New Revision: 55102 URL:
http://svn.reactos.org/svn/reactos?rev=55102&view=rev
Log: [PSDK] * Update wincrypt.h from Wine. Modified: trunk/reactos/include/psdk/wincrypt.h Modified: trunk/reactos/include/psdk/wincrypt.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/wincrypt.h?re…
============================================================================== --- trunk/reactos/include/psdk/wincrypt.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/wincrypt.h [iso-8859-1] Mon Jan 23 14:07:25 2012 @@ -21,9 +21,6 @@ #ifndef __WINE_WINCRYPT_H #define __WINE_WINCRYPT_H -#include <bcrypt.h> -/* FIXME: #include <ncrypt.h> */ - #ifdef __cplusplus extern "C" { #endif @@ -32,6 +29,9 @@ #pragma warning(push) #pragma warning(disable:4201) #endif + +#include <bcrypt.h> +/* FIXME: #include <ncrypt.h> */ #ifdef _ADVAPI32_ # define WINADVAPI @@ -598,7 +598,7 @@ typedef struct _CERT_KEYGEN_REQUEST_INFO { DWORD dwVersion; - CERT_PUBLIC_KEY_INFO SubjectPubliceKeyInfo; + CERT_PUBLIC_KEY_INFO SubjectPublicKeyInfo; LPWSTR pwszChallengeString; } CERT_KEYGEN_REQUEST_INFO, *PCERT_KEYGEN_REQUEST_INFO; @@ -688,8 +688,13 @@ typedef struct _VTableProvStruc { DWORD Version; - FARPROC pFuncVerifyImage; - FARPROC pFuncReturnhWnd; +#ifdef WINE_STRICT_PROTOTYPES + BOOL (WINAPI *FuncVerifyImage)(LPCSTR,BYTE*); + void (WINAPI *FuncReturnhWnd)(HWND*); +#else + FARPROC FuncVerifyImage; + FARPROC FuncReturnhWnd; +#endif DWORD dwProvType; BYTE *pbContextInfo; DWORD cbContextInfo; @@ -832,6 +837,12 @@ #define CERT_VERIFY_NO_TIME_CHECK_FLAG 0x4 #define CERT_VERIFY_ALLOW_MORE_USAGE_FLAG 0x8 #define CERT_VERIFY_UPDATED_CTL_FLAG 0x1 + +typedef struct _CERT_CHAIN { + DWORD cCerts; + PCERT_BLOB certs; + CRYPT_KEY_PROV_INFO keyLocatorInfo; +} CERT_CHAIN, *PCERT_CHAIN; typedef struct _CERT_REVOCATION_STATUS { DWORD cbSize; @@ -867,6 +878,8 @@ #define CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT 0x00008000 #define CERT_TRUST_IS_OFFLINE_REVOCATION 0x01000000 #define CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY 0x02000000 +#define CERT_TRUST_IS_EXPLICIT_DISTRUST 0x04000000 +#define CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT 0x08000000 #define CERT_TRUST_IS_PARTIAL_CHAIN 0x00010000 #define CERT_TRUST_CTL_IS_NOT_TIME_VALID 0x00020000 @@ -881,6 +894,8 @@ #define CERT_TRUST_HAS_PREFERRED_ISSUER 0x00000100 #define CERT_TRUST_HAS_ISSUANCE_CHAIN_POLICY 0x00000200 #define CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS 0x00000400 +#define CERT_TRUST_IS_PEER_TRUSTED 0x00000800 +#define CERT_TRUST_HAS_CRL_VALIDITY_EXTENDED 0x00001000 #define CERT_TRUST_IS_COMPLEX_CHAIN 0x00010000 @@ -971,9 +986,11 @@ CERT_CHAIN_POLICY_IGNORE_CA_REV_UNKNOWN_FLAG \ CERT_CHAIN_POLICY_IGNORE_ROOT_REV_UNKNOWN_FLAG ) -#define CERT_CHAIN_POLICY_TRUST_TESTROOT_FLAG 0x00004000 -#define CERT_CHAIN_POLICY_ALLOW_TESTROOT_FLAG 0x00008000 -#define MICROSOFT_ROOT_CERT_CHAIN_POLICY_ENABLE_TEST_ROOT_FLAG 0x00010000 +#define CERT_CHAIN_POLICY_IGNORE_PEER_TRUST_FLAG 0x00001000 +#define CERT_CHAIN_POLICY_IGNORE_NOT_SUPPORTED_CRITICAL_EXT_FLAG 0x00002000 +#define CERT_CHAIN_POLICY_TRUST_TESTROOT_FLAG 0x00004000 +#define CERT_CHAIN_POLICY_ALLOW_TESTROOT_FLAG 0x00008000 +#define MICROSOFT_ROOT_CERT_CHAIN_POLICY_ENABLE_TEST_ROOT_FLAG 0x00010000 typedef struct _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA { DWORD cbSize; @@ -2273,6 +2290,9 @@ "CertDllVerifyCertificateChainPolicy" #define URL_OID_GET_OBJECT_URL_FUNC "UrlDllGetObjectUrl" #define TIME_VALID_OID_GET_OBJECT_FUNC "TimeValidDllGetObject" +#define CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC "CryptMsgDllGenContentEncryptKey" +#define CMSG_OID_EXPORT_KEY_TRANS_FUNC "CryptMsgDllExportKeyTrans" +#define CMSG_OID_IMPORT_KEY_TRANS_FUNC "CryptMsgDllImportKeyTrans" #define CRYPT_OID_REGPATH "Software\\Microsoft\\Cryptography\\OID" #define CRYPT_OID_REG_ENCODING_TYPE_PREFIX "EncodingType " @@ -3007,7 +3027,12 @@ #define szOID_AUTO_ENROLL_CTL_USAGE "1.3.6.1.4.1.311.20.1" #define szOID_ENROLL_CERTTYPE_EXTENSION "1.3.6.1.4.1.311.20.2" #define szOID_ENROLLMENT_AGENT "1.3.6.1.4.1.311.20.2.1" +#ifndef szOID_KP_SMARTCARD_LOGON #define szOID_KP_SMARTCARD_LOGON "1.3.6.1.4.1.311.20.2.2" +#endif +#ifndef szOID_NT_PRINCIPAL_NAME +#define szOID_NT_PRINCIPAL_NAME "1.3.6.1.4.1.311.20.2.3" +#endif #define szOID_CERT_MANIFOLD "1.3.6.1.4.1.311.20.3" #ifndef szOID_CERTSRV_CA_VERSION #define szOID_CERTSRV_CA_VERSION "1.3.6.1.4.1.311.21.1" @@ -3077,21 +3102,6 @@ #ifndef szOID_SERIALIZED #define szOID_SERIALIZED "1.3.6.1.4.1.311.10.3.3.1" -#endif - -#define szOID_AUTO_ENROLL_CTL_USAGE "1.3.6.1.4.1.311.20.1" -#define szOID_ENROLL_CERTTYPE_EXTENSION "1.3.6.1.4.1.311.20.2" -#define szOID_ENROLLMENT_AGENT "1.3.6.1.4.1.311.20.2.1" -#ifndef szOID_KP_SMARTCARD_LOGON -#define szOID_KP_SMARTCARD_LOGON "1.3.6.1.4.1.311.20.2.2" -#endif -#ifndef szOID_NT_PRINCIPAL_NAME -#define szOID_NT_PRINCIPAL_NAME "1.3.6.1.4.1.311.20.2.3" -#endif -#define szOID_CERT_MANIFOLD "1.3.6.1.4.1.311.20.3" - -#ifndef szOID_CERTSRV_CA_VERSION -#define szOID_CERTSRV_CA_VERSION "1.3.6.1.4.1.311.21.1" #endif #ifndef szOID_PRODUCT_UPDATE @@ -3427,6 +3437,7 @@ #define CERT_ID_KEY_IDENTIFIER 2 #define CERT_ID_SHA1_HASH 3 +#ifndef USE_WC_PREFIX #undef CMSG_DATA /* may be defined by sys/socket.h */ #define CMSG_DATA 1 #define CMSG_SIGNED 2 @@ -3441,6 +3452,21 @@ #define CMSG_ENVELOPED_FLAG (1 << CMSG_ENVELOPED) #define CMSG_SIGNED_AND_ENVELOPED_FLAG (1 << CMSG_SIGNED_AND_ENVELOPED) #define CMSG_ENCRYPTED_FLAG (1 << CMSG_ENCRYPTED) +#else +#define WC_CMSG_DATA 1 +#define WC_CMSG_SIGNED 2 +#define WC_CMSG_ENVELOPED 3 +#define WC_CMSG_SIGNED_AND_ENVELOPED 4 +#define WC_CMSG_HASHED 5 +#define WC_CMSG_ENCRYPTED 6 + +#define WC_CMSG_ALL_FLAGS ~0U +#define WC_CMSG_DATA_FLAG (1 << WC_CMSG_DATA) +#define WC_CMSG_SIGNED_FLAG (1 << WC_CMSG_SIGNED) +#define WC_CMSG_ENVELOPED_FLAG (1 << WC_CMSG_ENVELOPED) +#define WC_CMSG_SIGNED_AND_ENVELOPED_FLAG (1 << WC_CMSG_SIGNED_AND_ENVELOPED) +#define WC_CMSG_ENCRYPTED_FLAG (1 << WC_CMSG_ENCRYPTED) +#endif typedef struct _CMSG_SIGNER_ENCODE_INFO { @@ -3781,6 +3807,54 @@ #define CMSG_KEY_TRANS_CMS_VERSION CMSG_ENVELOPED_RECIPIENT_V2 #define CMSG_KEY_AGREE_VERSION CMSG_ENVELOPED_RECIPIENT_V3 #define CMSG_MAIL_LIST_VERSION CMSG_ENVELOPED_RECIPIENT_V4 + +typedef void * (WINAPI *PFN_CMSG_ALLOC)(size_t cb); +typedef void (WINAPI *PFN_CMSG_FREE)(void *pv); + +typedef struct _CMSG_CONTENT_ENCRYPT_INFO { + DWORD cbSize; + HCRYPTPROV hCryptProv; + CRYPT_ALGORITHM_IDENTIFIER ContentEncryptionAlgorithm; + void *pvEncryptionAuxInfo; + DWORD cRecipients; + PCMSG_RECIPIENT_ENCODE_INFO rgCmsRecipients; + PFN_CMSG_ALLOC pfnAlloc; + PFN_CMSG_FREE pfnFree; + DWORD dwEncryptFlags; + HCRYPTKEY hContentEncryptKey; + DWORD dwFlags; +} CMSG_CONTENT_ENCRYPT_INFO, *PCMSG_CONTENT_ENCRYPT_INFO; + +typedef struct _CMSG_KEY_TRANS_ENCRYPT_INFO { + DWORD cbSize; + DWORD dwRecipientIndex; + CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; + CRYPT_DATA_BLOB EncryptedKey; + DWORD dwFlags; +} CMSG_KEY_TRANS_ENCRYPT_INFO, *PCMSG_KEY_TRANS_ENCRYPT_INFO; + +typedef struct _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA { + DWORD cbSize; + HCRYPTPROV hCryptProv; + DWORD dwKeySpec; + PCMSG_KEY_TRANS_RECIPIENT_INFO pKeyTrans; + DWORD dwRecipientIndex; +} CMSG_CTRL_KEY_TRANS_DECRYPT_PARA, *PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA; + +typedef BOOL (WINAPI *PFN_CMSG_GEN_CONTENT_ENCRYPT_KEY)( + PCMSG_CONTENT_ENCRYPT_INFO pContentEncryptInfo, DWORD dwFlags, + void *pvReserved); + +typedef BOOL (WINAPI *PFN_CMSG_EXPORT_KEY_TRANS)( + PCMSG_CONTENT_ENCRYPT_INFO pContentEncryptInfo, + PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO pKeyTransEncodeInfo, + PCMSG_KEY_TRANS_ENCRYPT_INFO pKeyTransEncryptInfo, + DWORD dwFlags, void *pvReserved); + +typedef BOOL (WINAPI *PFN_CMSG_IMPORT_KEY_TRANS)( + PCRYPT_ALGORITHM_IDENTIFIER pContentEncryptionAlgorithm, + PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA pKeyTransDecryptPara, DWORD dwFlags, + void *pvReserved, HCRYPTKEY *phContentEncryptKey); /* CryptMsgGetAndVerifySigner flags */ #define CMSG_TRUSTED_SIGNER_FLAG 0x1 @@ -3956,6 +4030,9 @@ BOOL WINAPI CertEnumPhysicalStore(const void *pvSystemStore, DWORD dwFlags, void *pvArg, PFN_CERT_ENUM_PHYSICAL_STORE pfnEnum); +BOOL WINAPI CertRegisterPhysicalStore(const void *pvSystemStore, DWORD dwFlags, + LPCWSTR pwszStoreName, PCERT_PHYSICAL_STORE_INFO pStoreInfo, void *pvReserved); + BOOL WINAPI CertSaveStore(HCERTSTORE hCertStore, DWORD dwMsgAndCertEncodingType, DWORD dwSaveAs, DWORD dwSaveTo, void* pvSaveToPara, DWORD dwFlags); @@ -4169,9 +4246,9 @@ BOOL WINAPI CertSetEnhancedKeyUsage(PCCERT_CONTEXT pCertContext, PCERT_ENHKEY_USAGE pUsage); BOOL WINAPI CertAddEnhancedKeyUsageIdentifier(PCCERT_CONTEXT pCertContext, - LPCSTR pszUsageIdentifer); + LPCSTR pszUsageIdentifier); BOOL WINAPI CertRemoveEnhancedKeyUsageIdentifier(PCCERT_CONTEXT pCertContext, - LPCSTR pszUsageIdentifer); + LPCSTR pszUsageIdentifier); BOOL WINAPI CertGetValidUsages(DWORD cCerts, PCCERT_CONTEXT *rghCerts, int *cNumOIDs, LPSTR *rghOIDs, DWORD *pcbOIDs); @@ -4450,6 +4527,8 @@ LPCWSTR szPassword, void *pvReserved, DWORD dwFlags); BOOL WINAPI PFXExportCertStore(HCERTSTORE hStore, CRYPT_DATA_BLOB *pPFX, LPCWSTR szPassword, DWORD dwFlags); +BOOL WINAPI PFXVerifyPassword(CRYPT_DATA_BLOB *pPFX, LPCWSTR szPassword, + DWORD dwFlags); /* cryptnet.dll functions */ BOOL WINAPI CryptCancelAsyncRetrieval(HCRYPTASYNC hAsyncRetrieval); @@ -4480,6 +4559,11 @@ PCRYPT_RETRIEVE_AUX_INFO pAuxInfo); #define CryptRetrieveObjectByUrl WINELIB_NAME_AW(CryptRetrieveObjectByUrl) +/* Not found in crypt32.dll but in softpub.dll */ +HRESULT WINAPI FindCertsByIssuer(PCERT_CHAIN pCertChains, DWORD *pcbCertChains, + DWORD *pcCertChains, BYTE* pbEncodedIssuerName, DWORD cbEncodedIssuerName, + LPCWSTR pwszPurpose, DWORD dwKeySpec); + #ifdef _MSC_VER #pragma warning(pop) #endif
12 years, 11 months
1
0
0
0
[akhaldi] 55101: [ADVAPI32] * Missed this change in my previous commit.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 13:58:34 2012 New Revision: 55101 URL:
http://svn.reactos.org/svn/reactos?rev=55101&view=rev
Log: [ADVAPI32] * Missed this change in my previous commit. Modified: trunk/reactos/dll/win32/advapi32/crypt/crypt.c Modified: trunk/reactos/dll/win32/advapi32/crypt/crypt.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/crypt/c…
============================================================================== --- trunk/reactos/dll/win32/advapi32/crypt/crypt.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/advapi32/crypt/crypt.c [iso-8859-1] Mon Jan 23 13:58:34 2012 @@ -235,8 +235,8 @@ * Does it need memory allocation? */ provider->pVTable->Version = 3; - provider->pVTable->pFuncVerifyImage = CRYPT_VerifyImage; - provider->pVTable->pFuncReturnhWnd = CRYPT_ReturnhWnd; + provider->pVTable->FuncVerifyImage = CRYPT_VerifyImage; + provider->pVTable->FuncReturnhWnd = CRYPT_ReturnhWnd; provider->pVTable->dwProvType = 0; provider->pVTable->pbContextInfo = NULL; provider->pVTable->cbContextInfo = 0;
12 years, 11 months
1
0
0
0
[akhaldi] 55100: [PSDK] * Fix some annotations in winddi.h.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 13:32:25 2012 New Revision: 55100 URL:
http://svn.reactos.org/svn/reactos?rev=55100&view=rev
Log: [PSDK] * Fix some annotations in winddi.h. Modified: trunk/reactos/include/psdk/winddi.h Modified: trunk/reactos/include/psdk/winddi.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winddi.h?rev=…
============================================================================== --- trunk/reactos/include/psdk/winddi.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/winddi.h [iso-8859-1] Mon Jan 23 13:32:25 2012 @@ -1480,7 +1480,7 @@ _In_ FLONG fl, _In_ INT iPixelFormat); -//_Analysis_noreturn_ +_Analysis_noreturn_ WIN32KAPI VOID APIENTRY @@ -1530,7 +1530,7 @@ VOID APIENTRY EngDeletePath( - _Inout_ _Post_ptr_invalid_ PATHOBJ *ppo); + _In_ _Post_ptr_invalid_ PATHOBJ *ppo); WIN32KAPI VOID @@ -1542,7 +1542,7 @@ VOID APIENTRY EngDeleteSemaphore( - _Inout_ _Post_ptr_invalid_ HSEMAPHORE hsem); + _In_ _Post_ptr_invalid_ HSEMAPHORE hsem); WIN32KAPI BOOL @@ -1554,7 +1554,7 @@ VOID APIENTRY EngDeleteWnd( - _Inout_ _Post_ptr_invalid_ WNDOBJ *pwo); + _In_ _Post_ptr_invalid_ WNDOBJ *pwo); WIN32KAPI DWORD @@ -1567,6 +1567,9 @@ _Out_opt_bytecap_(cjOutBufferSize) LPVOID lpOutBuffer, _In_ DWORD cjOutBufferSize, _Out_ LPDWORD lpBytesReturned); + +#define DM_DEFAULT 0x00000001 +#define DM_MONOCHROME 0x00000002 WIN32KAPI ULONG @@ -3031,9 +3034,6 @@ typedef FN_DrvDisableSurface *PFN_DrvDisableSurface; extern FN_DrvDisableSurface DrvDisableSurface; -#define DM_DEFAULT 0x00000001 -#define DM_MONOCHROME 0x00000002 - typedef ULONG (APIENTRY FN_DrvDitherColor)( _In_ DHPDEV dhpdev,
12 years, 11 months
1
0
0
0
[akhaldi] 55099: [BCRYPT] * Sync to Wine 1.3.37.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 13:30:23 2012 New Revision: 55099 URL:
http://svn.reactos.org/svn/reactos?rev=55099&view=rev
Log: [BCRYPT] * Sync to Wine 1.3.37. Modified: trunk/reactos/dll/win32/bcrypt/bcrypt.spec trunk/reactos/dll/win32/bcrypt/bcrypt_main.c trunk/reactos/include/psdk/bcrypt.h trunk/reactos/media/doc/README.WINE Modified: trunk/reactos/dll/win32/bcrypt/bcrypt.spec URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/bcrypt/bcrypt.sp…
============================================================================== --- trunk/reactos/dll/win32/bcrypt/bcrypt.spec [iso-8859-1] (original) +++ trunk/reactos/dll/win32/bcrypt/bcrypt.spec [iso-8859-1] Mon Jan 23 13:30:23 2012 @@ -14,7 +14,7 @@ @ stub BCryptDuplicateHash @ stub BCryptDuplicateKey @ stub BCryptEncrypt -@ stub BCryptEnumAlgorithms +@ stdcall BCryptEnumAlgorithms(long ptr ptr long) @ stub BCryptEnumContextFunctionProviders @ stub BCryptEnumContextFunctions @ stub BCryptEnumContexts Modified: trunk/reactos/dll/win32/bcrypt/bcrypt_main.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/bcrypt/bcrypt_ma…
============================================================================== --- trunk/reactos/dll/win32/bcrypt/bcrypt_main.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/bcrypt/bcrypt_main.c [iso-8859-1] Mon Jan 23 13:30:23 2012 @@ -22,6 +22,9 @@ #include "wine/debug.h" #include "winbase.h" +#include "bcrypt.h" + +typedef LONG NTSTATUS; WINE_DEFAULT_DEBUG_CHANNEL(bcrypt); @@ -38,3 +41,14 @@ return TRUE; } + +NTSTATUS WINAPI BCryptEnumAlgorithms(ULONG dwAlgOperations, ULONG *pAlgCount, + BCRYPT_ALGORITHM_IDENTIFIER **ppAlgList, ULONG dwFlags) +{ + FIXME("%08x, %p, %p, %08x - stub\n", dwAlgOperations, pAlgCount, ppAlgList, dwFlags); + + *ppAlgList=NULL; + *pAlgCount=0; + + return ERROR_CALL_NOT_IMPLEMENTED; +} Modified: trunk/reactos/include/psdk/bcrypt.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/bcrypt.h?rev=…
============================================================================== --- trunk/reactos/include/psdk/bcrypt.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/bcrypt.h [iso-8859-1] Mon Jan 23 13:30:23 2012 @@ -35,4 +35,11 @@ #define OPTIONAL #endif +typedef struct _BCRYPT_ALGORITHM_IDENTIFIER +{ + LPWSTR pszName; + ULONG dwClass; + ULONG dwFlags; +} BCRYPT_ALGORITHM_IDENTIFIER; + #endif /* __WINE_BCRYPT_H */ Modified: trunk/reactos/media/doc/README.WINE URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
============================================================================== --- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original) +++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Mon Jan 23 13:30:23 2012 @@ -43,7 +43,7 @@ reactos/dll/win32/advpack # Synced to Wine-1.3.37 reactos/dll/win32/atl # Autosync reactos/dll/win32/avifil32 # Autosync -reactos/dll/win32/bcrypt # Autosync +reactos/dll/win32/bcrypt # Synced to Wine-1.3.37 reactos/dll/win32/browseui # Out of sync reactos/dll/win32/cabinet # Autosync reactos/dll/win32/clusapi # Autosync
12 years, 11 months
1
0
0
0
[akhaldi] 55098: [ADVPACK_WINETEST] * Sync to Wine 1.3.37.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Mon Jan 23 12:26:48 2012 New Revision: 55098 URL:
http://svn.reactos.org/svn/reactos?rev=55098&view=rev
Log: [ADVPACK_WINETEST] * Sync to Wine 1.3.37. Modified: trunk/rostests/winetests/advpack/advpack.c trunk/rostests/winetests/advpack/files.c trunk/rostests/winetests/advpack/install.c Modified: trunk/rostests/winetests/advpack/advpack.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/advpack/advpack…
============================================================================== --- trunk/rostests/winetests/advpack/advpack.c [iso-8859-1] (original) +++ trunk/rostests/winetests/advpack/advpack.c [iso-8859-1] Mon Jan 23 12:26:48 2012 @@ -130,7 +130,7 @@ HRESULT hr; HANDLE hn; CHAR currDir[MAX_PATH]; - int currDirLen; + UINT currDirLen; /* Native DelNode apparently does not support relative paths, so we use absolute paths for testing */ @@ -446,7 +446,7 @@ ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); ok(!lstrcmpi(buffer, PROG_FILES_ROOT), "Expected %s, got %s\n", PROG_FILES_ROOT, buffer); - ok(size == lstrlenA(PROG_FILES_ROOT)+1, "Expected size %d, got %d\n", + ok(size == strlen(PROG_FILES_ROOT)+1, "Expected size %d, got %d\n", lstrlenA(PROG_FILES_ROOT)+1, size); memset(buffer, 'a', APP_PATH_LEN); @@ -457,7 +457,7 @@ ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); ok(!lstrcmpi(buffer, PROG_FILES_ROOT), "Expected %s, got %s\n", PROG_FILES_ROOT, buffer); - ok(size == lstrlenA(PROG_FILES_ROOT)+1, "Expected size %d, got %d\n", + ok(size == strlen(PROG_FILES_ROOT)+1, "Expected size %d, got %d\n", lstrlenA(PROG_FILES_ROOT)+1, size); { @@ -473,7 +473,7 @@ ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); ok(!lstrcmpi(buffer, drive), "Expected %s, got %s\n", drive, buffer); - ok(size == lstrlenA(drive)+1, "Expected size %d, got %d\n", + ok(size == strlen(drive)+1, "Expected size %d, got %d\n", lstrlenA(drive)+1, size); } @@ -531,7 +531,7 @@ ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); ok(!lstrcmpi(buffer, PROG_FILES_ROOT), "Expected %s, got %s\n", PROG_FILES_ROOT, buffer); - ok(size == lstrlenA(PROG_FILES_ROOT)+1, "Expected size %d, got %d\n", + ok(size == strlen(PROG_FILES_ROOT)+1, "Expected size %d, got %d\n", lstrlenA(PROG_FILES_ROOT)+1, size); /* close the INF again */ Modified: trunk/rostests/winetests/advpack/files.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/advpack/files.c…
============================================================================== --- trunk/rostests/winetests/advpack/files.c [iso-8859-1] (original) +++ trunk/rostests/winetests/advpack/files.c [iso-8859-1] Mon Jan 23 12:26:48 2012 @@ -29,12 +29,12 @@ #define FOLDER_THRESHOLD 900000 /* function pointers */ -HMODULE hAdvPack; +static HMODULE hAdvPack; static HRESULT (WINAPI *pAddDelBackupEntry)(LPCSTR, LPCSTR, LPCSTR, DWORD); static HRESULT (WINAPI *pExtractFiles)(LPCSTR, LPCSTR, DWORD, LPCSTR, LPVOID, DWORD); static HRESULT (WINAPI *pAdvInstallFile)(HWND,LPCSTR,LPCSTR,LPCSTR,LPCSTR,DWORD,DWORD); -CHAR CURR_DIR[MAX_PATH]; +static CHAR CURR_DIR[MAX_PATH]; static void init_function_pointers(void) { Modified: trunk/rostests/winetests/advpack/install.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/advpack/install…
============================================================================== --- trunk/rostests/winetests/advpack/install.c [iso-8859-1] (original) +++ trunk/rostests/winetests/advpack/install.c [iso-8859-1] Mon Jan 23 12:26:48 2012 @@ -95,7 +95,7 @@ hr = pRunSetupCommand(NULL, "idontexist.exe", "Install", systemdir, "Title", &hexe, 0, NULL); ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %d\n", hr); - ok(hexe == NULL, "Expcted hexe to be NULL\n"); + ok(hexe == NULL, "Expected hexe to be NULL\n"); ok(!TerminateProcess(hexe, 0), "Expected TerminateProcess to fail\n"); /* try a bad directory */ @@ -103,15 +103,13 @@ hr = pRunSetupCommand(NULL, "winver.exe", "Install", "non\\existent\\directory", "Title", &hexe, 0, NULL); ok(hr == HRESULT_FROM_WIN32(ERROR_DIRECTORY), "Expected HRESULT_FROM_WIN32(ERROR_DIRECTORY), got %d\n", hr); - ok(hexe == NULL, "Expcted hexe to be NULL\n"); + ok(hexe == NULL, "Expected hexe to be NULL\n"); ok(!TerminateProcess(hexe, 0), "Expected TerminateProcess to fail\n"); /* try to run an exe with the RSC_FLAG_INF flag */ hexe = (HANDLE)0xdeadbeef; hr = pRunSetupCommand(NULL, "winver.exe", "Install", systemdir, "Title", &hexe, RSC_FLAG_INF | RSC_FLAG_QUIET, NULL); - ok(is_spapi_err(hr) || - hr == E_FAIL, /* win9x */ - "Expected a setupapi error or E_FAIL, got %d\n", hr); + ok(is_spapi_err(hr), "Expected a setupapi error, got %d\n", hr); ok(hexe == (HANDLE)0xdeadbeef, "Expected hexe to be 0xdeadbeef\n"); ok(!TerminateProcess(hexe, 0), "Expected TerminateProcess to fail\n"); @@ -144,9 +142,7 @@ /* try a relative path to the INF, with working dir provided */ hr = pRunSetupCommand(NULL, "one\\test.inf", "DefaultInstall", dir, "Title", NULL, RSC_FLAG_INF | RSC_FLAG_QUIET, NULL); - ok(hr == ERROR_SUCCESS || - hr == E_FAIL, /* win9x */ - "Expected ERROR_SUCCESS, got %d\n", hr); + ok(hr == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", hr); /* try a relative path to the INF, NULL working dir */ hr = pRunSetupCommand(NULL, "one\\test.inf", "DefaultInstall", NULL, "Title", NULL, RSC_FLAG_INF | RSC_FLAG_QUIET, NULL); @@ -155,15 +151,11 @@ /* try a relative path to the INF, empty working dir */ hr = pRunSetupCommand(NULL, "one\\test.inf", "DefaultInstall", "", "Title", NULL, RSC_FLAG_INF | RSC_FLAG_QUIET, NULL); - ok(hr == ERROR_SUCCESS || - hr == E_FAIL, /* win9x */ - "Expected ERROR_SUCCESS or E_FAIL, got %d\n", hr); + ok(hr == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", hr); /* try only the INF filename, with working dir provided */ hr = pRunSetupCommand(NULL, "test.inf", "DefaultInstall", dir, "Title", NULL, RSC_FLAG_INF | RSC_FLAG_QUIET, NULL); - ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) || - hr == E_FAIL, /* win9x */ - "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) or E_FAIL, got %d\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %d\n", hr); /* try only the INF filename, NULL working dir */ hr = pRunSetupCommand(NULL, "test.inf", "DefaultInstall", NULL, "Title", NULL, RSC_FLAG_INF | RSC_FLAG_QUIET, NULL); @@ -172,9 +164,7 @@ /* try only the INF filename, empty working dir */ hr = pRunSetupCommand(NULL, "test.inf", "DefaultInstall", "", "Title", NULL, RSC_FLAG_INF | RSC_FLAG_QUIET, NULL); - ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) || - hr == E_FAIL, /* win9x */ - "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) or E_FAIL, got %d\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %d\n", hr); DeleteFileA("one\\test.inf"); RemoveDirectoryA("one"); @@ -183,9 +173,7 @@ /* try INF file in the current directory, working directory provided */ hr = pRunSetupCommand(NULL, "test.inf", "DefaultInstall", CURR_DIR, "Title", NULL, RSC_FLAG_INF | RSC_FLAG_QUIET, NULL); - ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) || - hr == E_FAIL, /* win9x */ - "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) or E_FAIL, got %d\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %d\n", hr); /* try INF file in the current directory, NULL working directory */ hr = pRunSetupCommand(NULL, "test.inf", "DefaultInstall", NULL, "Title", NULL, RSC_FLAG_INF | RSC_FLAG_QUIET, NULL); @@ -194,9 +182,7 @@ /* try INF file in the current directory, empty working directory */ hr = pRunSetupCommand(NULL, "test.inf", "DefaultInstall", CURR_DIR, "Title", NULL, RSC_FLAG_INF | RSC_FLAG_QUIET, NULL); - ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) || - hr == E_FAIL, /* win9x */ - "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) or E_FAIL, got %d\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %d\n", hr); } static void test_LaunchINFSection(void)
12 years, 11 months
1
0
0
0
← Newer
1
...
23
24
25
26
27
28
29
...
56
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Results per page:
10
25
50
100
200