Showing results for January 21, 2005 - The Old New Thing

Jan 21, 2005
Post comments count0
Post likes count0

Why are kernel HANDLEs always a multiple of four?

Raymond Chen
Raymond Chen

Not very well known is that the bottom two bits of kernel HANDLEs are always zero; in other words, their numeric value is always a multiple of 4. Note that this applies only to kernel HANDLEs; it does not apply to pseudo-handles or to any other type of handle (USER handles, GDI handles, multimedia handles...) Kernel handles are things you can pas...

Code