code: def MAKE_WPARAM(wParam):
      
      wParam = ctypes.cast(wParam, LPVOID).value
      if wParam is None:
          wParam = 0
      return wParam
docs: Convert arguments to the WPARAM type.
      Used automatically by SendMessage, PostMessage, etc.
      You shouldn't need to call this function.