ReactOS 0.4.16-dev-1605-g7dd1858
EnumSystemLocalesEx.c File Reference
#include "k32_vista.h"
#include <winuser.h>
Include dependency graph for EnumSystemLocalesEx.c:

Go to the source code of this file.

Classes

struct  enum_locale_ex_data
 

Functions

static BOOL CALLBACK enum_locale_ex_proc (HMODULE module, LPCWSTR type, LPCWSTR name, WORD lang, LONG_PTR lparam)
 
BOOL WINAPI EnumSystemLocalesEx (LOCALE_ENUMPROCEX proc, DWORD flags, LPARAM lparam, LPVOID reserved)
 

Function Documentation

◆ enum_locale_ex_proc()

static BOOL CALLBACK enum_locale_ex_proc ( HMODULE  module,
LPCWSTR  type,
LPCWSTR  name,
WORD  lang,
LONG_PTR  lparam 
)
static

Definition at line 21 of file EnumSystemLocalesEx.c.

23{
25 WCHAR buffer[256];
26 DWORD neutral;
27 unsigned int flags;
28
30 buffer, sizeof(buffer) / sizeof(WCHAR) );
32 LOCALE_INEUTRAL | LOCALE_NOUSEROVERRIDE | LOCALE_RETURN_NUMBER,
33 (LPWSTR)&neutral, sizeof(neutral) / sizeof(WCHAR) ))
34 neutral = 0;
37 if (data->flags && !(data->flags & flags)) return TRUE;
38 return data->proc( buffer, flags, data->lparam );
39}
@ lparam
Definition: SystemMenu.c:31
#define TRUE
Definition: types.h:120
INT WINAPI GetLocaleInfoW(LCID lcid, LCTYPE lctype, LPWSTR buffer, INT len)
Definition: locale.c:1675
unsigned long DWORD
Definition: ntddk_ex.h:95
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLuint buffer
Definition: glext.h:5915
GLbitfield flags
Definition: glext.h:7161
#define SORT_DEFAULT
#define MAKELCID(lgid, srtid)
static const WCHAR lang[]
Definition: wbemdisp.c:287
#define LOCALE_NEUTRALDATA
Definition: winnls.h:228
#define LOCALE_SNAME
Definition: winnls.h:137
#define LOCALE_SPECIFICDATA
Definition: winnls.h:229
#define LOCALE_INEUTRAL
Definition: winnls.h:163
#define LOCALE_NOUSEROVERRIDE
Definition: winnls.h:19
#define LOCALE_WINDOWS
Definition: winnls.h:224
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by EnumSystemLocalesEx().

◆ EnumSystemLocalesEx()

BOOL WINAPI EnumSystemLocalesEx ( LOCALE_ENUMPROCEX  proc,
DWORD  flags,
LPARAM  lparam,
LPVOID  reserved 
)

Definition at line 44 of file EnumSystemLocalesEx.c.

45{
48
49 if (reserved)
50 {
52 return FALSE;
53 }
54 data.proc = proc;
55 data.flags = flags;
56 data.lparam = lparam;
60 return TRUE;
61}
static BOOL CALLBACK enum_locale_ex_proc(HMODULE module, LPCWSTR type, LPCWSTR name, WORD lang, LONG_PTR lparam)
#define FALSE
Definition: types.h:117
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define SetLastError(x)
Definition: compat.h:752
HMODULE kernel32_handle
Definition: dllmain.c:26
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:838
BOOL WINAPI EnumResourceLanguagesW(HMODULE hmod, LPCWSTR type, LPCWSTR name, ENUMRESLANGPROCW lpfun, LONG_PTR lparam)
Definition: res.c:480
#define L(x)
Definition: resources.c:13
r reserved
Definition: btrfs.c:3006
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
#define MAKEINTRESOURCE(i)
Definition: ntverrsrc.c:25
static HANDLE proc()
Definition: pdb.c:34
#define RT_STRING
Definition: pedump.c:368
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Referenced by InitFunctionPointers().