MS Detours 1.5

07/15/2010 17:22 AutoItDude#1
hi,

i'm having problem trying to compile my dll using ms detours 2.1 (not 1.5, sorry)

Code:
detours.lib(detours.obj) : error LNK2001: unresolved external symbol "struct HINSTANCE__ * __stdcall Detoured(void)" (?Detoured@@YGPAUHINSTANCE__@@XZ)
G:\KalOnline\d3dx9_29.dll : fatal error LNK1120: 1 unresolved externals
could someone tell me how to solve it?
could not google it.
07/15/2010 19:41 nokia999#2
This error mean that u don't have linked nessesery library to your project
Linker can't find function when linking - Detoured(void)

first hit in google should help u to solve it:

[Only registered and activated users can see links. Click Here To Register...]
07/15/2010 19:53 AutoItDude#3
yes, you're right.

Code:
#include <detours.h>
#pragma comment(lib, "detours.lib")
#pragma comment(lib, "detoured.lib")
this has solved the problem, however HS is still detecting detoured send/recv functions :<

looking for any advise how to hook those functions.
07/16/2010 00:43 MoepMeep#4
I lol'd.
07/16/2010 01:40 meak1#5
recv works, no more hints =)
07/16/2010 05:29 katze123#6
"AutoItDude" nice name xD
and even send works @ meak1 :D:D
07/16/2010 07:20 AutoItDude#7
thanks katze ;)

that's really interesting, especially since I tried three different methods to hook those funcionts and none of them works. 70 seconds its all I got, after that "Memory manipulation is beeing detected" :s

more hints? -.-;
07/16/2010 11:46 _FightZ_#8
stick to autoit :awesome:
07/16/2010 14:12 meak1#9
@katze123 i know but for a while ago send was 1 week dedactet or so and i maked bot completly in recv.
and it was only a tipp to use only recv =), @autoitdude try it only with recv or go proggramming it in autoit pixel search rocks

Edit: but i think u can make it in autoit too i saw some code for use asm in autoit but i am not sure =P
07/16/2010 15:23 AutoItDude#10
I think HS is detecting JMP's at the begining of the functions, same as GameGuard does it, this is why its detected.

@meak1
nah, I ain't interested in PixelSearching -.-

edit: problem solved, both send and recv can be hooked with no detection ;)
07/16/2010 19:29 versagoCR#11
how do you know witch one send or recv to hook? i can only hook encypeted... :( :(:handsdown: