LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-04-2001, 03:36 PM   #1
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Rep: Reputation: 30
Logging DirectPlay calls?


I was kinda hoping to make a proxy that could do the following:
- run on Windows
- connect to a server using DirectPlay
- allow connection from a Linux box using a user-defined protocol

It would be used to enable a Linux app to connect to a BattleCom server without having to reverse engineer DirectPlay (which is illegal anyway).

But now I need to know what calls a normal BattleCom client does to DirectPlay when connecting to the server. Does anyone know of a way to find out?

I was thinking of making a dplayx wrapper DLL, but although I already have such a DLL with the dplayx interface, BattleCom keeps crashing with an access violation somewhere outside of my code. (Probably got to do with those weird DllGetClassObject, DllCanUnloadNow, etc functions)

Any other ideas of how to log the DirectPlay calls?
 
Old 11-12-2001, 02:13 PM   #2
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Original Poster
Rep: Reputation: 30
Re: Logging DirectPlay calls?

Quote:
Originally posted by Griffon26
I was thinking of making a dplayx wrapper DLL, but although I already have such a DLL with the dplayx interface, BattleCom keeps crashing with an access violation somewhere outside of my code.
I found the bug. It turned out that dplayx.dll uses the __stdcall convention (doh) and now the wrapper DLL works fine. I have been able to determine which calls are made and when and now have an application that can connect to a BattleCom server.

On to the next thing: reverse-engineering the audio compression. If anyone has any tips on how to do this, they're most welcome =]]
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bios calls!! arunka Programming 3 03-16-2005 06:35 AM
systam calls eliad Linux - Newbie 0 04-07-2003 01:42 AM
DirectPlay, Linux Gateway, Firewall, oh my Hegemon Linux - General 2 03-03-2003 01:06 PM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM
Smoothwall & Directplay Games Binabik Linux - Newbie 1 01-22-2002 02:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration