Skip to content

Commit

Permalink
[PSDK] Add some missing constants to winnls.h
Browse files Browse the repository at this point in the history
  • Loading branch information
tkreuzer authored and DarkFire01 committed Nov 1, 2024
1 parent 4d2b26e commit 55954f8
Showing 1 changed file with 60 additions and 11 deletions.
71 changes: 60 additions & 11 deletions sdk/include/psdk/winnls.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ extern "C" {
#define LOCALE_RETURN_NUMBER 0x20000000
#endif
#define LOCALE_RETURN_GENITIVE_NAMES 0x10000000
#define LOCALE_ALLOW_NEUTRAL_NAMES 0x08000000
#define LOCALE_SLOCALIZEDDISPLAYNAME 0x00000002
#if (WINVER >= _WIN32_WINNT_VISTA)
#define LOCALE_SLOCALIZEDLANGUAGENAME 0x0000006f
#endif
#define LOCALE_SLOCALIZEDCOUNTRYNAME 0x00000006
#define LOCALE_ILANGUAGE 1
#define LOCALE_SLANGUAGE 2
#define LOCALE_SENGLANGUAGE 0x1001
Expand Down Expand Up @@ -152,17 +158,18 @@ extern "C" {
#endif /* (WINVER >= 0x0600) */

//#if (WINVER >= _WIN32_WINNT_WIN7)
#define LOCALE_IREADINGLAYOUT 0x0070
#define LOCALE_INEUTRAL 0x0071
#define LOCALE_SNATIVEDISPLAYNAME 0x0073
#define LOCALE_INEGATIVEPERCENT 0x0074
#define LOCALE_IPOSITIVEPERCENT 0x0075
#define LOCALE_SPERCENT 0x0076
#define LOCALE_SPERMILLE 0x0077
#define LOCALE_SMONTHDAY 0x0078
#define LOCALE_SSHORTTIME 0x0079
#define LOCALE_SOPENTYPELANGUAGETAG 0x007a
#define LOCALE_SSORTLOCALE 0x007b
#define LOCALE_IREADINGLAYOUT 0x00000070
#define LOCALE_INEUTRAL 0x00000071
#define LOCALE_SENGLISHDISPLAYNAME 0x00000072
#define LOCALE_SNATIVEDISPLAYNAME 0x00000073
#define LOCALE_INEGATIVEPERCENT 0x00000074
#define LOCALE_IPOSITIVEPERCENT 0x00000075
#define LOCALE_SPERCENT 0x00000076
#define LOCALE_SPERMILLE 0x00000077
#define LOCALE_SMONTHDAY 0x00000078
#define LOCALE_SSHORTTIME 0x00000079
#define LOCALE_SOPENTYPELANGUAGETAG 0x0000007a
#define LOCALE_SSORTLOCALE 0x0000007b
//#endif /* (WINVER >= _WIN32_WINNT_WIN7) */

#if (WINVER >= 0x0600)
Expand All @@ -179,8 +186,12 @@ extern "C" {
#define NORM_IGNORESYMBOLS 4
#define NORM_IGNOREWIDTH 131072
#define LINGUISTIC_IGNORECASE 0x00000010
#define LINGUISTIC_IGNOREDIACRITIC 0x00000020
#define NORM_LINGUISTIC_CASING 0x08000000
#define SORT_STRINGSORT 4096
//#if (WINVER >= _WIN32_WINNT_WIN7)
#define SORT_DIGITSASNUMBERS 0x00000008
//#endif // (WINVER >= _WIN32_WINNT_WIN7)
#define LCMAP_LOWERCASE 0x00000100
#define LCMAP_UPPERCASE 0x00000200
#define LCMAP_SORTKEY 0x00000400
Expand All @@ -202,6 +213,11 @@ extern "C" {
#define LCID_SUPPORTED 2
#define LCID_ALTERNATE_SORTS 4

#define FIND_STARTSWITH 0x00100000
#define FIND_ENDSWITH 0x00200000
#define FIND_FROMSTART 0x00400000
#define FIND_FROMEND 0x00800000

#define LOCALE_ALL 0x00
#define LOCALE_WINDOWS 0x01
#define LOCALE_SUPPLEMENTAL 0x02
Expand Down Expand Up @@ -452,6 +468,8 @@ extern "C" {
#define CAL_GREGORIAN_ARABIC 10
#define CAL_GREGORIAN_XLIT_ENGLISH 11
#define CAL_GREGORIAN_XLIT_FRENCH 12
#define CAL_PERSIAN 22
#define CAL_UMALQURA 23
#define CSTR_LESS_THAN 1
#define CSTR_EQUAL 2
#define CSTR_GREATER_THAN 3
Expand Down Expand Up @@ -513,6 +531,10 @@ typedef long LONG_PTR;
#define MUI_MACHINE_LANGUAGE_SETTINGS 0x400
#endif /* (WINVER >= 0x0600) */

//#if (WINVER >= _WIN32_WINNT_WIN8)
#define LOCALE_SRELATIVELONGDATE 0x0000007c // Long date without year, day of week, month, date, eg: for lock screen
//#endif

#ifndef RC_INVOKED
typedef DWORD LCTYPE;
typedef DWORD CALTYPE;
Expand Down Expand Up @@ -713,6 +735,33 @@ BOOL WINAPI EnumSystemLocalesW(_In_ LOCALE_ENUMPROCW, _In_ DWORD);
BOOL WINAPI EnumTimeFormatsA(_In_ TIMEFMT_ENUMPROCA, _In_ LCID, _In_ DWORD);
BOOL WINAPI EnumTimeFormatsW(_In_ TIMEFMT_ENUMPROCW, _In_ LCID, _In_ DWORD);

WINBASEAPI
int
WINAPI
FindNLSString(
_In_ LCID Locale,
_In_ DWORD dwFindNLSStringFlags,
_In_reads_(cchSource) LPCWSTR lpStringSource,
_In_ int cchSource,
_In_reads_(cchValue) LPCWSTR lpStringValue,
_In_ int cchValue,
_Out_opt_ LPINT pcchFound);

WINBASEAPI
int
WINAPI
FindNLSStringEx(
_In_opt_ LPCWSTR lpLocaleName,
_In_ DWORD dwFindNLSStringFlags,
_In_reads_(cchSource) LPCWSTR lpStringSource,
_In_ int cchSource,
_In_reads_(cchValue) LPCWSTR lpStringValue,
_In_ int cchValue,
_Out_opt_ LPINT pcchFound,
_In_opt_ LPNLSVERSIONINFO lpVersionInformation,
_In_opt_ LPVOID lpReserved,
_In_opt_ LPARAM sortHandle);

int
WINAPI
FoldStringA(
Expand Down

0 comments on commit 55954f8

Please sign in to comment.