What are the definitions for LPARAM and WPARAM?

后端 未结 6 547
暗喜
暗喜 2020-11-29 03:00

I know I\'m being lazy here and I should trawl the header files for myself, but what are the actual types for LPARAM and WPARAM parameters? Are they pointers, or four byte i

6条回答
  •  醉话见心
    2020-11-29 03:51

    LPARAM is a typedef for LONG_PTR which is a long (signed 32-bit) on win32 and __int64 (signed 64-bit) on x86_64.

    WPARAM is a typedef for UINT_PTR which is an unsigned int (unsigned 32-bit) on win32 and unsigned __int64 (unsigned 64-bit) on x86_64.

    MSDN link

提交回复
热议问题