Hi Shweta,
my windows help says to call ChangeDisplaySettings(0,0) or 
ChangeDisplaySettings(Null,0)
your construction of TDeviceMode(Nil^) is invalid an should lead to access 
violations because Nil is never adressing anything.

Have fun
Bob
>     
>     I am calling method as ChangeDisplaySettings(TDeviceMode(Nil^),0). 
>     According to documentation of ChangeDisplaySettings, it should restore 
> the 
>     default display settings that are stored in registry, but it is not doing 
>     so. Can any body suggest the reason.
>      
>     
>     



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to