Add @138,@157,@180,@197,@204.
@151-157: Parameters are const. @36 inserts MF_BITMAP's.
This commit is contained in:
parent
c01cb754c3
commit
67eaffd873
|
@ -886,12 +886,12 @@ BOOL WINAPI SHLWAPI_35(LPVOID p1, DWORD dw2, LPVOID p3)
|
|||
/*************************************************************************
|
||||
* @ [SHLWAPI.36]
|
||||
*
|
||||
* Insert a bitmap menu item into a menu.
|
||||
*/
|
||||
BOOL WINAPI SHLWAPI_36(HMENU h1, UINT ui2, UINT h3, LPCWSTR p4)
|
||||
BOOL WINAPI SHLWAPI_36(HMENU hMenu, UINT flags, UINT id, LPCWSTR str)
|
||||
{
|
||||
TRACE("(0x%08x, 0x%08x, 0x%08x, %s): stub\n",
|
||||
h1, ui2, h3, debugstr_w(p4));
|
||||
return AppendMenuW(h1, ui2, h3, p4);
|
||||
TRACE("(0x%08x,0x%08x,0x%08x,%s)\n",hMenu, flags, id, debugstr_w(str));
|
||||
return InsertMenuW(hMenu, -1, flags | MF_BITMAP, id, str);
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
@ -910,12 +910,25 @@ INT WINAPI SHLWAPI_74(HWND hWnd, INT nItem, LPWSTR lpsDest,INT nDestLen)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.138]
|
||||
*
|
||||
* Set the text of a dialog item if it exists.
|
||||
*/
|
||||
BOOL WINAPI SHLWAPI_138(HWND hWnd, INT iItem, LPCWSTR lpszText)
|
||||
{
|
||||
HWND hWndItem = GetDlgItem(hWnd, iItem);
|
||||
if (hWndItem)
|
||||
return SetWindowTextW(hWndItem, lpszText);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.151]
|
||||
* Function: Compare two ASCII strings for "len" bytes.
|
||||
* Returns: *str1-*str2 (case sensitive)
|
||||
*/
|
||||
DWORD WINAPI SHLWAPI_151(LPSTR str1, LPSTR str2, INT len)
|
||||
DWORD WINAPI SHLWAPI_151(LPCSTR str1, LPCSTR str2, INT len)
|
||||
{
|
||||
return strncmp( str1, str2, len );
|
||||
}
|
||||
|
@ -926,7 +939,7 @@ DWORD WINAPI SHLWAPI_151(LPSTR str1, LPSTR str2, INT len)
|
|||
* Function: Compare two WIDE strings for "len" bytes.
|
||||
* Returns: *str1-*str2 (case sensitive)
|
||||
*/
|
||||
DWORD WINAPI SHLWAPI_152(LPWSTR str1, LPWSTR str2, INT len)
|
||||
DWORD WINAPI SHLWAPI_152(LPCWSTR str1, LPCWSTR str2, INT len)
|
||||
{
|
||||
return strncmpW( str1, str2, len );
|
||||
}
|
||||
|
@ -936,7 +949,7 @@ DWORD WINAPI SHLWAPI_152(LPWSTR str1, LPWSTR str2, INT len)
|
|||
* Function: Compare two ASCII strings for "len" bytes via caseless compare.
|
||||
* Returns: *str1-*str2 (case insensitive)
|
||||
*/
|
||||
DWORD WINAPI SHLWAPI_153(LPSTR str1, LPSTR str2, DWORD len)
|
||||
DWORD WINAPI SHLWAPI_153(LPCSTR str1, LPCSTR str2, DWORD len)
|
||||
{
|
||||
return strncasecmp( str1, str2, len );
|
||||
}
|
||||
|
@ -947,7 +960,7 @@ DWORD WINAPI SHLWAPI_153(LPSTR str1, LPSTR str2, DWORD len)
|
|||
* Function: Compare two WIDE strings for "len" bytes via caseless compare.
|
||||
* Returns: *str1-*str2 (case insensitive)
|
||||
*/
|
||||
DWORD WINAPI SHLWAPI_154(LPWSTR str1, LPWSTR str2, DWORD len)
|
||||
DWORD WINAPI SHLWAPI_154(LPCWSTR str1, LPCWSTR str2, DWORD len)
|
||||
{
|
||||
return strncmpiW( str1, str2, len );
|
||||
}
|
||||
|
@ -957,7 +970,7 @@ DWORD WINAPI SHLWAPI_154(LPWSTR str1, LPWSTR str2, DWORD len)
|
|||
*
|
||||
* Case sensitive string compare (ASCII). Does not SetLastError().
|
||||
*/
|
||||
DWORD WINAPI SHLWAPI_155 ( LPSTR str1, LPSTR str2)
|
||||
DWORD WINAPI SHLWAPI_155(LPCSTR str1, LPCSTR str2)
|
||||
{
|
||||
return strcmp(str1, str2);
|
||||
}
|
||||
|
@ -967,17 +980,26 @@ DWORD WINAPI SHLWAPI_155 ( LPSTR str1, LPSTR str2)
|
|||
*
|
||||
* Case sensitive string compare. Does not SetLastError().
|
||||
*/
|
||||
DWORD WINAPI SHLWAPI_156 ( LPWSTR str1, LPWSTR str2)
|
||||
DWORD WINAPI SHLWAPI_156(LPCWSTR str1, LPCWSTR str2)
|
||||
{
|
||||
return strcmpW( str1, str2 );
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.157]
|
||||
*
|
||||
* Case insensitive string compare (ASCII). Does not SetLastError().
|
||||
*/
|
||||
DWORD WINAPI SHLWAPI_157(LPCSTR str1, LPCSTR str2)
|
||||
{
|
||||
return strcasecmp(str1, str2);
|
||||
}
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.158]
|
||||
*
|
||||
* Case insensitive string compare. Does not SetLastError(). ??
|
||||
*/
|
||||
DWORD WINAPI SHLWAPI_158 ( LPWSTR str1, LPWSTR str2)
|
||||
DWORD WINAPI SHLWAPI_158 (LPCWSTR str1, LPCWSTR str2)
|
||||
{
|
||||
return strcmpiW( str1, str2 );
|
||||
}
|
||||
|
@ -1225,6 +1247,24 @@ DWORD WINAPI SHLWAPI_176 (
|
|||
return ret;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.180]
|
||||
*
|
||||
* Remove all sub-menus from a menu.
|
||||
*/
|
||||
DWORD WINAPI SHLWAPI_180(HMENU hMenu)
|
||||
{
|
||||
int iItemCount = GetMenuItemCount(hMenu) - 1;
|
||||
while (iItemCount >= 0)
|
||||
{
|
||||
HMENU hSubMenu = GetSubMenu(hMenu, iItemCount);
|
||||
if (hSubMenu)
|
||||
RemoveMenu(hMenu, iItemCount, 0x400);
|
||||
iItemCount--;
|
||||
}
|
||||
return iItemCount;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.181]
|
||||
*
|
||||
|
@ -1275,6 +1315,19 @@ DWORD WINAPI SHLWAPI_193 ()
|
|||
return ret;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.197]
|
||||
*
|
||||
* Blank out a region of text by drawing the background only.
|
||||
*/
|
||||
DWORD WINAPI SHLWAPI_197(HDC hDC, LPCRECT pRect, COLORREF cRef)
|
||||
{
|
||||
COLORREF cOldColor = SetBkColor(hDC, cRef);
|
||||
ExtTextOutA(hDC, 0, 0, ETO_OPAQUE, pRect, 0, 0, 0);
|
||||
SetBkColor(hDC, cOldColor);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.199]
|
||||
*
|
||||
|
@ -1296,6 +1349,30 @@ DWORD WINAPI SHLWAPI_199 (
|
|||
return 4;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.204]
|
||||
*
|
||||
* Determine if a window is not a child of another window.
|
||||
*
|
||||
* PARAMS
|
||||
* hParent [I] Suspected parent window
|
||||
* hChild [I] Suspected child window
|
||||
*
|
||||
* RETURNS
|
||||
* TRUE: If hChild is a child window of hParent
|
||||
* FALSE: If hChild is not a child window of hParent, or they are equal
|
||||
*/
|
||||
BOOL WINAPI SHLWAPI_204(HWND hParent, HWND hChild)
|
||||
{
|
||||
TRACE("(%08x,%08x)\n", hParent, hChild);
|
||||
|
||||
if (!hParent || !hChild)
|
||||
return TRUE;
|
||||
else if(hParent == hChild)
|
||||
return FALSE;
|
||||
return !IsChild(hParent, hChild);
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* @ [SHLWAPI.208]
|
||||
*
|
||||
|
|
|
@ -137,7 +137,7 @@ init SHLWAPI_LibMain
|
|||
135 forward @ user32.SendDlgItemMessageW
|
||||
136 forward @ user32.SendMessageW
|
||||
137 forward @ kernel32.SetCurrentDirectoryW
|
||||
138 stub @
|
||||
138 stdcall @(long long wstr) SHLWAPI_138
|
||||
139 stub @
|
||||
140 forward @ user32.SetPropW
|
||||
141 forward @ user32.SetWindowLongW
|
||||
|
@ -156,7 +156,7 @@ init SHLWAPI_LibMain
|
|||
154 stdcall @(wstr wstr long) SHLWAPI_154
|
||||
155 stdcall @(str str) SHLWAPI_155
|
||||
156 stdcall @(wstr wstr) SHLWAPI_156
|
||||
157 stub @
|
||||
157 stdcall @(str str) SHLWAPI_157
|
||||
158 stdcall @(wstr wstr) SHLWAPI_158
|
||||
159 forward @ kernel32.CompareStringW
|
||||
160 stub @
|
||||
|
@ -179,7 +179,7 @@ init SHLWAPI_LibMain
|
|||
177 stub @
|
||||
178 stub @
|
||||
179 stub @
|
||||
180 stub @
|
||||
180 stdcall @(long) SHLWAPI_180
|
||||
181 stdcall @(long long long) SHLWAPI_181
|
||||
182 stub @
|
||||
183 stdcall @(ptr) SHLWAPI_183
|
||||
|
@ -196,14 +196,14 @@ init SHLWAPI_LibMain
|
|||
194 stub @
|
||||
195 stub @
|
||||
196 stub @
|
||||
197 stub @
|
||||
197 stdcall @(long ptr long) SHLWAPI_197
|
||||
198 stub @
|
||||
199 stdcall @(ptr ptr) SHLWAPI_199
|
||||
200 stub @
|
||||
201 stub @
|
||||
202 stub @
|
||||
203 stub @
|
||||
204 stub @
|
||||
204 stdcall @(long long) SHLWAPI_204
|
||||
205 stdcall @(long str str ptr ptr ptr) SHLWAPI_205
|
||||
206 stdcall @(long wstr wstr ptr ptr ptr) SHLWAPI_206
|
||||
207 stub @
|
||||
|
|
Loading…
Reference in New Issue