handles can be longs in 64 bit windows