Skip to content

Commit

Permalink
Merge pull request mandiant#219 from sacx/master
Browse files Browse the repository at this point in the history
Added GetSystemDefaultLCID
  • Loading branch information
williballenthin authored Dec 12, 2022
2 parents ab3082b + d78bc4e commit f294b64
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions speakeasy/winenv/api/usermode/kernel32.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
PAGE_SIZE = 0x1000
LANG_EN_US = 0x409
LOCALE_USER_DEFAULT = 0x400
LOCALE_SYSTEM_DEFAULT = 0x0800

SEC_IMAGE = 0x1000000

Expand Down Expand Up @@ -5808,6 +5809,14 @@ def GetUserDefaultLCID(self, emu, argv, ctx={}):
# https://docs.microsoft.com/en-us/windows/win32/intl/locale-user-default
return LOCALE_USER_DEFAULT

@apihook("GetSystemDefaultLCID", argc=0)
def GetSystemDefaultLCID(self, emu, argv, ctx={}):
'''
LCID GetUserDefaultLCID();
'''
#https://learn.microsoft.com/en-us/windows/win32/intl/locale-system-default
return LOCALE_SYSTEM_DEFAULT

@apihook("GetTempFileName", argc=4)
def GetTempFileName(self, emu, argv, ctx={}):
'''
Expand Down

0 comments on commit f294b64

Please sign in to comment.