Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4d05cfe5
Commit
4d05cfe5
authored
Jan 23, 2015
by
Daniel Scharrer
Committed by
Alexandre Julliard
Jan 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add stub implementation for EnumResourceLanguagesEx.
parent
59e3a851
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
10 deletions
+58
-10
api-ms-win-core-libraryloader-l1-1-1.spec
...ryloader-l1-1-1/api-ms-win-core-libraryloader-l1-1-1.spec
+2
-2
kernel32.spec
dlls/kernel32/kernel32.spec
+2
-0
resource.c
dlls/kernel32/resource.c
+46
-8
winbase.h
include/winbase.h
+8
-0
No files found.
dlls/api-ms-win-core-libraryloader-l1-1-1/api-ms-win-core-libraryloader-l1-1-1.spec
View file @
4d05cfe5
@ stub AddDllDirectory
@ stdcall DisableThreadLibraryCalls(long) kernel32.DisableThreadLibraryCalls
@ st
ub
EnumResourceLanguagesExA
@ st
ub
EnumResourceLanguagesExW
@ st
dcall EnumResourceLanguagesExA(long str str ptr long long long) kernel32.
EnumResourceLanguagesExA
@ st
dcall EnumResourceLanguagesExW(long wstr wstr ptr long long long) kernel32.
EnumResourceLanguagesExW
@ stub EnumResourceNamesExA
@ stub EnumResourceNamesExW
@ stub EnumResourceTypesExA
...
...
dlls/kernel32/kernel32.spec
View file @
4d05cfe5
...
...
@@ -323,6 +323,8 @@
@ stdcall EnumLanguageGroupLocalesA(ptr long long ptr)
@ stdcall EnumLanguageGroupLocalesW(ptr long long ptr)
@ stdcall EnumResourceLanguagesA(long str str ptr long)
@ stdcall EnumResourceLanguagesExA(long str str ptr long long long)
@ stdcall EnumResourceLanguagesExW(long wstr wstr ptr long long long)
@ stdcall EnumResourceLanguagesW(long wstr wstr ptr long)
@ stdcall EnumResourceNamesA(long str ptr long)
@ stdcall EnumResourceNamesW(long wstr ptr long)
...
...
dlls/kernel32/resource.c
View file @
4d05cfe5
...
...
@@ -437,10 +437,11 @@ done:
/**********************************************************************
* EnumResourceLanguagesA (KERNEL32.@)
* EnumResourceLanguages
Ex
A (KERNEL32.@)
*/
BOOL
WINAPI
EnumResourceLanguagesA
(
HMODULE
hmod
,
LPCSTR
type
,
LPCSTR
name
,
ENUMRESLANGPROCA
lpfun
,
LONG_PTR
lparam
)
BOOL
WINAPI
EnumResourceLanguagesExA
(
HMODULE
hmod
,
LPCSTR
type
,
LPCSTR
name
,
ENUMRESLANGPROCA
lpfun
,
LONG_PTR
lparam
,
DWORD
flags
,
LANGID
lang
)
{
int
i
;
BOOL
ret
=
FALSE
;
...
...
@@ -450,7 +451,15 @@ BOOL WINAPI EnumResourceLanguagesA( HMODULE hmod, LPCSTR type, LPCSTR name,
const
IMAGE_RESOURCE_DIRECTORY
*
basedir
,
*
resdir
;
const
IMAGE_RESOURCE_DIRECTORY_ENTRY
*
et
;
TRACE
(
"%p %s %s %p %lx
\n
"
,
hmod
,
debugstr_a
(
type
),
debugstr_a
(
name
),
lpfun
,
lparam
);
TRACE
(
"%p %s %s %p %lx %x %d
\n
"
,
hmod
,
debugstr_a
(
type
),
debugstr_a
(
name
),
lpfun
,
lparam
,
flags
,
lang
);
if
(
flags
&
(
RESOURCE_ENUM_MUI
|
RESOURCE_ENUM_MUI_SYSTEM
|
RESOURCE_ENUM_VALIDATE
))
FIXME
(
"unimplemented flags: %x
\n
"
,
flags
);
if
(
!
flags
)
flags
=
RESOURCE_ENUM_LN
|
RESOURCE_ENUM_MUI
;
if
(
!
(
flags
&
RESOURCE_ENUM_LN
))
return
ret
;
if
(
!
hmod
)
hmod
=
GetModuleHandleA
(
NULL
);
typeW
.
Buffer
=
nameW
.
Buffer
=
NULL
;
...
...
@@ -489,10 +498,21 @@ done:
/**********************************************************************
* EnumResourceLanguages
W
(KERNEL32.@)
* EnumResourceLanguages
A
(KERNEL32.@)
*/
BOOL
WINAPI
EnumResourceLanguagesW
(
HMODULE
hmod
,
LPCWSTR
type
,
LPCWSTR
name
,
ENUMRESLANGPROCW
lpfun
,
LONG_PTR
lparam
)
BOOL
WINAPI
EnumResourceLanguagesA
(
HMODULE
hmod
,
LPCSTR
type
,
LPCSTR
name
,
ENUMRESLANGPROCA
lpfun
,
LONG_PTR
lparam
)
{
return
EnumResourceLanguagesExA
(
hmod
,
type
,
name
,
lpfun
,
lparam
,
0
,
0
);
}
/**********************************************************************
* EnumResourceLanguagesExW (KERNEL32.@)
*/
BOOL
WINAPI
EnumResourceLanguagesExW
(
HMODULE
hmod
,
LPCWSTR
type
,
LPCWSTR
name
,
ENUMRESLANGPROCW
lpfun
,
LONG_PTR
lparam
,
DWORD
flags
,
LANGID
lang
)
{
int
i
;
BOOL
ret
=
FALSE
;
...
...
@@ -502,7 +522,15 @@ BOOL WINAPI EnumResourceLanguagesW( HMODULE hmod, LPCWSTR type, LPCWSTR name,
const
IMAGE_RESOURCE_DIRECTORY
*
basedir
,
*
resdir
;
const
IMAGE_RESOURCE_DIRECTORY_ENTRY
*
et
;
TRACE
(
"%p %s %s %p %lx
\n
"
,
hmod
,
debugstr_w
(
type
),
debugstr_w
(
name
),
lpfun
,
lparam
);
TRACE
(
"%p %s %s %p %lx %x %d
\n
"
,
hmod
,
debugstr_w
(
type
),
debugstr_w
(
name
),
lpfun
,
lparam
,
flags
,
lang
);
if
(
flags
&
(
RESOURCE_ENUM_MUI
|
RESOURCE_ENUM_MUI_SYSTEM
|
RESOURCE_ENUM_VALIDATE
))
FIXME
(
"unimplemented flags: %x
\n
"
,
flags
);
if
(
!
flags
)
flags
=
RESOURCE_ENUM_LN
|
RESOURCE_ENUM_MUI
;
if
(
!
(
flags
&
RESOURCE_ENUM_LN
))
return
ret
;
if
(
!
hmod
)
hmod
=
GetModuleHandleW
(
NULL
);
typeW
.
Buffer
=
nameW
.
Buffer
=
NULL
;
...
...
@@ -541,6 +569,16 @@ done:
/**********************************************************************
* EnumResourceLanguagesW (KERNEL32.@)
*/
BOOL
WINAPI
EnumResourceLanguagesW
(
HMODULE
hmod
,
LPCWSTR
type
,
LPCWSTR
name
,
ENUMRESLANGPROCW
lpfun
,
LONG_PTR
lparam
)
{
return
EnumResourceLanguagesExW
(
hmod
,
type
,
name
,
lpfun
,
lparam
,
0
,
0
);
}
/**********************************************************************
* LoadResource (KERNEL32.@)
*/
HGLOBAL
WINAPI
LoadResource
(
HINSTANCE
hModule
,
HRSRC
hRsrc
)
...
...
include/winbase.h
View file @
4d05cfe5
...
...
@@ -1542,6 +1542,11 @@ typedef struct _REASON_CONTEXT
}
Reason
;
}
REASON_CONTEXT
,
*
PREASON_CONTEXT
;
#define RESOURCE_ENUM_LN 0x0001
#define RESOURCE_ENUM_MUI 0x0002
#define RESOURCE_ENUM_MUI_SYSTEM 0x0004
#define RESOURCE_ENUM_VALIDATE 0x0008
WINBASEAPI
BOOL
WINAPI
ActivateActCtx
(
HANDLE
,
ULONG_PTR
*
);
WINADVAPI
BOOL
WINAPI
AddAccessAllowedAce
(
PACL
,
DWORD
,
DWORD
,
PSID
);
WINADVAPI
BOOL
WINAPI
AddAccessAllowedAceEx
(
PACL
,
DWORD
,
DWORD
,
DWORD
,
PSID
);
...
...
@@ -1749,6 +1754,9 @@ WINBASEAPI void WINAPI EnterCriticalSection(CRITICAL_SECTION *lpCrit);
WINBASEAPI
BOOL
WINAPI
EnumResourceLanguagesA
(
HMODULE
,
LPCSTR
,
LPCSTR
,
ENUMRESLANGPROCA
,
LONG_PTR
);
WINBASEAPI
BOOL
WINAPI
EnumResourceLanguagesW
(
HMODULE
,
LPCWSTR
,
LPCWSTR
,
ENUMRESLANGPROCW
,
LONG_PTR
);
#define EnumResourceLanguages WINELIB_NAME_AW(EnumResourceLanguages)
WINBASEAPI
BOOL
WINAPI
EnumResourceLanguagesExA
(
HMODULE
,
LPCSTR
,
LPCSTR
,
ENUMRESLANGPROCA
,
LONG_PTR
,
DWORD
,
LANGID
);
WINBASEAPI
BOOL
WINAPI
EnumResourceLanguagesExW
(
HMODULE
,
LPCWSTR
,
LPCWSTR
,
ENUMRESLANGPROCW
,
LONG_PTR
,
DWORD
,
LANGID
);
#define EnumResourceLanguagesEx WINELIB_NAME_AW(EnumResourceLanguagesEx)
WINBASEAPI
BOOL
WINAPI
EnumResourceNamesA
(
HMODULE
,
LPCSTR
,
ENUMRESNAMEPROCA
,
LONG_PTR
);
WINBASEAPI
BOOL
WINAPI
EnumResourceNamesW
(
HMODULE
,
LPCWSTR
,
ENUMRESNAMEPROCW
,
LONG_PTR
);
#define EnumResourceNames WINELIB_NAME_AW(EnumResourceNames)
...
...
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