| 62 | } |
| 63 | |
| 64 | int CClipboardFreeRDP::Init(CliprdrClientContext *context, bool bEnable) |
| 65 | { |
| 66 | if(!bEnable) return 0; |
| 67 | |
| 68 | m_pCliprdrClientContext = context; |
| 69 | context->custom = this; |
| 70 | |
| 71 | // See: [MS_RDPECLIP] 1.3.2.1 Initialization Sequence |
| 72 | // https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpeclip/a5cae3c9-170c-4154-992d-9ac8a149cc7e |
| 73 | context->ServerCapabilities = cb_cliprdr_server_capabilities; |
| 74 | context->MonitorReady = cb_cliprdr_monitor_ready; |
| 75 | context->ServerFormatList = cb_cliprdr_server_format_list; |
| 76 | context->ServerFormatListResponse = cb_cliprdr_server_format_list_response; |
| 77 | context->ServerFormatDataRequest = cb_cliprdr_server_format_data_request; |
| 78 | context->ServerFormatDataResponse = cb_cliprdr_server_format_data_response; |
| 79 | context->ServerFileContentsRequest = cb_cliprdr_server_file_contents_request; |
| 80 | //context->ServerFileContentsResponse = cb_cliprdr_server_file_contents_response; |
| 81 | return 0; |
| 82 | } |
| 83 | |
| 84 | int CClipboardFreeRDP::UnInit(CliprdrClientContext *context, bool bEnable) |
| 85 | { |
no outgoing calls
no test coverage detected