From b5310391843efa2da142c973e78ffd42dbb80a87 Mon Sep 17 00:00:00 2001 From: 3xp0rt <61662492+3xp0rt@users.noreply.github.com> Date: Mon, 28 Mar 2022 06:47:48 +0000 Subject: [PATCH] Create GetCurrentLocale.c --- Kernel32/GetCurrentLocale.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Kernel32/GetCurrentLocale.c diff --git a/Kernel32/GetCurrentLocale.c b/Kernel32/GetCurrentLocale.c new file mode 100644 index 0000000..a2984e5 --- /dev/null +++ b/Kernel32/GetCurrentLocale.c @@ -0,0 +1,12 @@ +/* +Language codes: https://docs.microsoft.com/en-us/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a + +Author: 3xp0rt +*/ + +LCID GetCurrentLocale(VOID) +{ + PTEB Teb = (PTEB)GetTeb(); + + return (LCID)Teb->CurrentLocale; +}