[Bug 9685] Punkbuster removes me from game for UNKNOWN WINDOWS API FUNCTION [131124]

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Nov 3 17:03:42 CST 2008


http://bugs.winehq.org/show_bug.cgi?id=9685





--- Comment #149 from Anastasius Focht <focht at gmx.net>  2008-11-03 17:03:40 ---
Hello,

--- quote ---
Is there a site that explanes how to do the 'thrunking' methode, I think it
should be mentioned here.
By thrunking I mean using linux punkbuster to play games on wine.
I haven't figured it out yet.
--- quote ---

I added a note to appdb
(http://appdb.winehq.org/objectManager.php?sClass=version&iId=5813), giving an
overview for people interested.
Only the surface is covered to prevent liability claims ;-)

What you need is to write a pbcl winelib to interface the linux version of the
client(s) for each game.
The prototypes/exported signatures are as follows:

Linux side (cdecl):

--- snip ---
typedef int (*pbcl_linux_ca)(void* iface, int id);
typedef int (*pbcl_linux_cb)(void* iface, int func_code, int packet_len, void*
packet_buf, int res); 
--- snip ---

Windows side (stdcall):

--- snip ---
1 stdcall ca(ptr long) pbcl_windows_ca
2 stdcall cb(ptr long long ptr long) pbcl_windows_cb
--- snip ---

I provided the client interface "iface" as opaque datatype.
If you want to mess with it, you'll have to figure it out by yourself.
Usually you just pass it through.

Regards


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list