On WinAPI, the HANDLE
type is defined as a void*
, thus on a 64 bit application the HANDLE
value may range from 0
to 18446744073709551615
.
But is that true in practice? Does any documentation specify the integral range of such a HANDLE
?
If for instance one wants to store this HANDLE
as an int32_t
on a 32 bit application that's completely fine, but on a 64 bit application the doubts sticks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…