IPC between python application and injected dll

Hi, stack overflow: sometimes a reader, the first poster.

Background:

Windows window with XP SP3, which will soon be updated to Windows Seven (MSDNAA <3)

I have an injection DLL that receives loops by connecting a function called thousands of times per second.

I would like to link / manage this DLL through a python application. Basically, the DLL does the job; the python application delivers brains / decision making.

My game plan for this, I will have a counter and an if statement in the DLL. Each time the called function is called, counter ++, and then returns to the original function until something like if (counter == 250) {// dostuff (); }. Mine, although behind this, will allow the target application to work mostly unhindered, but it will still allow me to do interesting things.

Problem:

I will completely lose the IPC method that I should use for communication. We have sockets, shared memory, channels, file matching (?), RPC and other (seemingly) esoteric things, such as writing to the clipboard.

I NEVER implemented any IPC for toy examples.

I am sure I need something that:

  • Can handle conversations between python and dll
  • Not blocking / not waiting
  • You can check for pending data and continue if it does not exist.
  • , , .
  • .

? , , .

, , .

+5
2

. ; Python asyncore - . , Python stdlib IPC, .

+2

, : DLL , , , DLL.

+1

All Articles