16
Utilities / Re: hardware information
« on: August 09, 2023, 02:43:34 am »
Testlog.exe does quite a bit, but does not try to present it. It just makes a big log file.
OS2World.com Forum is back !!!
Remember to visit OS2World at:
http://www.os2world.com
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
07-10-2023 09:17:53 SYS3171 PID 0046 TID 0001 Slot 001b
H:\OS2\SYSTEM\REGEDIT2.EXE
c0000005
1ffc1b8c
P1=00000002 P2=001bfffc P3=XXXXXXXX P4=XXXXXXXX
EAX=1a390000 EBX=1a533434 ECX=001c0018 EDX=00000014
ESI=1a661a44 EDI=1a390650
DS=0053 DSACC=d0f3 DSLIM=bfffffff
ES=0053 ESACC=d0f3 ESLIM=bfffffff
FS=150b FSACC=00f3 FSLIM=00000030
GS=0000 GSACC=**** GSLIM=********
CS:EIP=005b:1ffc1b8c CSACC=d0df CSLIM=bfffffff
SS:ESP=0053:001c0000 SSACC=d0f3 SSLIM=bfffffff
EBP=001c0044 FLG=00010202
DOSCALL1.DLL 0002:00001b8c
The information is stored in C:\OS2\OS2.INI that you can specify instead of 'USER'.
/* print the current resolution */
call rxFuncAdd "SysIni", "REXXUTIL", "SysIni"
inifile = 'USER'
rblock = SysIni(inifile, 'PM_DISPLAYDRIVERS', 'DEFAULTSYSTEMRESOLUTION')
say length(rblock) "chars:" c2x(rblock)
hres = reverse(substr(rblock,1,4))
say "horizontal:" c2d(hres)
vres = reverse(substr(rblock,5,4))
say "vertical:" c2d(vres)
dres = reverse(substr(rblock,9,4))
say "depth:" c2d(dres)
resolutionChangePending = SysIni(inifile ,"PM_DISPLAYDRIVERS", "RESOLUTION_CHANGED")
if resolutionChangePending = "1" || "00"x then
resolutionChangePending = 1
else
resolutionChangePending = 0
say "resolution change pending:" resolutionChangePending
return