Autorun detecting monitor resolution

Is that possible an autorun file (.inf) to detect the user´s resolution and execute the proper file for that resolution?