SaveDisplayState

I am working on a Driver which rotates the desktop in degrees of 90 , 180
and 270.When I switch into a 90 degree mode and restart the machine , the
machine does not load in the rotated mode rather it loads in the normal
mode. now I need to take advice on two things.

1.How can the display Driver save the display state or how does it happen in
general so that the next time machine is booted the display state is
rembered. is it using the miniport driver.

2.If it uses the miniport driver to save the display state and then reload
using that ,then is there any other way of doing it independent of the
miniport driver , I want my driver to work on top of any display driver
provided by the user,so can it be independent of the miniport driver.

Any Advice will be great.

Thanks & Regards,

Nitin Kapoor