I would just use it lParam & 0x40000000. If this is a nonzero value, then b30it was established (I believe that the thirty-first bit of thirty-two, by the way, by the way). And the likelihood that this will be an operation {logical-and, compare}, not {shift, logical-and, compare}.
, , , (lParam >> 30) & 1, ?