First of all sorry for not explaining this change before.
The problem came from the Linux 64 bit version that complained about using long and int64 for this handlers so I changed them to uint64. This affects to process and windows handlers.
The problem is that there is not a Null for uint64 (and in general for unsigned types) so I simply took the INT64_MAX as a kind of Null considering this amount was enough high.