Merge pull request #7 from 3xp0rt/patch-4

Create GetCurrentLocale.c
This commit is contained in:
vxunderground 2022-03-29 12:02:04 -05:00 committed by GitHub
commit 58f20d026f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}