winehq.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
2025
February
January
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
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
October 2008
----- 2025 -----
February 2025
January 2025
----- 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
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
1216 discussions
Start a n
N
ew thread
Henri Verbeet : shell32: Implement IShellView2_CreateViewWindow2.
by Alexandre Julliard
14 Oct '08
14 Oct '08
Module: wine Branch: master Commit: 67f86a410fa0dbfa7d0f7a5549f8c6f0aa49b20a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=67f86a410fa0dbfa7d0f7a554…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Oct 14 09:01:08 2008 +0200 shell32: Implement IShellView2_CreateViewWindow2. --- dlls/shell32/shlview.c | 190 +++++++++++++++++++++++++++++------------------- 1 files changed, 116 insertions(+), 74 deletions(-) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index 1f7dcc7..20a1efb 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -1684,6 +1684,10 @@ static HRESULT WINAPI IShellView_fnQueryInterface(IShellView2 * iface,REFIID rii { *ppvObj = (IShellView*)This; } + else if(IsEqualIID(riid, &IID_IShellView2)) + { + *ppvObj = (IShellView2*)This; + } else if(IsEqualIID(riid, &IID_IOleCommandTarget)) { *ppvObj = (IOleCommandTarget*)&(This->lpvtblOleCommandTarget); @@ -1863,79 +1867,25 @@ static HRESULT WINAPI IShellView_fnRefresh(IShellView2 * iface) return S_OK; } -static HRESULT WINAPI IShellView_fnCreateViewWindow( - IShellView2 * iface, - IShellView *lpPrevView, - LPCFOLDERSETTINGS lpfs, - IShellBrowser * psb, - RECT * prcView, - HWND *phWnd) +static HRESULT WINAPI IShellView_fnCreateViewWindow(IShellView2 *iface, IShellView *lpPrevView, + LPCFOLDERSETTINGS lpfs, IShellBrowser *psb, RECT *prcView, HWND *phWnd) { - IShellViewImpl *This = (IShellViewImpl *)iface; - - WNDCLASSW wc; - *phWnd = 0; - - - TRACE("(%p)->(shlview=%p set=%p shlbrs=%p rec=%p hwnd=%p) incomplete\n",This, lpPrevView,lpfs, psb, prcView, phWnd); - TRACE("-- vmode=%x flags=%x left=%i top=%i right=%i bottom=%i\n",lpfs->ViewMode, lpfs->fFlags ,prcView->left,prcView->top, prcView->right, prcView->bottom); - - /*set up the member variables*/ - This->pShellBrowser = psb; - This->FolderSettings = *lpfs; - - /*get our parent window*/ - IShellBrowser_AddRef(This->pShellBrowser); - IShellBrowser_GetWindow(This->pShellBrowser, &(This->hWndParent)); - - /* try to get the ICommDlgBrowserInterface, adds a reference !!! */ - This->pCommDlgBrowser=NULL; - if ( SUCCEEDED (IShellBrowser_QueryInterface( This->pShellBrowser, - (REFIID)&IID_ICommDlgBrowser, (LPVOID*) &This->pCommDlgBrowser))) - { - TRACE("-- CommDlgBrowser\n"); - } - - /*if our window class has not been registered, then do so*/ - if(!GetClassInfoW(shell32_hInstance, SV_CLASS_NAME, &wc)) - { - ZeroMemory(&wc, sizeof(wc)); - wc.style = CS_HREDRAW | CS_VREDRAW; - wc.lpfnWndProc = ShellView_WndProc; - wc.cbClsExtra = 0; - wc.cbWndExtra = 0; - wc.hInstance = shell32_hInstance; - wc.hIcon = 0; - wc.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW); - wc.hbrBackground = (HBRUSH) (COLOR_WINDOW + 1); - wc.lpszMenuName = NULL; - wc.lpszClassName = SV_CLASS_NAME; - - if(!RegisterClassW(&wc)) - return E_FAIL; - } - - *phWnd = CreateWindowExW(0, - SV_CLASS_NAME, - NULL, - WS_CHILD | WS_TABSTOP, - prcView->left, - prcView->top, - prcView->right - prcView->left, - prcView->bottom - prcView->top, - This->hWndParent, - 0, - shell32_hInstance, - (LPVOID)This); - - CheckToolbar(This); + HRESULT hr; + SV2CVW2_PARAMS view_params; + view_params.cbSize = sizeof(view_params); + view_params.psvPrev = lpPrevView; + view_params.pfs = lpfs; + view_params.psbOwner = psb; + view_params.prcView = prcView; + view_params.pvid = NULL; + view_params.hwndView = 0; - if(!*phWnd) return E_FAIL; + TRACE("(%p) Forwarding to CreateViewWindow2\n", iface); - SetWindowPos(*phWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW); - UpdateWindow(*phWnd); + hr = IShellView2_CreateViewWindow2(iface, &view_params); + *phWnd = view_params.hwndView; - return S_OK; + return hr; } static HRESULT WINAPI IShellView_fnDestroyViewWindow(IShellView2 * iface) @@ -2078,8 +2028,100 @@ static HRESULT WINAPI IShellView2_fnGetView(IShellView2* iface, SHELLVIEWID *vie static HRESULT WINAPI IShellView2_fnCreateViewWindow2(IShellView2* iface, LPSV2CVW2_PARAMS view_params) { - FIXME("(%p)->(view_params %p) stub!\n", iface, view_params); - return E_NOTIMPL; + IShellViewImpl *This = (IShellViewImpl *)iface; + WNDCLASSW wc; + HWND wnd; + + TRACE("(%p)->(view_params %p)\n", iface, view_params); + + if (view_params->cbSize != sizeof(*view_params)) + { + FIXME("Got unexpected cbSize %#x\n", view_params->cbSize); + return E_FAIL; + } + + TRACE("-- psvPrev %p, pfs %p, psbOwner %p, prcView %p\n", + view_params->psvPrev, view_params->pfs, view_params->psbOwner, view_params->prcView); + TRACE("-- vmode %#x, flags %#x, left %d, top %d, right %d, bottom %d\n", + view_params->pfs->ViewMode, view_params->pfs->fFlags, view_params->prcView->left, + view_params->prcView->top, view_params->prcView->right, view_params->prcView->bottom); + + /* Set up the member variables */ + This->pShellBrowser = view_params->psbOwner; + This->FolderSettings = *view_params->pfs; + + if (view_params->pvid) + { + if (IsEqualGUID(view_params->pvid, &VID_LargeIcons)) + This->FolderSettings.ViewMode = FVM_ICON; + else if (IsEqualGUID(view_params->pvid, &VID_SmallIcons)) + This->FolderSettings.ViewMode = FVM_SMALLICON; + else if (IsEqualGUID(view_params->pvid, &VID_List)) + This->FolderSettings.ViewMode = FVM_LIST; + else if (IsEqualGUID(view_params->pvid, &VID_Details)) + This->FolderSettings.ViewMode = FVM_DETAILS; + else if (IsEqualGUID(view_params->pvid, &VID_Thumbnails)) + This->FolderSettings.ViewMode = FVM_THUMBNAIL; + else if (IsEqualGUID(view_params->pvid, &VID_Tile)) + This->FolderSettings.ViewMode = FVM_TILE; + else if (IsEqualGUID(view_params->pvid, &VID_ThumbStrip)) + This->FolderSettings.ViewMode = FVM_THUMBSTRIP; + else + FIXME("Ignoring unrecognized VID %s\n", debugstr_guid(view_params->pvid)); + } + + /* Get our parent window */ + IShellBrowser_AddRef(This->pShellBrowser); + IShellBrowser_GetWindow(This->pShellBrowser, &(This->hWndParent)); + + /* Try to get the ICommDlgBrowserInterface, adds a reference !!! */ + This->pCommDlgBrowser = NULL; + if (SUCCEEDED(IShellBrowser_QueryInterface(This->pShellBrowser, &IID_ICommDlgBrowser, (void **)&This->pCommDlgBrowser))) + { + TRACE("-- CommDlgBrowser %p\n", This->pCommDlgBrowser); + } + + /* If our window class has not been registered, then do so */ + if (!GetClassInfoW(shell32_hInstance, SV_CLASS_NAME, &wc)) + { + ZeroMemory(&wc, sizeof(wc)); + wc.style = CS_HREDRAW | CS_VREDRAW; + wc.lpfnWndProc = ShellView_WndProc; + wc.cbClsExtra = 0; + wc.cbWndExtra = 0; + wc.hInstance = shell32_hInstance; + wc.hIcon = 0; + wc.hCursor = LoadCursorW(0, (LPWSTR)IDC_ARROW); + wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); + wc.lpszMenuName = NULL; + wc.lpszClassName = SV_CLASS_NAME; + + if (!RegisterClassW(&wc)) return E_FAIL; + } + + wnd = CreateWindowExW(0, + SV_CLASS_NAME, + NULL, + WS_CHILD | WS_TABSTOP, + view_params->prcView->left, + view_params->prcView->top, + view_params->prcView->right - view_params->prcView->left, + view_params->prcView->bottom - view_params->prcView->top, + This->hWndParent, + 0, + shell32_hInstance, + (LPVOID)This); + + CheckToolbar(This); + + if (!wnd) return E_FAIL; + + SetWindowPos(wnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW); + UpdateWindow(wnd); + + view_params->hwndView = wnd; + + return S_OK; } static HRESULT WINAPI IShellView2_fnHandleRename(IShellView2* iface, LPCITEMIDLIST new_pidl)
1
0
0
0
Henri Verbeet : shell32: Add VIDs.
by Alexandre Julliard
14 Oct '08
14 Oct '08
Module: wine Branch: master Commit: eeb762d06c5f7ef258bd10f94d192741c381a905 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=eeb762d06c5f7ef258bd10f94…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Oct 14 09:01:08 2008 +0200 shell32: Add VIDs. --- include/shlguid.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/include/shlguid.h b/include/shlguid.h index d9685e6..d7c2b55 100644 --- a/include/shlguid.h +++ b/include/shlguid.h @@ -153,4 +153,12 @@ DEFINE_GUID(CLSID_CAnchorBrowsePropertyPage, 0x3050F3BB, 0x98B5, 0x11CF, 0xBB,0x DEFINE_GUID(CLSID_CDocBrowsePropertyPage, 0x3050F3B4, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B); DEFINE_GUID(CLSID_CImageBrowsePropertyPage, 0x3050F3B3, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B); +DEFINE_GUID(VID_LargeIcons, 0x0057d0e0, 0x3573, 0x11cf, 0xae, 0x69, 0x08, 0x00, 0x2b, 0x2e, 0x12, 0x62); +DEFINE_GUID(VID_SmallIcons, 0x089000c0, 0x3573, 0x11cf, 0xae, 0x69, 0x08, 0x00, 0x2b, 0x2e, 0x12, 0x62); +DEFINE_GUID(VID_List, 0x0e1fa5e0, 0x3573, 0x11cf, 0xae, 0x69, 0x08, 0x00, 0x2b, 0x2e, 0x12, 0x62); +DEFINE_GUID(VID_Details, 0x137e7700, 0x3573, 0x11cf, 0xae, 0x69, 0x08, 0x00, 0x2b, 0x2e, 0x12, 0x62); +DEFINE_GUID(VID_Thumbnails, 0x8bebb290, 0x52d0, 0x11d0, 0xb7, 0xf4, 0x00, 0xc0, 0x4f, 0xd7, 0x06, 0xec); +DEFINE_GUID(VID_Tile, 0x65f125e5, 0x7be1, 0x4810, 0xba, 0x9d, 0xd2, 0x71, 0xc8, 0x43, 0x2c, 0xe3); +DEFINE_GUID(VID_ThumbStrip, 0x8eefa624, 0xd1e9, 0x445b, 0x94, 0xb7, 0x74, 0xfb, 0xce, 0x2e, 0xa1, 0x1a); + #endif /* __WINE_SHLGUID_H */
1
0
0
0
Henri Verbeet : shell32: Add IShellView32 stubs.
by Alexandre Julliard
14 Oct '08
14 Oct '08
Module: wine Branch: master Commit: 5cfb3c4a6fefa25b847b5eb086acfc1038998847 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5cfb3c4a6fefa25b847b5eb08…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Oct 14 09:01:08 2008 +0200 shell32: Add IShellView32 stubs. --- dlls/shell32/shlview.c | 68 +++++++++++++++++++++++++++++++++-------------- 1 files changed, 48 insertions(+), 20 deletions(-) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index c890e0d..1f7dcc7 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -78,7 +78,7 @@ typedef struct typedef struct { - const IShellViewVtbl* lpVtbl; + const IShellView2Vtbl* lpVtbl; LONG ref; const IOleCommandTargetVtbl* lpvtblOleCommandTarget; const IDropTargetVtbl* lpvtblDropTarget; @@ -109,7 +109,7 @@ typedef struct POINT ptLastMousePos; /* Mouse position at last DragOver call */ } IShellViewImpl; -static const IShellViewVtbl svvt; +static const IShellView2Vtbl svvt; static const IOleCommandTargetVtbl ctvt; static const IDropTargetVtbl dtvt; static const IDropSourceVtbl dsvt; @@ -1668,7 +1668,7 @@ static LRESULT CALLBACK ShellView_WndProc(HWND hWnd, UINT uMessage, WPARAM wPara ********************************************************** * IShellView_QueryInterface */ -static HRESULT WINAPI IShellView_fnQueryInterface(IShellView * iface,REFIID riid, LPVOID *ppvObj) +static HRESULT WINAPI IShellView_fnQueryInterface(IShellView2 * iface,REFIID riid, LPVOID *ppvObj) { IShellViewImpl *This = (IShellViewImpl *)iface; @@ -1714,7 +1714,7 @@ static HRESULT WINAPI IShellView_fnQueryInterface(IShellView * iface,REFIID riid /********************************************************** * IShellView_AddRef */ -static ULONG WINAPI IShellView_fnAddRef(IShellView * iface) +static ULONG WINAPI IShellView_fnAddRef(IShellView2 * iface) { IShellViewImpl *This = (IShellViewImpl *)iface; ULONG refCount = InterlockedIncrement(&This->ref); @@ -1726,7 +1726,7 @@ static ULONG WINAPI IShellView_fnAddRef(IShellView * iface) /********************************************************** * IShellView_Release */ -static ULONG WINAPI IShellView_fnRelease(IShellView * iface) +static ULONG WINAPI IShellView_fnRelease(IShellView2 * iface) { IShellViewImpl *This = (IShellViewImpl *)iface; ULONG refCount = InterlockedDecrement(&This->ref); @@ -1758,7 +1758,7 @@ static ULONG WINAPI IShellView_fnRelease(IShellView * iface) /********************************************************** * ShellView_GetWindow */ -static HRESULT WINAPI IShellView_fnGetWindow(IShellView * iface,HWND * phWnd) +static HRESULT WINAPI IShellView_fnGetWindow(IShellView2 * iface,HWND * phWnd) { IShellViewImpl *This = (IShellViewImpl *)iface; @@ -1769,7 +1769,7 @@ static HRESULT WINAPI IShellView_fnGetWindow(IShellView * iface,HWND * phWnd) return S_OK; } -static HRESULT WINAPI IShellView_fnContextSensitiveHelp(IShellView * iface,BOOL fEnterMode) +static HRESULT WINAPI IShellView_fnContextSensitiveHelp(IShellView2 * iface,BOOL fEnterMode) { IShellViewImpl *This = (IShellViewImpl *)iface; @@ -1784,7 +1784,7 @@ static HRESULT WINAPI IShellView_fnContextSensitiveHelp(IShellView * iface,BOOL * FIXME: * use the accel functions */ -static HRESULT WINAPI IShellView_fnTranslateAccelerator(IShellView * iface,LPMSG lpmsg) +static HRESULT WINAPI IShellView_fnTranslateAccelerator(IShellView2 * iface,LPMSG lpmsg) { #if 0 IShellViewImpl *This = (IShellViewImpl *)iface; @@ -1799,7 +1799,7 @@ static HRESULT WINAPI IShellView_fnTranslateAccelerator(IShellView * iface,LPMSG return S_FALSE; /* not handled */ } -static HRESULT WINAPI IShellView_fnEnableModeless(IShellView * iface,BOOL fEnable) +static HRESULT WINAPI IShellView_fnEnableModeless(IShellView2 * iface,BOOL fEnable) { IShellViewImpl *This = (IShellViewImpl *)iface; @@ -1808,7 +1808,7 @@ static HRESULT WINAPI IShellView_fnEnableModeless(IShellView * iface,BOOL fEnabl return E_NOTIMPL; } -static HRESULT WINAPI IShellView_fnUIActivate(IShellView * iface,UINT uState) +static HRESULT WINAPI IShellView_fnUIActivate(IShellView2 * iface,UINT uState) { IShellViewImpl *This = (IShellViewImpl *)iface; @@ -1851,7 +1851,7 @@ static HRESULT WINAPI IShellView_fnUIActivate(IShellView * iface,UINT uState) return S_OK; } -static HRESULT WINAPI IShellView_fnRefresh(IShellView * iface) +static HRESULT WINAPI IShellView_fnRefresh(IShellView2 * iface) { IShellViewImpl *This = (IShellViewImpl *)iface; @@ -1864,7 +1864,7 @@ static HRESULT WINAPI IShellView_fnRefresh(IShellView * iface) } static HRESULT WINAPI IShellView_fnCreateViewWindow( - IShellView * iface, + IShellView2 * iface, IShellView *lpPrevView, LPCFOLDERSETTINGS lpfs, IShellBrowser * psb, @@ -1938,7 +1938,7 @@ static HRESULT WINAPI IShellView_fnCreateViewWindow( return S_OK; } -static HRESULT WINAPI IShellView_fnDestroyViewWindow(IShellView * iface) +static HRESULT WINAPI IShellView_fnDestroyViewWindow(IShellView2 * iface) { IShellViewImpl *This = (IShellViewImpl *)iface; @@ -1960,7 +1960,7 @@ static HRESULT WINAPI IShellView_fnDestroyViewWindow(IShellView * iface) return S_OK; } -static HRESULT WINAPI IShellView_fnGetCurrentInfo(IShellView * iface, LPFOLDERSETTINGS lpfs) +static HRESULT WINAPI IShellView_fnGetCurrentInfo(IShellView2 * iface, LPFOLDERSETTINGS lpfs) { IShellViewImpl *This = (IShellViewImpl *)iface; @@ -1973,7 +1973,7 @@ static HRESULT WINAPI IShellView_fnGetCurrentInfo(IShellView * iface, LPFOLDERSE return NOERROR; } -static HRESULT WINAPI IShellView_fnAddPropertySheetPages(IShellView * iface, DWORD dwReserved,LPFNADDPROPSHEETPAGE lpfn, LPARAM lparam) +static HRESULT WINAPI IShellView_fnAddPropertySheetPages(IShellView2 * iface, DWORD dwReserved,LPFNADDPROPSHEETPAGE lpfn, LPARAM lparam) { IShellViewImpl *This = (IShellViewImpl *)iface; @@ -1982,7 +1982,7 @@ static HRESULT WINAPI IShellView_fnAddPropertySheetPages(IShellView * iface, DWO return E_NOTIMPL; } -static HRESULT WINAPI IShellView_fnSaveViewState(IShellView * iface) +static HRESULT WINAPI IShellView_fnSaveViewState(IShellView2 * iface) { IShellViewImpl *This = (IShellViewImpl *)iface; @@ -1992,7 +1992,7 @@ static HRESULT WINAPI IShellView_fnSaveViewState(IShellView * iface) } static HRESULT WINAPI IShellView_fnSelectItem( - IShellView * iface, + IShellView2 * iface, LPCITEMIDLIST pidl, UINT uFlags) { @@ -2044,7 +2044,7 @@ static HRESULT WINAPI IShellView_fnSelectItem( return S_OK; } -static HRESULT WINAPI IShellView_fnGetItemObject(IShellView * iface, UINT uItem, REFIID riid, LPVOID *ppvOut) +static HRESULT WINAPI IShellView_fnGetItemObject(IShellView2 * iface, UINT uItem, REFIID riid, LPVOID *ppvOut) { IShellViewImpl *This = (IShellViewImpl *)iface; @@ -2070,7 +2070,31 @@ static HRESULT WINAPI IShellView_fnGetItemObject(IShellView * iface, UINT uItem, return S_OK; } -static const IShellViewVtbl svvt = +static HRESULT WINAPI IShellView2_fnGetView(IShellView2* iface, SHELLVIEWID *view_guid, ULONG view_type) +{ + FIXME("(%p)->(view_guid %s, view_type %#x) stub!\n", iface, debugstr_guid(view_guid), view_type); + return E_NOTIMPL; +} + +static HRESULT WINAPI IShellView2_fnCreateViewWindow2(IShellView2* iface, LPSV2CVW2_PARAMS view_params) +{ + FIXME("(%p)->(view_params %p) stub!\n", iface, view_params); + return E_NOTIMPL; +} + +static HRESULT WINAPI IShellView2_fnHandleRename(IShellView2* iface, LPCITEMIDLIST new_pidl) +{ + FIXME("(%p)->(new_pidl %p) stub!\n", iface, new_pidl); + return E_NOTIMPL; +} + +static HRESULT WINAPI IShellView2_fnSelectAndPositionItem(IShellView2* iface, LPCITEMIDLIST item, UINT flags, POINT *point) +{ + FIXME("(%p)->(item %p, flags %#x, point %p) stub!\n", iface, item, flags, point); + return E_NOTIMPL; +} + +static const IShellView2Vtbl svvt = { IShellView_fnQueryInterface, IShellView_fnAddRef, @@ -2087,7 +2111,11 @@ static const IShellViewVtbl svvt = IShellView_fnAddPropertySheetPages, IShellView_fnSaveViewState, IShellView_fnSelectItem, - IShellView_fnGetItemObject + IShellView_fnGetItemObject, + IShellView2_fnGetView, + IShellView2_fnCreateViewWindow2, + IShellView2_fnHandleRename, + IShellView2_fnSelectAndPositionItem, };
1
0
0
0
Lei Zhang : version: Prevent infinite looping in VersionInfo32_FindChild.
by Alexandre Julliard
14 Oct '08
14 Oct '08
Module: wine Branch: master Commit: 69871bedf1d787f25fe31df6075bf168d871cc3b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=69871bedf1d787f25fe31df60…
Author: Lei Zhang <thestig(a)google.com> Date: Mon Oct 13 14:29:32 2008 -0700 version: Prevent infinite looping in VersionInfo32_FindChild. --- dlls/version/info.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/version/info.c b/dlls/version/info.c index 395895b..51e25b3 100644 --- a/dlls/version/info.c +++ b/dlls/version/info.c @@ -664,6 +664,7 @@ static const VS_VERSION_INFO_STRUCT32 *VersionInfo32_FindChild( const VS_VERSION if (!strncmpiW( child->szKey, szKey, cbKey ) && !child->szKey[cbKey]) return child; + if (!(child->wLength)) return NULL; child = VersionInfo32_Next( child ); }
1
0
0
0
Henri Verbeet : shell32: Add the IShellView2 interface.
by Alexandre Julliard
14 Oct '08
14 Oct '08
Module: wine Branch: master Commit: 6176cf4e9734eef0eed26ad6c1e156806517527e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6176cf4e9734eef0eed26ad6c…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Oct 14 09:01:08 2008 +0200 shell32: Add the IShellView2 interface. --- include/shlobj.h | 2 -- include/shobjidl.idl | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/include/shlobj.h b/include/shlobj.h index 5ed4978..6480023 100644 --- a/include/shlobj.h +++ b/include/shlobj.h @@ -277,8 +277,6 @@ typedef struct * IShellView interface */ -typedef GUID SHELLVIEWID; - #define FCIDM_SHVIEWFIRST 0x0000 /* undocumented */ #define FCIDM_SHVIEW_ARRANGE 0x7001 diff --git a/include/shobjidl.idl b/include/shobjidl.idl index 95e532c..156d146 100644 --- a/include/shobjidl.idl +++ b/include/shobjidl.idl @@ -461,6 +461,44 @@ interface IShellView : IOleWindow [out, iid_is(riid)] void **ppv); } +[ + object, + uuid(88e39e80-3578-11cf-ae69-08002b2e1262), + pointer_default(unique) +] +interface IShellView2 : IShellView +{ + typedef GUID SHELLVIEWID; +cpp_quote("#include <pshpack8.h>") + typedef struct _SV2CVW2_PARAMS + { + DWORD cbSize; + IShellView *psvPrev; + LPCFOLDERSETTINGS pfs; + IShellBrowser *psbOwner; + RECT *prcView; + SHELLVIEWID const *pvid; + HWND hwndView; + } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS; +cpp_quote("#include <poppack.h>") + + HRESULT GetView( + [in, out] SHELLVIEWID *view_guid, + [in] ULONG view_type + ); + HRESULT CreateViewWindow2( + [in] LPSV2CVW2_PARAMS view_params + ); + HRESULT HandleRename( + [in] LPCITEMIDLIST new_pidl + ); + HRESULT SelectAndPositionItem( + [in] LPCITEMIDLIST item, + [in] UINT flags, + [in] POINT *point + ); +} + /***************************************************************************** * IShellBrowser interface
1
0
0
0
Marcus Meissner : oleview: RegEnumKey gets always sizes, not -1.
by Alexandre Julliard
14 Oct '08
14 Oct '08
Module: wine Branch: master Commit: 1b9507630821590c15708e05bd67bd1cf2a7ef38 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1b9507630821590c15708e05b…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Tue Oct 14 08:34:57 2008 +0200 oleview: RegEnumKey gets always sizes, not -1. --- programs/oleview/tree.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/programs/oleview/tree.c b/programs/oleview/tree.c index a5ba112..70391d7 100644 --- a/programs/oleview/tree.c +++ b/programs/oleview/tree.c @@ -271,7 +271,7 @@ static void AddCOMandAll(void) { i++; - if(RegEnumKey(hKey, i, valName, -1) != ERROR_SUCCESS) break; + if(RegEnumKey(hKey, i, valName, sizeof(valName)/sizeof(valName[0])) != ERROR_SUCCESS) break; if(RegOpenKey(hKey, valName, &hCurKey) != ERROR_SUCCESS) continue; @@ -300,7 +300,7 @@ static void AddCOMandAll(void) if(RegOpenKey(hCurKey, wszImplementedCategories, &hInfo) == ERROR_SUCCESS) { - if(RegEnumKey(hInfo, 0, wszComp, -1) != ERROR_SUCCESS) break; + if(RegEnumKey(hInfo, 0, wszComp, sizeof(wszComp)/sizeof(wszComp[0])) != ERROR_SUCCESS) break; RegCloseKey(hInfo); @@ -355,7 +355,7 @@ static void AddApplicationID(void) { i++; - if(RegEnumKey(hKey, i, valName, -1) != ERROR_SUCCESS) break; + if(RegEnumKey(hKey, i, valName, sizeof(valName)/sizeof(valName[0])) != ERROR_SUCCESS) break; if(RegOpenKey(hKey, valName, &hCurKey) != ERROR_SUCCESS) continue; @@ -400,7 +400,7 @@ static void AddTypeLib(void) { i++; - if(RegEnumKey(hKey, i, valParent, -1) != ERROR_SUCCESS) break; + if(RegEnumKey(hKey, i, valParent, sizeof(valParent)/sizeof(valParent[0])) != ERROR_SUCCESS) break; if(RegOpenKey(hKey, valParent, &hCurKey) != ERROR_SUCCESS) continue; @@ -409,7 +409,7 @@ static void AddTypeLib(void) { j++; - if(RegEnumKey(hCurKey, j, valName, -1) != ERROR_SUCCESS) break; + if(RegEnumKey(hCurKey, j, valName, sizeof(valName)/sizeof(valName[0])) != ERROR_SUCCESS) break; if(RegOpenKey(hCurKey, valName, &hInfoKey) != ERROR_SUCCESS) continue; @@ -466,7 +466,7 @@ static void AddInterfaces(void) { i++; - if(RegEnumKey(hKey, i, valName, -1) != ERROR_SUCCESS) break; + if(RegEnumKey(hKey, i, valName, sizeof(valName)/sizeof(valName[0])) != ERROR_SUCCESS) break; if(RegOpenKey(hKey, valName, &hCurKey) != ERROR_SUCCESS) continue; @@ -511,7 +511,7 @@ static void AddComponentCategories(void) { i++; - if(RegEnumKey(hKey, i, valName, -1) != ERROR_SUCCESS) break; + if(RegEnumKey(hKey, i, valName, sizeof(valName)/sizeof(valName[0])) != ERROR_SUCCESS) break; if(RegOpenKey(hKey, valName, &hCurKey) != ERROR_SUCCESS) continue;
1
0
0
0
Detlef Riekenberg : gdi32/tests: Fix tests to not depend on 96 dpi.
by Alexandre Julliard
14 Oct '08
14 Oct '08
Module: wine Branch: master Commit: 57a5a60ca36e51509cdcc181bdb3b039204d65b3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=57a5a60ca36e51509cdcc181b…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Tue Oct 14 01:01:51 2008 +0200 gdi32/tests: Fix tests to not depend on 96 dpi. --- dlls/gdi32/tests/mapping.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/gdi32/tests/mapping.c b/dlls/gdi32/tests/mapping.c index 210f783..7e85ca9 100644 --- a/dlls/gdi32/tests/mapping.c +++ b/dlls/gdi32/tests/mapping.c @@ -101,7 +101,7 @@ static void test_world_transform(void) if (is_win9x) { - expect_viewport_ext(hdc, 96, 96); + expect_viewport_ext(hdc, GetDeviceCaps(hdc, LOGPIXELSX), GetDeviceCaps(hdc, LOGPIXELSY)); expect_window_ext(hdc, 254, -254); } else
1
0
0
0
Rob Shearman : wnaspi32: Protect the inclusion of dirent.h in aspi.c.
by Alexandre Julliard
14 Oct '08
14 Oct '08
Module: wine Branch: master Commit: 8ef9d20f9697f99130a22e960a2cb9a2acf9af6f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8ef9d20f9697f99130a22e960…
Author: Rob Shearman <robertshearman(a)gmail.com> Date: Mon Oct 13 23:37:25 2008 +0100 wnaspi32: Protect the inclusion of dirent.h in aspi.c. This allows the file to be compiled on platforms that don't have the header file, such as MSVC. --- dlls/wnaspi32/aspi.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/wnaspi32/aspi.c b/dlls/wnaspi32/aspi.c index 196b968..c511524 100644 --- a/dlls/wnaspi32/aspi.c +++ b/dlls/wnaspi32/aspi.c @@ -40,7 +40,9 @@ #include <sys/ioctl.h> #endif #include <fcntl.h> -#include <dirent.h> +#ifdef HAVE_DIRENT_H +# include <dirent.h> +#endif #ifdef HAVE_UNISTD_H # include <unistd.h> #endif
1
0
0
0
Dylan Smith : wordpad: Added option to disable word wrap.
by Alexandre Julliard
14 Oct '08
14 Oct '08
Module: wine Branch: master Commit: f124a586d496f49a71a3aa90cf78df0d35e62008 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f124a586d496f49a71a3aa90c…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com> Date: Mon Oct 13 18:48:41 2008 -0400 wordpad: Added option to disable word wrap. --- programs/wordpad/Da.rc | 5 +++-- programs/wordpad/De.rc | 5 +++-- programs/wordpad/En.rc | 5 +++-- programs/wordpad/Fr.rc | 5 +++-- programs/wordpad/Hu.rc | 5 +++-- programs/wordpad/Ja.rc | 5 +++-- programs/wordpad/Ko.rc | 5 +++-- programs/wordpad/Nl.rc | 5 +++-- programs/wordpad/No.rc | 5 +++-- programs/wordpad/Pl.rc | 5 +++-- programs/wordpad/Ru.rc | 5 +++-- programs/wordpad/Si.rc | 5 +++-- programs/wordpad/Tr.rc | 5 +++-- programs/wordpad/Zh.rc | 5 +++-- programs/wordpad/print.c | 30 ++++++++++++++++++++---------- programs/wordpad/registry.c | 2 +- programs/wordpad/wordpad.c | 15 ++++++++++----- programs/wordpad/wordpad.h | 7 ++++--- 18 files changed, 77 insertions(+), 47 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=f124a586d496f49a71a3a…
1
0
0
0
Rob Shearman : rpcrt4: The type referred to by the wire_marshal attribute in server. idl must be a pointer.
by Alexandre Julliard
14 Oct '08
14 Oct '08
Module: wine Branch: master Commit: b919443a581610ee1877945bb2caf39b96afd9c3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b919443a581610ee1877945bb…
Author: Rob Shearman <robertshearman(a)gmail.com> Date: Mon Oct 13 23:36:17 2008 +0100 rpcrt4: The type referred to by the wire_marshal attribute in server.idl must be a pointer. Therefore, declare the structure as user_bstr_t and make wire_bstr_t be a typedef to a pointer of this type. --- dlls/rpcrt4/tests/server.c | 10 +++++----- dlls/rpcrt4/tests/server.idl | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dlls/rpcrt4/tests/server.c b/dlls/rpcrt4/tests/server.c index 78a8bff..a2d72de 100644 --- a/dlls/rpcrt4/tests/server.c +++ b/dlls/rpcrt4/tests/server.c @@ -990,27 +990,27 @@ us_t_UserFree(ULONG *flags, us_t *pus) ULONG __RPC_USER bstr_t_UserSize(ULONG *flags, ULONG start, bstr_t *b) { - return start + FIELD_OFFSET(wire_bstr_t, data[(*b)[-1]]); + return start + FIELD_OFFSET(user_bstr_t, data[(*b)[-1]]); } unsigned char * __RPC_USER bstr_t_UserMarshal(ULONG *flags, unsigned char *buffer, bstr_t *b) { - wire_bstr_t *wb = (wire_bstr_t *) buffer; + wire_bstr_t wb = (wire_bstr_t) buffer; wb->n = (*b)[-1]; memcpy(&wb->data, *b, wb->n * sizeof wb->data[0]); - return buffer + FIELD_OFFSET(wire_bstr_t, data[wb->n]); + return buffer + FIELD_OFFSET(user_bstr_t, data[wb->n]); } unsigned char * __RPC_USER bstr_t_UserUnmarshal(ULONG *flags, unsigned char *buffer, bstr_t *b) { - wire_bstr_t *wb = (wire_bstr_t *) buffer; + wire_bstr_t wb = (wire_bstr_t) buffer; short *data = HeapAlloc(GetProcessHeap(), 0, (wb->n + 1) * sizeof *data); data[0] = wb->n; memcpy(&data[1], wb->data, wb->n * sizeof data[1]); *b = &data[1]; - return buffer + FIELD_OFFSET(wire_bstr_t, data[wb->n]); + return buffer + FIELD_OFFSET(user_bstr_t, data[wb->n]); } void __RPC_USER diff --git a/dlls/rpcrt4/tests/server.idl b/dlls/rpcrt4/tests/server.idl index 26d3373..53ec016 100644 --- a/dlls/rpcrt4/tests/server.idl +++ b/dlls/rpcrt4/tests/server.idl @@ -299,8 +299,9 @@ cpp_quote("#endif") { short n; [size_is(n)] short data[]; - } wire_bstr_t; + } user_bstr_t; + typedef [unique] user_bstr_t *wire_bstr_t; typedef [wire_marshal(wire_bstr_t)] short *bstr_t; unsigned hash_bstr(bstr_t s);
1
0
0
0
← Newer
1
...
59
60
61
62
63
64
65
...
122
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
Results per page:
10
25
50
100
200