News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Handle Sizes

Started by bluedevil, September 01, 2022, 06:27:44 PM

Previous topic - Next topic

bluedevil

Hello

In 64bit windows all handles are also 64bit(8 bytes) right? Like HBITMAP, HBRUSH,HDDEDATA,HFILE,HFONT... Those handles are actually typedefs of HANDLE and so in 64bit architecture they are also 8bytes long.

My question is are there any exceptions?

PS: I have looked up here Windows Data Types
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github

bluedevil

typedef int HFILE;

OK HFILE is actually int. So it 's 4 bytes.
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github

hutch--

No, all handles in 64 bit ARE 64 bit, QWORD as the native data size.

bluedevil

Quote from: hutch-- on September 01, 2022, 07:02:33 PM
No, all handles in 64 bit ARE 64 bit, QWORD as the native data size.

Thank you hutch--, I am well aware of that. I only want to ask if anyone experienced any exceptions =)
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github