Hi all,

I want to hook WSASend from a certain application. I want to do this with c#.
All information i got, points me to injecting a .dll into the process and hook the WSASend function.

I was wondering if it was possible to write an injectable .dll with c#?
And how can i call the functions from this .dll within my c# app?

Someth like this ?
[DllImport("MyDll")] public static extern MyWSASend( WSASend param ) ;

public static MyWSASend( .. ) {

decode data from packet;
show decoded data to window;
do the actual WSASend;
}


Any help is GREATLY appreciated;