Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyrious/b68576c32096e6c141f2a9cb880ad37c to your computer and use it in GitHub Desktop.
Save hyrious/b68576c32096e6c141f2a9cb880ad37c to your computer and use it in GitHub Desktop.
x = SteamAPIContext.new
a = Win32API.new('steam_api', 'SteamAPI_ISteamApps_GetCurrentGameLanguage', 'L', 'L')
l = Win32API.new('kernel32', 'lstrlen', 'L', 'L')
ps = a.call(x.steam_apps)
len = l.call(ps)
str = [].pack("x#{len}")
mm = Win32API.new('kernel32', 'RtlMoveMemory', 'pLL', 'L')
mm.call(str, ps, len)
p str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment