PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

How does GX.DLL know where the screen is?

I did a dumpbin on GX.DLL to try and match up the functions it uses:

------------------------------------

gx.dll

COREDLL.dll
104008 Import Address Table
1030B4 Import Name Table
0 time date stamp
0 Index of first forwarder reference

Ordinal 261
261
261 C3 00008778 EndPaint

Ordinal 516
516
516 136 000081AC GetLastError


Ordinal 95
95
95 2A3 000194F8 RegisterClassW

Ordinal 919
919
919 160 00007D1C GetStockObject

Ordinal 1177
1177
1177 13F 0000828C GetModuleHandleW
Ordinal 89
89
89 339 00009038 SystemParametersInfoW
Ordinal 530
530
530 152 00008254 GetProcAddressW

Ordinal 528
528
528 222 00008244 LoadLibraryW
Ordinal 271
271 20E 00008810 IsWindow
Ordinal 260
260
260 1E 00008770 BeginPaint
Ordinal 264
264
264 98 00008798 DefWindowProcW


Ordinal 246
246
246 91 000086B0 CreateWindowExW
Ordinal 885
885
885 16B 00008728 GetSystemMetrics
Ordinal 529
529
529 EE 0000824C FreeLibrary
Ordinal 630

630
630 2F2 00008594 SetKMode

Ordinal 1453
0x01fc8080: 0x05ad GetWindowTextWDirect
Ordinal 230
230
230 421 0000FE18 _wcsicmp

Ordinal 1182
1182
1182 D7 00007EE8 ExtEscape
Ordinal 262
262
262 117 00008780 GetDC
Ordinal 517
517
517 2F5 000081A4 SetLastError
Ordinal 265
265
265 AB 000087B0 DestroyWindow

AYGSHELL.dll
104000 Import Address Table
1030AC Import Name Table
0 time date stamp
0 Index of first forwarder reference

Ordinal 65

SHFullScreen



------------------
but I can't figure out how it knows that the screen (for example) is at 0xac050020 in virtual memory or whatever in physical memory. Surely this changes from device to device yet the same GX.DLL is used in all of them. I'm confused!
Those are the routines it is statically linked to. I see it also uses GetProcAddress. Thus is can be dynamically loading any number of routines from DLLs that dumpbin / Dependancy Viewer won't show.

Dan East
Last couple of posts in this thread may help:
http://www.pocketmatrix.com/forums/view ... hp?t=11569
refractor wrote:
Last couple of posts in this thread may help:
http://www.pocketmatrix.com/forums/view ... hp?t=11569


Ahhhh - cheers refractor!

The ExtEscape command looks like the key.
Any idea what those Aero/old hardcoded device addresses would be? I guess I can look them up somewhere on the Net.