I need a way to determine if an application I'm about to do a createprocess on is a 16-bit or 32-bit application

Thanks