Hello.

>irb(main):002:0> thread_id = Win32API.new('kernel32.dll',
>'GetCurrentThreadID', [], "L")

Last 'D' should be lower case. Try 'GetCurrentThreadId'.

# Yes, this is quite confusing because 'GetSystemDefaultLangID' exists.