Implement @13, 160, 161, 173, 177, 178, 189, 192, 221, 238, 239, 257,

278, 279, 285, 287, 355, 363, 413, ColorRGBToHLS.
Stub @191,ColorAdjustLuma.
Misc cleanups and documentation updates.
This commit is contained in:
Jon Griffiths 2003-07-26 20:25:14 +00:00 committed by Alexandre Julliard
parent efca0f6a91
commit 2b444ed260
3 changed files with 1497 additions and 488 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,74 +0,0 @@
/*
* Internal structures (read "undocumented") used by the
* ordinal entry points.
*
* Determined by experimentation.
*
* Copyright 2001 Guy Albertelli
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
typedef struct {
INT size; /* [in] (always 0x18) */
LPCSTR ap1; /* [out] start of scheme */
INT sizep1; /* [out] size of scheme (until colon) */
LPCSTR ap2; /* [out] pointer following first colon */
INT sizep2; /* [out] size of remainder */
INT fcncde; /* [out] function match of p1 (0 if unknown) */
} UNKNOWN_SHLWAPI_1;
DWORD WINAPI SHLWAPI_1(LPCSTR x, UNKNOWN_SHLWAPI_1 *y);
typedef struct {
INT size; /* [in] (always 0x18) */
LPCWSTR ap1; /* [out] start of scheme */
INT sizep1; /* [out] size of scheme (until colon) */
LPCWSTR ap2; /* [out] pointer following first colon */
INT sizep2; /* [out] size of remainder */
INT fcncde; /* [out] function match of p1 (0 if unknown) */
} UNKNOWN_SHLWAPI_2;
DWORD WINAPI SHLWAPI_2(LPCWSTR x, UNKNOWN_SHLWAPI_2 *y);
HRESULT WINAPI SHLWAPI_436(LPCWSTR idstr, CLSID *id);
/* Macro to get function pointer for a module*/
#define GET_FUNC(func, module, name, fail) \
do { \
if (!func) { \
if (!SHLWAPI_h##module && !(SHLWAPI_h##module = LoadLibraryA(#module ".dll"))) return fail; \
if (!(func = (void*)GetProcAddress(SHLWAPI_h##module, name))) return fail; \
} \
} while (0)
/* SHLWAPI_266 definitions and structures */
#define SHELL_NO_POLICY -1
typedef struct tagPOLICYDATA
{
DWORD policy; /* flags value passed to SHRestricted */
LPCWSTR appstr; /* application str such as "Explorer" */
LPCWSTR keystr; /* name of the actual registry key / policy */
} POLICYDATA, *LPPOLICYDATA;
extern HMODULE SHLWAPI_hshell32;
/* Shared internal functions */
BOOL WINAPI SHLWAPI_PathFindLocalExeA(LPSTR lpszPath, DWORD dwWhich);
BOOL WINAPI SHLWAPI_PathFindLocalExeW(LPWSTR lpszPath, DWORD dwWhich);
BOOL WINAPI SHLWAPI_PathFindOnPathExA(LPSTR lpszFile,LPCSTR *lppszOtherDirs,DWORD dwWhich);
BOOL WINAPI SHLWAPI_PathFindOnPathExW(LPWSTR lpszFile,LPCWSTR *lppszOtherDirs,DWORD dwWhich);

View File

@ -39,7 +39,7 @@
39 stdcall @(wstr long) user32.CharLowerBuffW 39 stdcall @(wstr long) user32.CharLowerBuffW
40 stdcall @(wstr) user32.CharNextW 40 stdcall @(wstr) user32.CharNextW
41 stdcall @(wstr wstr) user32.CharPrevW 41 stdcall @(wstr wstr) user32.CharPrevW
42 stub @ 42 stdcall @(wstr) user32.CharToOemW
43 stdcall @(wstr) user32.CharUpperW 43 stdcall @(wstr) user32.CharUpperW
44 stdcall @(wstr long) user32.CharUpperBuffW 44 stdcall @(wstr long) user32.CharUpperBuffW
45 stdcall @(long long wstr long wstr long) kernel32.CompareStringW 45 stdcall @(long long wstr long wstr long) kernel32.CompareStringW
@ -55,8 +55,8 @@
55 stdcall @(long wstr wstr long long long long long long long long ptr) user32.CreateWindowExW 55 stdcall @(long wstr wstr long long long long long long long long ptr) user32.CreateWindowExW
56 stdcall @(long long long long) user32.DefWindowProcW 56 stdcall @(long long long long) user32.DefWindowProcW
57 stdcall @(wstr) kernel32.DeleteFileW 57 stdcall @(wstr) kernel32.DeleteFileW
58 stub @ 58 stdcall @(long ptr long ptr long) user32.DialogBoxIndirectParamW
59 stub @ 59 stdcall @(long wstr long ptr long) user32.DialogBoxParamW
60 stdcall @(ptr) user32.DispatchMessageW 60 stdcall @(ptr) user32.DispatchMessageW
61 stdcall @(long wstr long ptr long) user32.DrawTextW 61 stdcall @(long wstr long ptr long) user32.DrawTextW
62 stdcall @(long wstr ptr long) gdi32.EnumFontFamiliesW 62 stdcall @(long wstr ptr long) gdi32.EnumFontFamiliesW
@ -136,7 +136,7 @@
136 stdcall @(long long long long) user32.SendMessageW 136 stdcall @(long long long long) user32.SendMessageW
137 stdcall @(wstr) kernel32.SetCurrentDirectoryW 137 stdcall @(wstr) kernel32.SetCurrentDirectoryW
138 stdcall @(long long wstr) SHLWAPI_138 138 stdcall @(long long wstr) SHLWAPI_138
139 stub @ 139 stdcall @(long long long ptr) user32.SetMenuItemInfoW
140 stdcall @(long wstr long) user32.SetPropW 140 stdcall @(long wstr long) user32.SetPropW
141 stdcall @(long long long) user32.SetWindowLongW 141 stdcall @(long long long) user32.SetWindowLongW
142 stdcall @(long long long long) user32.SetWindowsHookExW 142 stdcall @(long long long long) user32.SetWindowsHookExW
@ -157,8 +157,8 @@
157 stdcall @(str str) SHLWAPI_157 157 stdcall @(str str) SHLWAPI_157
158 stdcall @(wstr wstr) SHLWAPI_158 158 stdcall @(wstr wstr) SHLWAPI_158
159 stdcall @(long long wstr long wstr long) kernel32.CompareStringW 159 stdcall @(long long wstr long wstr long) kernel32.CompareStringW
160 stub @ 160 stdcall -noname SHLWAPI_160(ptr long)
161 stub @ 161 stdcall -noname SHLWAPI_161(ptr long)
162 stdcall @(str long) SHLWAPI_162 162 stdcall @(str long) SHLWAPI_162
163 stdcall @(ptr ptr long ptr ptr) SHLWAPI_163 163 stdcall @(ptr ptr long ptr ptr) SHLWAPI_163
164 stdcall @(ptr ptr long long ptr ptr) SHLWAPI_164 164 stdcall @(ptr ptr long long ptr ptr) SHLWAPI_164
@ -170,13 +170,13 @@
170 stdcall @(str) SHLWAPI_170 170 stdcall @(str) SHLWAPI_170
171 stdcall @(ptr ptr) SHLWAPI_171 171 stdcall @(ptr ptr) SHLWAPI_171
172 stdcall @(ptr ptr) SHLWAPI_172 172 stdcall @(ptr ptr) SHLWAPI_172
173 stub @ 173 stdcall -noname SHLWAPI_173(ptr ptr)
174 stdcall @(ptr ptr) SHLWAPI_174 174 stdcall @(ptr ptr) SHLWAPI_174
175 stdcall @(ptr ptr) SHLWAPI_175 175 stdcall @(ptr ptr) SHLWAPI_175
176 stdcall @(ptr ptr ptr ptr) SHLWAPI_176 176 stdcall @(ptr ptr ptr ptr) SHLWAPI_176
177 stub @ 177 stdcall -noname SHLWAPI_177(ptr wstr)
178 stub @ 178 stdcall -noname SHLWAPI_178(ptr long long long long)
179 stub @ 179 stdcall GetMenuPosFromID(ptr long)
180 stdcall @(long) SHLWAPI_180 180 stdcall @(long) SHLWAPI_180
181 stdcall @(long long long) SHLWAPI_181 181 stdcall @(long long long) SHLWAPI_181
182 stdcall @(long long long) SHLWAPI_182 182 stdcall @(long long long) SHLWAPI_182
@ -189,7 +189,7 @@
189 stdcall @(ptr ptr) SHLWAPI_189 189 stdcall @(ptr ptr) SHLWAPI_189
190 stub @ 190 stub @
191 stub @ 191 stub @
192 stub @ 192 stdcall -noname SHLWAPI_192(ptr long)
193 stdcall @() SHLWAPI_193 193 stdcall @() SHLWAPI_193
194 stub @ 194 stub @
195 stub @ 195 stub @
@ -218,7 +218,7 @@
218 stdcall @(long wstr ptr ptr) SHLWAPI_218 218 stdcall @(long wstr ptr ptr) SHLWAPI_218
219 stdcall @(long long long long) SHLWAPI_219 219 stdcall @(long long long long) SHLWAPI_219
220 stub @ 220 stub @
221 stub @ 221 stdcall -noname SHLWAPI_221(ptr)
222 stdcall -noname _SHGlobalCounterCreate(long) 222 stdcall -noname _SHGlobalCounterCreate(long)
223 stdcall -noname _SHGlobalCounterGetValue(long) 223 stdcall -noname _SHGlobalCounterGetValue(long)
224 stdcall -noname _SHGlobalCounterIncrement(long) 224 stdcall -noname _SHGlobalCounterIncrement(long)
@ -235,8 +235,8 @@
235 stub @ 235 stub @
236 stdcall @(ptr) SHLWAPI_236 236 stdcall @(ptr) SHLWAPI_236
237 stdcall @(ptr) SHLWAPI_237 237 stdcall @(ptr) SHLWAPI_237
238 stub @ 238 stdcall -noname SHLWAPI_238(ptr ptr long)
239 stdcall @(long str long) SHLWAPI_239 239 stdcall -noname SHLWAPI_239(ptr ptr long)
240 stdcall @(long long long long) SHLWAPI_240 240 stdcall @(long long long long) SHLWAPI_240
241 stdcall @() SHLWAPI_241 241 stdcall @() SHLWAPI_241
242 stub @ 242 stub @
@ -254,7 +254,7 @@
254 stdcall AssocQueryKeyA(long long str ptr ptr) 254 stdcall AssocQueryKeyA(long long str ptr ptr)
255 stdcall AssocQueryKeyW(long long wstr ptr ptr) 255 stdcall AssocQueryKeyW(long long wstr ptr ptr)
256 stub @ 256 stub @
257 stub @ 257 stdcall -noname SHLWAPI_257(long ptr long long ptr long)
258 stub @ 258 stub @
259 stub @ 259 stub @
260 stub @ 260 stub @
@ -276,15 +276,15 @@
276 stdcall @() SHLWAPI_276 276 stdcall @() SHLWAPI_276
277 stub @ 277 stub @
278 stdcall @(long long long long long long) SHLWAPI_278 278 stdcall @(long long long long long long) SHLWAPI_278
279 stub @ 279 stdcall -noname SHLWAPI_279(ptr ptr ptr)
280 stub @ 280 stdcall -noname SHLWAPI_280(ptr wstr long)
281 stdcall @(ptr ptr ptr ptr) SHLWAPI_281 281 stdcall @(ptr ptr ptr ptr) SHLWAPI_281
282 stdcall @(ptr ptr ptr ptr) SHLWAPI_282 282 stdcall @(ptr ptr ptr ptr) SHLWAPI_282
283 stub @ 283 stub @
284 stdcall @(ptr ptr ptr) SHLWAPI_284 284 stdcall @(ptr ptr ptr) SHLWAPI_284
285 stub @ 285 stdcall -noname SHLWAPI_285(ptr long)
286 stub @ 286 stub @
287 stdcall @(ptr ptr) SHLWAPI_287 287 stdcall -noname SHLWAPI_287(ptr long)
288 stub @ 288 stub @
289 stdcall @(wstr long long) SHLWAPI_289 289 stdcall @(wstr long long) SHLWAPI_289
290 stub @ 290 stub @
@ -352,7 +352,7 @@
352 stdcall @(ptr wstr ptr ptr) SHLWAPI_352 352 stdcall @(ptr wstr ptr ptr) SHLWAPI_352
353 stub @ 353 stub @
354 stub @ 354 stub @
355 stub @ 355 stdcall -noname SHLWAPI_355(ptr long)
356 stdcall -noname _CreateAllAccessSecurityAttributes(ptr ptr) 356 stdcall -noname _CreateAllAccessSecurityAttributes(ptr ptr)
357 stdcall @(wstr wstr wstr long long) SHLWAPI_357 357 stdcall @(wstr wstr wstr long long) SHLWAPI_357
358 stdcall @(wstr long long ptr ptr long) SHLWAPI_358 358 stdcall @(wstr long long ptr ptr long) SHLWAPI_358
@ -360,7 +360,7 @@
360 stdcall @(wstr) kernel32.RemoveDirectoryW 360 stdcall @(wstr) kernel32.RemoveDirectoryW
361 stdcall @(wstr ptr long) kernel32.GetShortPathNameW 361 stdcall @(wstr ptr long) kernel32.GetShortPathNameW
362 stdcall @(ptr ptr) advapi32.GetUserNameW 362 stdcall @(ptr ptr) advapi32.GetUserNameW
363 stub @ 363 stdcall -noname SHLWAPI_363(ptr ptr ptr long)
364 stdcall @(str str long) SHLWAPI_364 364 stdcall @(str str long) SHLWAPI_364
365 stub @ 365 stub @
366 stdcall @(long long ptr ptr ptr ptr ptr ptr) advapi32.RegEnumValueW 366 stdcall @(long long ptr ptr ptr ptr ptr ptr) advapi32.RegEnumValueW
@ -384,7 +384,7 @@
384 stdcall AssocQueryStringW(long long ptr ptr wstr ptr) 384 stdcall AssocQueryStringW(long long ptr ptr wstr ptr)
385 stdcall ChrCmpIA(long long) 385 stdcall ChrCmpIA(long long)
386 stdcall ChrCmpIW(long long) 386 stdcall ChrCmpIW(long long)
387 stub ColorAdjustLuma 387 stdcall ColorAdjustLuma(long long long)
388 stub @ 388 stub @
389 stdcall @(ptr) SHLWAPI_389 389 stdcall @(ptr) SHLWAPI_389
390 stdcall @(long wstr) SHLWAPI_390 390 stdcall @(long wstr) SHLWAPI_390
@ -446,7 +446,6 @@
446 stub @ 446 stub @
@ stdcall DllGetVersion (ptr) SHLWAPI_DllGetVersion @ stdcall DllGetVersion (ptr) SHLWAPI_DllGetVersion
@ stdcall GetMenuPosFromID(ptr long)
@ stdcall HashData (ptr long ptr long) @ stdcall HashData (ptr long ptr long)
@ stub IntlStrEqWorkerA @ stub IntlStrEqWorkerA
@ stub IntlStrEqWorkerW @ stub IntlStrEqWorkerW