Really hard question only for good programmers...huh

is possibly directly write into video segment 0a000h under win98 ??? In krnl386.exe i have found _A000H... but im not able to get pointer from this holly sh..

I have heard something about DEATH and RESURRECTION fucntions in GDI... but it is same like as krnl386 because this is in gdi.exe ... all is 16bit... but windows are 32bit...
so.. function QT_Thunk provided this... but it isnt working under win98...
so my question : How can I write directly to VRAM ????

many thanks for brave programmers
Posted on 2001-08-27 14:47:57 by Paladin
I know the answer...but since i'm such a woozie coder, i'm not able to reply. Sorry.

Hasta luego.


Latig0.
Posted on 2001-08-27 16:24:59 by latigo
Everyody is good programmer here ;) only to think at ASM and you are a good programmer allready

Well i have heard that is not nice to write directly to video memory in Windows OS, unless you are doing a video board driver...

The answer to GFx in Windows is to use GDI Win32API functions .... or if more performance and control is required use DirectX COM Interfaces.

Besides DirectX will let you write directly to video memory using IDirectSurface.Lock() and Unlock() Methods

About Resurection and Death...go read the Hostile Encounter Story ....

Take care pixels may be harmed ...protect them at all costs ;)
Posted on 2001-08-27 16:49:30 by BogdanOntanu
I can offer the ultimate access to video RAM:

also known as DCI manager - this access comes from Win3.11,
and was the pre-technologie of DirectX and is up to today
supported under Win95/98 (not NT!) and most graphic cards.

I found the DCI documentation after a long journey through
the internet.

The (magic) source:



call DCIOpenProvider
mov hdciMain, eax

lea eax, lpSurface
push eax
push hdciMain
call DCICreatePrimary

mov eax, lpSurface
mov edi, [eax.dcisi_dwOffSurface]

mov ecx, 300 * 1280
cld
mov eax, -1
rep stosd

push lpSurface
call DCIDestroy

push hdciMain
call DCICloseProvider


you need a lib file from the DCIMAN32.DLL and the dciman include
file - which I didnt found, but here is the main interesting struct:



DCISURFACEINFO struc
dcisi_dwSize dd ?
dcisi_dwDCICaps dd ?
dcisi_dwCompression dd ?
dcisi_dwMask dd ?, ?, ?
dcisi_dwWidth dd ?
dcisi_dwHeight dd ?
dcisi_lStride dd ?
dcisi_dwBitCount dd ?
dcisi_dwOffSurface dd ?
dcisi_dwReserved dd ?
dcisi_dwReserved1 dd ?
dcisi_dwReserved2 dd ?
dcisi_dwReserved3 dd ?
dcisi_lpfnBegin dd ?
dcisi_lpfnEnd dd ?
dcisi_lpfnDestroy dd ?
DCISURFACEINFO ends
Posted on 2001-08-28 14:30:12 by beaster
Many thanks for BEASTER !!! (Realy good programmer)

One thak for BogdanOntanu...

Nothing thank for latigo (Lazy programmer which perhaps isnt..)
Posted on 2001-08-29 14:59:14 by Paladin
I hate posts like that!!!! :mad:

NOP-erator
Posted on 2001-08-30 09:23:03 by NOP-erator

Many thanks for BEASTER !!! (Realy good programmer)

One thak for BogdanOntanu...

Nothing thank for latigo (Lazy programmer which perhaps isnt..)


Paladin you wouldn't say that if you'd knew Latigo :rolleyes:
Posted on 2001-08-30 13:35:18 by Hiroshimator
Hiro thanks for the compliment :)


Latigo
Posted on 2001-08-30 14:34:40 by latigo
Thanks boys...

You did from my question CHAT ROOM...

..but, try to answer my problem...if you are good programmers you will be fight by a code..not words..huh
:grin:
Posted on 2001-08-30 16:31:23 by Paladin
They're not just good programmers, but they're real men. They have absolutly no desire to prove anything. And they deserve nothing but respect.

Remeber that while here you are in the presence of programing Gods, try to act as such. Thats the only way the likes of you and me can hope to approach their level of knowledge.
Posted on 2001-08-30 18:08:36 by Eóin
I am not a programming god, but while in the presence of you guys I will act with respect toward you like I try and do with everyone.
Posted on 2001-08-30 18:17:13 by Kenny
Oh, well.

Nekteri cesi se nezaprou svoji drzosti.

Some Czech's can't deny their arrogance.

Paladin,

We are not competing we are appreciating each others talent and
we are grateful for help.

:o :o :o :o :o :o
Posted on 2001-08-31 04:37:54 by forge
I nailed myself a decoration directly on my shoulder ...
Posted on 2001-08-31 12:22:41 by beaster
Hey !! Whats wrong with you ??

Sure, ..I have respect.. Im not your enemy, ..but, ..where is the problem ? ..I need only little help.. and you attacked me !!

But, when you post me stuff like as latigo..what can I think ???
Sorry...

I do APOLOGIZE ...

PS: Nejsem drzej.. Jen se snazim prijit na neco, na co by mi dokazal odpovedet jen dobrej programator. Vid forge ?
Posted on 2001-08-31 12:39:38 by Paladin
Paladin,

Hey !! Whats wrong with you ??


Another bad sentence. Nothing is wrong with us.(full stop)

Nobody attacked you. - just think again

"Do unto others as you would have them do unto you."

(Jak se do lesa vola tak se z lesa oziva.)

And Latigo? I knew him long before the existence of this board
and I know that he is an expert in the trade and a person willing
to help.
Many others on this board could answer your question with ease.
How many people on this board do you know?
We are here as a community of people with the same interest and from
top experts in knowledge to the lowest, but we don't discriminate.
This is not a school where one can demand answer.
I know that many will be more than happy to discus anything
with you. Just try to fit in - socially.
Posted on 2001-08-31 20:32:09 by forge
Dang... someone needs to lock this thread so Paladin can start over :) Or move to Crusades... :grin:
Posted on 2001-08-31 21:52:56 by Kenny
Kenny I can't agree with you more.
It was just embarrasing for me.

forge
Posted on 2001-09-01 03:10:51 by forge