How do you cast dword down to byte *? AFAIK, dword is 32-bit and (byte *) is
16-bit, thank you
Jack

Re: dword to byte * by Igor

Igor
Tue Mar 02 20:10:30 CST 2004

"Jacky Luk" <jl@knight.com> wrote in message
news:u4d8WLMAEHA.2576@TK2MSFTNGP11.phx.gbl...
> How do you cast dword down to byte *? AFAIK, dword is 32-bit and (byte
*) is
> 16-bit, thank you

On Win32 systems, a pointer is 32-bit. To be future-compatible, you
should use DWORD_PTR to transfer pointers as integer values. DWORD_PTR
is 32-bit on Win32, and 64-bit on Win64, and so are pointers.
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken