- Implement ordinals 167 and 171.
- Add stubs for ordinals 282 and 406.
This commit is contained in:
parent
e56d618613
commit
75edee3d55
|
@ -976,22 +976,32 @@ LONG WINAPI SHLWAPI_165(HWND hwnd, INT offset, UINT wMask, UINT wFlags)
|
|||
/*************************************************************************
|
||||
* @ [SHLWAPI.167]
|
||||
*
|
||||
* Change a windows parent.
|
||||
* Change a window's parent.
|
||||
*
|
||||
* PARAMS
|
||||
* hWnd [I] Window to change parent of
|
||||
* hWndParent [I] New parent window
|
||||
*
|
||||
* RETURNS
|
||||
* Nothing.
|
||||
* The old parent of hWnd.
|
||||
*
|
||||
* NOTES
|
||||
* If hWndParent is NULL (desktop), the window style is changed to WS_POPUP.
|
||||
* If hWndParent is NOT NULL then we set the WS_CHILD style.
|
||||
*/
|
||||
DWORD WINAPI SHLWAPI_167(HWND hWnd, HWND hWndParent)
|
||||
HWND WINAPI SHLWAPI_167(HWND hWnd, HWND hWndParent)
|
||||
{
|
||||
FIXME("%p,%p\n", hWnd, hWndParent);
|
||||
return 0;
|
||||
TRACE("%p, %p\n", hWnd, hWndParent);
|
||||
|
||||
if(GetParent(hWnd) == hWndParent)
|
||||
return 0;
|
||||
|
||||
if(hWndParent)
|
||||
SHLWAPI_165(hWnd, GWL_STYLE, WS_CHILD, WS_CHILD);
|
||||
else
|
||||
SHLWAPI_165(hWnd, GWL_STYLE, WS_POPUP, WS_POPUP);
|
||||
|
||||
return SetParent(hWnd, hWndParent);
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
@ -1100,12 +1110,40 @@ LPCSTR WINAPI SHLWAPI_170(LPCSTR lpszSrc)
|
|||
/*************************************************************************
|
||||
* @ [SHLWAPI.171]
|
||||
*
|
||||
* _SHIsSameObject
|
||||
* Check the two interfaces if they come from the same object.
|
||||
*
|
||||
* PARAMS
|
||||
* lpInt1 [I]: Interface to check against lpInt2.
|
||||
* lpInt2 [I]: Interface to check against lpInt1.
|
||||
*
|
||||
* RETURNS
|
||||
* TRUE: Interfaces come from the same object.
|
||||
* FALSE: Interfaces come from different objects.
|
||||
*/
|
||||
BOOL WINAPI SHLWAPI_171(LPVOID x, LPVOID y)
|
||||
BOOL WINAPI SHLWAPI_171(IUnknown* lpInt1, IUnknown* lpInt2)
|
||||
{
|
||||
FIXME("%p %p\n",x,y);
|
||||
return 0;
|
||||
LPVOID lpUnknown1, lpUnknown2;
|
||||
|
||||
TRACE("%p %p\n", lpInt1, lpInt2);
|
||||
|
||||
if (!lpInt1 || !lpInt2)
|
||||
return FALSE;
|
||||
|
||||
if (lpInt1 == lpInt2)
|
||||
return TRUE;
|
||||
|
||||
if (!SUCCEEDED(IUnknown_QueryInterface(lpInt1, &IID_IUnknown,
|
||||
(LPVOID *)&lpUnknown1)))
|
||||
return FALSE;
|
||||
|
||||
if (!SUCCEEDED(IUnknown_QueryInterface(lpInt2, &IID_IUnknown,
|
||||
(LPVOID *)&lpUnknown2)))
|
||||
return FALSE;
|
||||
|
||||
if (lpUnknown1 == lpUnknown2)
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
@ -2054,6 +2092,18 @@ HRESULT WINAPI SHLWAPI_281(LPVOID w, LPVOID x, LPVOID y, LPVOID z)
|
|||
return E_FAIL;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.282]
|
||||
*
|
||||
* This function seems to be a forward to SHLWAPI.281 (whatever THAT
|
||||
* function does...).
|
||||
*/
|
||||
HRESULT WINAPI SHLWAPI_282(LPVOID w, LPVOID x, LPVOID y, LPVOID z)
|
||||
{
|
||||
FIXME("%p %p %p %p\n", w, x, y, z);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.284]
|
||||
*
|
||||
|
@ -2528,6 +2578,15 @@ COLORREF WINAPI ColorHLSToRGB(WORD wHue, WORD wLuminosity, WORD wSaturation)
|
|||
return RGB(wRed, wRed, wRed);
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.406]
|
||||
*/
|
||||
DWORD WINAPI SHLWAPI_406(LPVOID u, LPVOID v, LPVOID w, LPVOID x, LPVOID y, LPVOID z)
|
||||
{
|
||||
FIXME("%p %p %p %p %p %p\n", u, v, w, x, y, z);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.413]
|
||||
*
|
||||
|
|
|
@ -279,7 +279,7 @@
|
|||
279 stub @
|
||||
280 stub @
|
||||
281 stdcall @(ptr ptr ptr ptr) SHLWAPI_281
|
||||
282 stub @
|
||||
282 stdcall @(ptr ptr ptr ptr) SHLWAPI_282
|
||||
283 stub @
|
||||
284 stdcall @(ptr ptr ptr) SHLWAPI_284
|
||||
285 stub @
|
||||
|
@ -403,7 +403,7 @@
|
|||
403 stdcall @(ptr) SHLWAPI_403
|
||||
404 stdcall ColorHLSToRGB(long long long) ColorHLSToRGB
|
||||
405 stub @
|
||||
406 stub @
|
||||
406 stdcall @(ptr ptr ptr ptr ptr ptr) SHLWAPI_406
|
||||
407 stub @
|
||||
408 stub @
|
||||
409 stub @
|
||||
|
|
Loading…
Reference in New Issue