WPARAM and LPARAM parameters

前端 未结 5 1337
野趣味
野趣味 2020-12-29 07:49

When passing a value to a function that takes both a WPARAM and a LPARAM parameter, does it matter on which of them I pass it? Someone told me that if I use Windows x64 I sh

5条回答
  •  不知归路
    2020-12-29 08:07

    Yes, it does. I once passed them in swapped order and the function I call fails. Nevertheless, you should consult MSDN when in doubt. I never program in Win64 though, so I don't whether there are differences between Win32 and Win64 regarding WPARAM/LPARAM behavior.

提交回复
热议问题