2012-07-21 01:05:06 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2012-07-21 01:05:06 +04:00
|
|
|
* Windows Clipboard Redirection
|
|
|
|
*
|
|
|
|
* Copyright 2012 Jason Champion
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2012-08-15 01:20:53 +04:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2012-12-17 19:20:25 +04:00
|
|
|
#include <winpr/crt.h>
|
|
|
|
|
2012-07-21 01:05:06 +04:00
|
|
|
#include <freerdp/utils/event.h>
|
2013-03-22 00:45:25 +04:00
|
|
|
#include <winpr/stream.h>
|
2012-10-09 04:33:58 +04:00
|
|
|
#include <freerdp/client/cliprdr.h>
|
2012-07-21 01:05:06 +04:00
|
|
|
|
|
|
|
#include "wf_cliprdr.h"
|
|
|
|
|
2013-06-16 06:57:21 +04:00
|
|
|
void wf_cliprdr_init(wfContext* wfc, rdpChannels* channels)
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-06-16 06:57:21 +04:00
|
|
|
void wf_cliprdr_uninit(wfContext* wfc)
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-06-16 06:57:21 +04:00
|
|
|
static void wf_cliprdr_process_cb_monitor_ready_event(wfContext* wfc)
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-06-16 06:57:21 +04:00
|
|
|
static void wf_cliprdr_process_cb_data_request_event(wfContext* wfc, RDP_CB_DATA_REQUEST_EVENT* event)
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-06-16 06:57:21 +04:00
|
|
|
static void wf_cliprdr_process_cb_format_list_event(wfContext* wfc, RDP_CB_FORMAT_LIST_EVENT* event)
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-06-16 06:57:21 +04:00
|
|
|
static void wf_cliprdr_process_cb_data_response_event(wfContext* wfc, RDP_CB_DATA_RESPONSE_EVENT* event)
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-06-16 06:57:21 +04:00
|
|
|
void wf_process_cliprdr_event(wfContext* wfc, wMessage* event)
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
2013-03-29 04:23:16 +04:00
|
|
|
switch (GetMessageType(event->id))
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
2013-03-29 04:23:16 +04:00
|
|
|
case CliprdrChannel_MonitorReady:
|
2013-06-16 06:57:21 +04:00
|
|
|
wf_cliprdr_process_cb_monitor_ready_event(wfc);
|
2012-07-21 01:05:06 +04:00
|
|
|
break;
|
|
|
|
|
2013-03-29 04:23:16 +04:00
|
|
|
case CliprdrChannel_FormatList:
|
2013-06-16 06:57:21 +04:00
|
|
|
wf_cliprdr_process_cb_format_list_event(wfc, (RDP_CB_FORMAT_LIST_EVENT*) event);
|
2012-07-21 01:05:06 +04:00
|
|
|
break;
|
|
|
|
|
2013-03-29 04:23:16 +04:00
|
|
|
case CliprdrChannel_DataRequest:
|
2013-06-16 06:57:21 +04:00
|
|
|
wf_cliprdr_process_cb_data_request_event(wfc, (RDP_CB_DATA_REQUEST_EVENT*) event);
|
2012-07-21 01:05:06 +04:00
|
|
|
break;
|
|
|
|
|
2013-03-29 04:23:16 +04:00
|
|
|
case CliprdrChannel_DataResponse:
|
2013-06-16 06:57:21 +04:00
|
|
|
wf_cliprdr_process_cb_data_response_event(wfc, (RDP_CB_DATA_RESPONSE_EVENT*) event);
|
2012-07-21 01:05:06 +04:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-06-16 06:57:21 +04:00
|
|
|
BOOL wf_cliprdr_process_selection_notify(wfContext* wfc, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
2012-10-09 10:31:28 +04:00
|
|
|
return TRUE;
|
2012-07-21 01:05:06 +04:00
|
|
|
}
|
|
|
|
|
2013-06-16 06:57:21 +04:00
|
|
|
BOOL wf_cliprdr_process_selection_request(wfContext* wfc, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
2012-10-09 10:31:28 +04:00
|
|
|
return TRUE;
|
2012-07-21 01:05:06 +04:00
|
|
|
}
|
|
|
|
|
2013-06-16 06:57:21 +04:00
|
|
|
BOOL wf_cliprdr_process_selection_clear(wfContext* wfc, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
2012-10-09 10:31:28 +04:00
|
|
|
return TRUE;
|
2012-07-21 01:05:06 +04:00
|
|
|
}
|
|
|
|
|
2013-06-16 06:57:21 +04:00
|
|
|
BOOL wf_cliprdr_process_property_notify(wfContext* wfc, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
2012-10-09 10:31:28 +04:00
|
|
|
return TRUE;
|
2012-07-21 01:05:06 +04:00
|
|
|
}
|
|
|
|
|
2013-06-16 06:57:21 +04:00
|
|
|
void wf_cliprdr_check_owner(wfContext* wfc)
|
2012-07-21 01:05:06 +04:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|