Simple Call watcher program for OpenMG
"Alex Muirhead" <[email protected]>
| Newsgroups | gmane.comp.audio.netmd.devel |
|---|---|
| Message-ID | <001001c2dd24$5dec8ce0$331a89c3@oroin> |
Okay its half term for me now so I have taken some time to nock this up.
So far I have only been able to spend about 5 hours on it, so its not
catching every function and it still has bugs
But its working for every call placed to:
SonyUsbControlSend
SonyUsbControlRecive
SonyUsbClose
SonyUsbEnumerateDevices
SonyUsbGetDeviceName
SonyUsbOpen
SonyUsbSetTimeOut
made by NetMDAPI.DLL
I have so far been un-able to work out what the 5 params passed to
SonyUsbDataSend are, as its very touchy about having WinDbg attached, and
I've not had time to do it the hard way, does anyone know what these params
are?!
Anyway just in case u want to try this prog.
For a Screenie: http://www.0bytes.net/netmd/screenshot.jpg
to download (run at own risk of system crashing, ur cat dieing, and it
raining tommorow)
http://www.0bytes.net/netmd/netmdcalls.zip
To run, run the VB program, click start, this invokes the DLL which uses a
global hook to find when openmg is loaded, it then creates its window and
hooks the calls, clicking stop on the VB program will make OpenMG crash and
burn, when you're done, click close on the NetMD Call Tracker window.
If I get more time this week I will add some filtering and pattern matching
(i.e. u can tell it to interpret the commands we already know)
Alex Muirhead
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg."
- Bjarne Stroustrup
"About the use of language: it is impossible to sharpen a pencil with a
blunt axe. It is equally vain to try to do it with ten blunt axes instead."
- Edsgar W. Dijkstra