Getting desktop colour depth

Blitz3D Forums/Blitz3D Programming/Getting desktop colour depth

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Here I go again answering my own questions. Another way...

bank = CreateBank(4)
API_CopyMemoryPntrAddr bank,FrontBuffer() + 100,4
depth = PeekInt(bank,0)
FreeBank bank

and userlib adjustment:

lib "kernel32.dll"
API_CopyMemoryPntrAddr%(Destination*,Source%,Length%) : "RtlMoveMemory"