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
61c49bd7
Commit
61c49bd7
authored
Nov 10, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement EnumTimeFormatsEx().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
49e5b9c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
lcformat.c
dlls/kernel32/lcformat.c
+22
-0
winnls.h
include/winnls.h
+2
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
61c49bd7
...
...
@@ -428,7 +428,7 @@
@ stdcall EnumSystemLocalesEx(ptr long long ptr)
@ stdcall EnumSystemLocalesW(ptr long)
@ stdcall EnumTimeFormatsA(ptr long long)
# @ stub EnumTimeFormatsEx
@ stdcall EnumTimeFormatsEx(ptr wstr long long)
@ stdcall EnumTimeFormatsW(ptr long long)
@ stdcall EnumUILanguagesA(ptr long long)
@ stdcall EnumUILanguagesW(ptr long long)
...
...
dlls/kernel32/lcformat.c
View file @
61c49bd7
...
...
@@ -1924,9 +1924,11 @@ struct enumtimeformats_context {
enum
enum_callback_type
type
;
/* callback kind */
union
{
TIMEFMT_ENUMPROCW
callback
;
/* user callback pointer */
TIMEFMT_ENUMPROCEX
callbackex
;
}
u
;
LCID
lcid
;
/* locale of interest */
DWORD
flags
;
LPARAM
lParam
;
BOOL
unicode
;
/* A vs W callback type, only for regular and Ex callbacks */
};
...
...
@@ -1970,6 +1972,9 @@ static BOOL NLS_EnumTimeFormats(struct enumtimeformats_context *ctxt)
case
CALLBACK_ENUMPROC
:
ctxt
->
u
.
callback
(
ctxt
->
unicode
?
bufW
:
(
WCHAR
*
)
bufA
);
break
;
case
CALLBACK_ENUMPROCEX
:
ctxt
->
u
.
callbackex
(
bufW
,
ctxt
->
lParam
);
break
;
default:
;
}
...
...
@@ -2020,6 +2025,23 @@ BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW proc, LCID lcid, DWORD flags)
return
NLS_EnumTimeFormats
(
&
ctxt
);
}
/**************************************************************************
* EnumTimeFormatsEx (KERNEL32.@)
*/
BOOL
WINAPI
EnumTimeFormatsEx
(
TIMEFMT_ENUMPROCEX
proc
,
const
WCHAR
*
locale
,
DWORD
flags
,
LPARAM
lParam
)
{
struct
enumtimeformats_context
ctxt
;
ctxt
.
type
=
CALLBACK_ENUMPROCEX
;
ctxt
.
u
.
callbackex
=
proc
;
ctxt
.
lcid
=
LocaleNameToLCID
(
locale
,
0
);
ctxt
.
flags
=
flags
;
ctxt
.
lParam
=
lParam
;
ctxt
.
unicode
=
TRUE
;
return
NLS_EnumTimeFormats
(
&
ctxt
);
}
struct
enumcalendar_context
{
enum
enum_callback_type
type
;
/* callback kind */
union
{
...
...
include/winnls.h
View file @
61c49bd7
...
...
@@ -735,6 +735,7 @@ typedef struct _nlsversioninfoex {
typedef
BOOL
(
CALLBACK
*
CALINFO_ENUMPROCEXEX
)(
LPWSTR
,
CALID
,
LPWSTR
,
LPARAM
);
typedef
BOOL
(
CALLBACK
*
DATEFMT_ENUMPROCEXEX
)(
LPWSTR
,
CALID
,
LPARAM
);
typedef
BOOL
(
CALLBACK
*
TIMEFMT_ENUMPROCEX
)(
LPWSTR
,
LPARAM
);
#if defined(STRICT)
typedef
BOOL
(
CALLBACK
*
CALINFO_ENUMPROCA
)(
LPSTR
);
typedef
BOOL
(
CALLBACK
*
CALINFO_ENUMPROCW
)(
LPWSTR
);
...
...
@@ -862,6 +863,7 @@ WINBASEAPI BOOL WINAPI EnumLanguageGroupLocalesW(LANGGROUPLOCALE_ENUMPROC
WINBASEAPI
BOOL
WINAPI
EnumTimeFormatsA
(
TIMEFMT_ENUMPROCA
,
LCID
,
DWORD
);
WINBASEAPI
BOOL
WINAPI
EnumTimeFormatsW
(
TIMEFMT_ENUMPROCW
,
LCID
,
DWORD
);
#define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
WINBASEAPI
BOOL
WINAPI
EnumTimeFormatsEx
(
TIMEFMT_ENUMPROCEX
,
LPCWSTR
,
DWORD
,
LPARAM
);
WINBASEAPI
BOOL
WINAPI
EnumUILanguagesA
(
UILANGUAGE_ENUMPROCA
,
DWORD
,
LONG_PTR
);
WINBASEAPI
BOOL
WINAPI
EnumUILanguagesW
(
UILANGUAGE_ENUMPROCW
,
DWORD
,
LONG_PTR
);
#define EnumUILanguages WINELIB_NAME_AW(EnumUILanguages)
...
...
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