I didn't have a look at the code of your sample but... it didn't change the screen resolution for me, so I don't really understand why it would be useful. Does it for you ?
Otherwise I've been a bit busy for the past days but I should be able to have a closer look at your problem from the next week-end and make this sample testing app.
Sorry for the answer time.