Database
(1)
DirectDrawCreate
(1)
DirectShow
(1)
MyBlt
(1)
Data.Please
(1)
Windows
(1)
Blt
(1)
Riseoftheants
(1)

IPC to read directx surface

Asked By Johnson
03-Feb-10 01:40 AM
Hi All,
I am trying to get data from directx surface. After hooking
directDrawCreate method,
when we try to access the directdraw object in other methods like ( MyBlt ),
access violation exception is coming.
Someone suggested that we should use IPC to initiate grabbing data.Please
give some more information on how to use IPC methods to do that.

tnx



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4829 (20100202) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

From: "Johnson"The interface reference is a memory pointer and it is validonly

Alessandro Angeli replied to Johnson
03-Feb-10 03:12 PM
From: "Johnson"


The interface reference is a memory pointer and it is valid
only in the memory space of the process that allocated it.
If you are trying to use it from a different process, the
result would be an access violation (if that address range
has not been mapped) or, worse, unpredictable because of
heap corruption (if it has).


That's up to you. Windows provides several IPC
(inter-process communication) mechanisms:

http://groups.google.com/group/microsoft.public.win32.programmer.directx.video/msg/24fc36c756a25ecc

--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm

Hi Angeli, Thanks for response.

Johnson replied to Alessandro Angeli
09-Feb-10 06:41 AM
Hi Angeli, Thanks for response.

I have tried to access the interface in the same process.
But still same problem is there. I have hooked Blt method and tried to
access the DirectDraw object.
I have used Memory Mapping to keep the Interface object.
What can be the problem?




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4850 (20100209) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

From: "Johnson"There are too many things that can go wrong for me to beable to

Alessandro Angeli replied to Johnson
09-Feb-10 03:28 PM
From: "Johnson"


There are too many things that can go wrong for me to be
able to guess. I do not even know how you hooked the methods.


What does that mean? You do not need any IPC to use an object
reference in-process.



--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
Post Question To EggHeadCafe