Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29262 Discussions

INITIALSETTINGS - Possible to get system informations inside the function ?

fkroeder
Beginner
772 Views
With the function INITIALSETTINGS I can arrange the size and the location of the frame-window. To optimize the following I/O-console-windows it is necessary, to know the resolution of the monitor already in the function INITIALSETTINGS.
These informations are found in the windows registry under HKEY_LOCAL_MACHINESYSTEMControlSet002Services vDevice0, key-words: DefaultSettings.XResolution, ...YRes..
Has anybody an solution to get this informations inside the function INITIALSETTINGS ?
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
772 Views
Sure you can -- but better use GetSystemMetrics and/or SystemParametersInfo APIs. Registry reading is not portable. See SM_CX(VIRTUAL)SCREEN flag for the former and SPI_GETWORKAREA for the latter.

Jugoslav
0 Kudos
fkroeder
Beginner
772 Views
Thanks for the information. GetSystemMetrics-function works in the needed manner.
FK
0 Kudos
Reply