R
Roman Divacky
Guest
hi
I am trying to read some data from a virtual channel using
WTSVirtualChannelRead() but it reads nothing.
When I try to write to the channel it goes just fine but reading is no
go
The client in question is "rdesktop" so I am quite sure the client is
ok, but my app does not recieve anything from the channel. And yes, I
put some debuging into the rdesktop to see if it really puts something
on the wire.
When I try to use WTSVirtualChannelQuery() to obtain file handle and
ReadFile/WriteFile from/to it nothing works at all (nor reading nor
writing).
plain
HANDLE foo = WTSVirtualChannelOpen(WTS_CURRENT_SERVER_HANDLE,
SessionId, "rdpsnd");
WTSVirtualChannelRead(foo, INFINITY, buf, buf_size, &len);
never returns and when I change the INFINITY to something lower it
returns with 0 bytes read.
does anyone have any comment or an example of working code with
WTSVirtualChannelRead(). I must be doing something bad but I am not
able to figure out what
thnx a lot in advance
Roman Divacky
I am trying to read some data from a virtual channel using
WTSVirtualChannelRead() but it reads nothing.
When I try to write to the channel it goes just fine but reading is no
go
The client in question is "rdesktop" so I am quite sure the client is
ok, but my app does not recieve anything from the channel. And yes, I
put some debuging into the rdesktop to see if it really puts something
on the wire.
When I try to use WTSVirtualChannelQuery() to obtain file handle and
ReadFile/WriteFile from/to it nothing works at all (nor reading nor
writing).
plain
HANDLE foo = WTSVirtualChannelOpen(WTS_CURRENT_SERVER_HANDLE,
SessionId, "rdpsnd");
WTSVirtualChannelRead(foo, INFINITY, buf, buf_size, &len);
never returns and when I change the INFINITY to something lower it
returns with 0 bytes read.
does anyone have any comment or an example of working code with
WTSVirtualChannelRead(). I must be doing something bad but I am not
able to figure out what
thnx a lot in advance
Roman Divacky