{$Mode DelphiUnicode} lazarus / 34-Windows ---------------------------------------------------------------------- skiy1337lazarus · 2015-10-01 13:06 If you are using the Windows unit, remember API functions must be called explicitly as Unicode: GetUserNameW So they all end with 'W' Because windows.ppu is pre-compiled in ANSI. ---------------------------------------------------------------------- marcov · 2015-10-01 13:44 Recompile Windows with "FPC_OS_UNICODE" define, and see.....