65535 is the hex-value &HFFFF.
It's to create a DWORD of the LOWORD and HIWORD-values.

Finally I'm using this code:
Code:
lParam = (y * &H10000) Or (x And &HFFFF&)