Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
67eaffd8
Commit
67eaffd8
authored
Sep 06, 2002
by
Jon Griffiths
Committed by
Alexandre Julliard
Sep 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add @138,@157,@180,@197,@204.
@151-157: Parameters are const. @36 inserts MF_BITMAP's.
parent
c01cb754
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
93 additions
and
16 deletions
+93
-16
ordinal.c
dlls/shlwapi/ordinal.c
+88
-11
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+5
-5
No files found.
dlls/shlwapi/ordinal.c
View file @
67eaffd8
...
...
@@ -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
h
1
,
UINT
ui2
,
UINT
h3
,
LPCWSTR
p4
)
BOOL
WINAPI
SHLWAPI_36
(
HMENU
h
Menu
,
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
);
}
/*************************************************************************
...
...
@@ -911,11 +911,24 @@ INT WINAPI SHLWAPI_74(HWND hWnd, INT nItem, LPWSTR lpsDest,INT nDestLen)
}
/*************************************************************************
* @ [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
(
LP
STR
str1
,
LP
STR
str2
,
INT
len
)
DWORD
WINAPI
SHLWAPI_151
(
LP
CSTR
str1
,
LPC
STR
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
(
LP
WSTR
str1
,
LP
WSTR
str2
,
INT
len
)
DWORD
WINAPI
SHLWAPI_152
(
LP
CWSTR
str1
,
LPC
WSTR
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
(
LP
STR
str1
,
LP
STR
str2
,
DWORD
len
)
DWORD
WINAPI
SHLWAPI_153
(
LP
CSTR
str1
,
LPC
STR
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
(
LP
WSTR
str1
,
LP
WSTR
str2
,
DWORD
len
)
DWORD
WINAPI
SHLWAPI_154
(
LP
CWSTR
str1
,
LPC
WSTR
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
,
LP
STR
str2
)
DWORD
WINAPI
SHLWAPI_155
(
LPCSTR
str1
,
LPC
STR
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
,
LP
WSTR
str2
)
DWORD
WINAPI
SHLWAPI_156
(
LPCWSTR
str1
,
LPC
WSTR
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
,
LP
WSTR
str2
)
DWORD
WINAPI
SHLWAPI_158
(
LPCWSTR
str1
,
LPC
WSTR
str2
)
{
return
strcmpiW
(
str1
,
str2
);
}
...
...
@@ -1226,6 +1248,24 @@ DWORD WINAPI SHLWAPI_176 (
}
/*************************************************************************
* @ [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]
*
* Enable or disable a menu item.
...
...
@@ -1276,6 +1316,19 @@ DWORD WINAPI SHLWAPI_193 ()
}
/*************************************************************************
* @ [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]
*
* Copy interface pointer
...
...
@@ -1297,6 +1350,30 @@ DWORD WINAPI SHLWAPI_199 (
}
/*************************************************************************
* @ [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]
*
* Some sort of memory management process - associated with _210
...
...
dlls/shlwapi/shlwapi.spec
View file @
67eaffd8
...
...
@@ -137,7 +137,7 @@ init SHLWAPI_LibMain
135 forward @ user32.SendDlgItemMessageW
136 forward @ user32.SendMessageW
137 forward @ kernel32.SetCurrentDirectoryW
138 st
ub @
138 st
dcall @(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 st
ub @
157 st
dcall @(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 st
ub @
180 st
dcall @(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 st
ub @
197 st
dcall @(long ptr long) SHLWAPI_197
198 stub @
199 stdcall @(ptr ptr) SHLWAPI_199
200 stub @
201 stub @
202 stub @
203 stub @
204 st
ub @
204 st
dcall @(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 @
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment