static int disp_on_data_received(IWTSVirtualChannelCallback* pChannelCallback, UINT32 cbSize, BYTE* pBuffer) { wStream* s; int status = 0; DISP_CHANNEL_CALLBACK* callback = (DISP_CHANNEL_CALLBACK*) pChannelCallback; s = Stream_New(pBuffer, cbSize); status = disp_recv_pdu(callback, s); Stream_Free(s, FALSE); return status; }
/** * Function description * * @return 0 on success, otherwise a Win32 error code */ static UINT disp_on_data_received(IWTSVirtualChannelCallback* pChannelCallback, wStream *data) { DISP_CHANNEL_CALLBACK* callback = (DISP_CHANNEL_CALLBACK*) pChannelCallback; return disp_recv_pdu(callback, data); }