This macro expands to:
#define WinIsMenuItemValid(hwndMenu, usId) ((BOOL)WinSendMsg(hwndMenu, MM_ISITEMVALID, MPFROM2SHORT(usId, TRUE), MPFROMSHORT(FALSE)))
This function requires the existence of a message queue.