Can directX lock allow more than one process lock the same surface

Can directX lock allow more than one process lock the same surface

Post by ZHJpdmVyX2 » Fri, 11 Apr 2008 03:31:00


Hi,

This question is from directdraw driver. I'm not sure if it should be posted
here. My question is - can directdraw lock allow two process to lock the same
surface, such as the desktop primary surface? Let the question more clear -
process1 locks the surface. Without being unlocked by process1, can the same
surface be locked by another process2. Both processes want to map the same
surface's kernel address into their own user process address.

Thanks in advance
 
 
 

Can directX lock allow more than one process lock the same surface

Post by legalize+j » Fri, 11 Apr 2008 04:40:32

[Please do not mail me a copy of your followup]

Direct3D (and IIRC DirectDraw before it) doesn't expose resources to
more than one process. There isn't any way for another process to
lock the surface in another process without injecting code into the
process that contains the resource to run on behalf of the other
process.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
< http://www.yqcomputer.com/ ~legalize/book/download/index.html>

Legalize *** hood! < http://www.yqcomputer.com/ ;

 
 
 

Can directX lock allow more than one process lock the same surface

Post by Chris24 » Fri, 11 Apr 2008 13:26:25

On Wed, 09 Apr 2008 12:40:32 -0700, legalize+ XXXX@XXXXX.COM



Didn't this change in Vista where one of the new features is resource
sharing betweed devices and processes?

Chris
 
 
 

Can directX lock allow more than one process lock the same surface

Post by legalize+j » Fri, 11 Apr 2008 16:03:12

[Please do not mail me a copy of your followup]

XXXX@XXXXX.COM (Chris Hill) spake the secret code
< XXXX@XXXXX.COM > thusly:



Ah, good point. I don't think DirectDraw is supported on vista, though.
They dropped a bunch of legacy stuff on Vista because they changed the
driver model anyway.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
< http://www.yqcomputer.com/ ~legalize/book/download/index.html>

Legalize *** hood! < http://www.yqcomputer.com/ ;