Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
matja
on Nov 17, 2021
|
parent
|
context
|
favorite
| on:
Rust on MIPS64 Windows NT 4.0
Why was SetWindowLong (taking LONG) superseded by SetWindowLongPtr (taking LONG_PTR) on 64-bit versions of Windows?
nikanj
on Nov 17, 2021
[–]
Because SetWindowLong can be used to set a callback function, i.e. a 64-bit pointer - but LONG remains 32 bit on 64-bit Windows. Backward compatibility stipulated the need for a new function name
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: