Hi, >From what I understand from the definition of THandle in sysunixh.inc it is defined as a LongInt, even on 64 bit platforms. Currently I'm porting Lazarus to x64 and there I need a 64bit THandle, how to solve it ? Marc