UseFull functions in GameServer
#1

More documentatio here:

2

 

These are the offsets of the functions(eax is the return values):

004EDED0 ->Print to the screen

=============================

"Loading etc..."

PUSH DWORD PTR DS:[XXXX]

CALL 004EDED0

----------------------------------------------------

SQL

00566DF0 ->mysql_real_query

=================================

"SELECT * FROM t_table ORDER BY a_index"

PUSH DWORD PTR DS:[XXXX]

CALL 00566DF0

 

return:

EAX 00000000 //SUCCESS

ECX 7FFDF000

EDX 00000002

ESP 0012F630

 

(mysql_store_result)

00566EE0 ->RETURNS THE NUMBERS OF ROWS

=============================================

PUSH ECX

CALL 00566EE0

EAX = DWORD PTR DS ->NUMBER OF ROWS

 

---------------------------------------------------

CALL 004415A0 ->coulumn int

PUSH EAX

"a_coulumn"

Push PUSH DWORD PTR DS:[XXXX]

CALL 004415A0

 

(mysql_fetch_row)

00567360 /$ 55 PUSH EBP

EAX 01E3A390 //result usually all the rows data

ECX 7FFDF000

ESP 0012F758

 

(mysql_ping)

0056A1E0 /$ 55 PUSH EBP

 

(free_old_query)

00562C80 /$ 55 PUSH EBP

 

(mysql_send_query)

00566C90 /$ 55 PUSH EBP

 

(mysql_real_connect)

00564520 /$ 55 PUSH EBP

 

(mysql_free_result)

00562FD0 /$ 55 PUSH EBP

 

(mysql_close)

00566770 /$ 55 PUSH EBP



Forum Jump:


Users browsing this thread: 1 Guest(s)