There are some macros for splitting:
  • HIWORD
  • LOWORD
  • HIBYTE
  • LOBYTE

and for packing:
  • MAKEWORD
  • MAKELONG
  • ...

Read MSDN for details.