sourcemm/CSmmAPI.cpp
changeset 292 1a828b239258
parent 291 267d4bc27469
child 294 0d87bc8606f8
     1.1 --- a/sourcemm/CSmmAPI.cpp	Tue Feb 27 03:25:36 2007 +0000
     1.2 +++ b/sourcemm/CSmmAPI.cpp	Tue Feb 27 03:31:08 2007 +0000
     1.3 @@ -513,18 +513,22 @@
     1.4  //   message indices. This is our answer to it. Yuck! <:-(          //
     1.5  //////////////////////////////////////////////////////////////////////
     1.6  #ifdef OS_WIN32
     1.7 +	/* General Windows sig */
     1.8  	#define MSGCLASS_SIGLEN		7
     1.9  	#define MSGCLASS_SIG		"\x8B\x0D\x2A\x2A\x2A\x2A\x56"
    1.10  	#define MSGCLASS_OFFS		2
    1.11  
    1.12 +	/* Dystopia Wimdows hack */
    1.13  	#define MSGCLASS2_SIGLEN	16
    1.14  	#define MSGCLASS2_SIG		"\x56\x8B\x74\x24\x2A\x85\xF6\x7C\x2A\x3B\x35\x2A\x2A\x2A\x2A\x7D"
    1.15  	#define MSGCLASS2_OFFS		11
    1.16  #elif defined OS_LINUX
    1.17 +	/* No frame pointer sig */
    1.18  	#define MSGCLASS_SIGLEN		14
    1.19  	#define MSGCLASS_SIG		"\x53\x83\xEC\x2A\x8B\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x89"
    1.20  	#define MSGCLASS_OFFS		9
    1.21  
    1.22 +	/* Frame pointer sig */
    1.23  	#define MSGCLASS2_SIGLEN	16
    1.24  	#define MSGCLASS2_SIG		"\x55\x89\xE5\x53\x83\xEC\x2A\x8B\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x89"
    1.25  	#define MSGCLASS2_OFFS		11