well i dug through the doc i seen about converting the data segment for borlands use but im at a bit of a loss as to what i have to fo now
i made a file for the datasegment
//file
#pragma option -zRSHARED
LPVOID gsh_pvEQKey = NULL;
BOOL gsh_bInjected = FALSE;
HHOOK gsh_hHook = NULL;
TCHAR gsh_szFileName[MAX_PATH] = {_T("\0")};
SOCKADDR_IN gsh_SEQAddr = {0};
DWORD gsh_xorby = 0;
TCHAR gsh_szEvent[MAX_PATH] = {_T("\0")};
//eof
i modifyed the .def file like so
//file
LIBRARY EQSNIFFER
SECTIONS
SHARED READ WRITE SHARED
EXPORTS
blah
blahblah
blahblahblah
//eof
and inside the main .cpp im not really 100% what i had to do as that doc isnt very detailed but im assuming i had to declare allthe datatypes extern but whatelse if any to modify im at a loss...
extern LPVOID gsh_pvEQKey;
extern BOOL gsh_bInjected;
extern HHOOK gsh_hHook;
extern TCHAR gsh_szFileName[MAX_PATH];
extern SOCKADDR_IN gsh_SEQAddr;
extern DWORD gsh_xorby;
extern TCHAR gsh_szEvent[MAX_PATH];
now when i try a comile with this as it is i get erros pointing to the shareddata seg .cpp saying declaration syntex error.....
far as i can tell i did what it said lol any input on this would be welcome..