FreeRDP
shadow_channels.c
1 
19 #include <freerdp/config.h>
20 
21 #include "shadow.h"
22 
23 #include "shadow_channels.h"
24 
25 UINT shadow_client_channels_post_connect(rdpShadowClient* client)
26 {
27  if (WTSVirtualChannelManagerIsChannelJoined(client->vcm, ENCOMSP_SVC_CHANNEL_NAME))
28  {
29  shadow_client_encomsp_init(client);
30  }
31 
32  if (WTSVirtualChannelManagerIsChannelJoined(client->vcm, REMDESK_SVC_CHANNEL_NAME))
33  {
34  shadow_client_remdesk_init(client);
35  }
36 
37  if (WTSVirtualChannelManagerIsChannelJoined(client->vcm, RDPSND_CHANNEL_NAME))
38  {
39  shadow_client_rdpsnd_init(client);
40  }
41 
42  shadow_client_audin_init(client);
43 
44  shadow_client_rdpgfx_init(client);
45 
46  return CHANNEL_RC_OK;
47 }
48 
49 void shadow_client_channels_free(rdpShadowClient* client)
50 {
51  shadow_client_rdpgfx_uninit(client);
52  shadow_client_audin_uninit(client);
53  shadow_client_rdpsnd_uninit(client);
54  shadow_client_remdesk_uninit(client);
55  shadow_client_encomsp_uninit(client);
56 }