B
biogates
I'm writing a small app in C# and I managed to let the browser call my
IInternetProtocol's Start and Read methods.
Problem is: I can't pass the data back to IE.
I have tried various signatures for Read, including:
public int Read(
IntPtr pv,
int cb,
out IntPtr pcbRead
);
public int Read(
byte[] pv,
int cb,
out uint pcbRead
);
and all the combinations in between.
IE keeps saying "Action cancelled" or nothing at all (blank page).
Read returns 0 if further data is available, 1 if data is over, and
it's prepared to get further notifications after data is finished.
I can't really figure out how I should stuff data in pv and pcbRead, so
they result back in IE.
If someone can give out any clues, any help would be greatly
appreciated.
Mirco
IInternetProtocol's Start and Read methods.
Problem is: I can't pass the data back to IE.
I have tried various signatures for Read, including:
public int Read(
IntPtr pv,
int cb,
out IntPtr pcbRead
);
public int Read(
byte[] pv,
int cb,
out uint pcbRead
);
and all the combinations in between.
IE keeps saying "Action cancelled" or nothing at all (blank page).
Read returns 0 if further data is available, 1 if data is over, and
it's prepared to get further notifications after data is finished.
I can't really figure out how I should stuff data in pv and pcbRead, so
they result back in IE.
If someone can give out any clues, any help would be greatly
appreciated.
Mirco