Detect if you need to use Microsoft proprietary code or not for your events