I have a question:
Developing for Win 95,98 I have always assumed that handles returned by Windows (ie Font handles) are always positive numbers (non-zero, non-negative).
My question is:
On Win NT and 2000 can the handles returned be a negative number (at least for Fonts) ?
I would think that if Win 2000 were to use the entire 32 bits for a handle (95 uses 16 doesn't it) and if it was treating it as a DWord rather than a Long, then the bit which makes it negative could be set.
Are handles Longs or Dwords ?
Should I always use a DWord for handles ?
The Win32api.inc file I have uses a Long for the return value for CreateFont. Has this been chnaged to DWord for Win NT and 2000 ?
[This message has been edited by Chris Boss (edited January 23, 2000).]
Developing for Win 95,98 I have always assumed that handles returned by Windows (ie Font handles) are always positive numbers (non-zero, non-negative).
My question is:
On Win NT and 2000 can the handles returned be a negative number (at least for Fonts) ?
I would think that if Win 2000 were to use the entire 32 bits for a handle (95 uses 16 doesn't it) and if it was treating it as a DWord rather than a Long, then the bit which makes it negative could be set.
Are handles Longs or Dwords ?
Should I always use a DWord for handles ?
The Win32api.inc file I have uses a Long for the return value for CreateFont. Has this been chnaged to DWord for Win NT and 2000 ?
[This message has been edited by Chris Boss (edited January 23, 2000).]
Comment