Hello.
I have some function named:

Function Decrypt(pBuffer :TBytes) : TBytes ;

and I hooked winsock recv method, and I have this function:

function R_CallBack(a1:Integer; var buffer;a2,a3:Integer):cardinal;stdcall;
var DecryptedBuffer:TBytes;
begin
DecryptedBuffer:=Decrypt(buffer);
Result:=1;
end;

but I'm getting an error..

Incompatible types: 'procedure, untyped pointer or untyped parameter' and 'TBytes'
What should I do? :S

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.