This macro expands to:
#define WinIsMenuItemChecked(hwndMenu, usId) ((BOOL)WinSendMsg(hwndMenu, MM_QUERYITEMATTR, MPFROM2SHORT(usId, TRUE), MPFROM2SHORT(MIA_CHECKED)))
This function requires the existence of a message queue.