2014-07-18 02:27:40 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
*
|
|
|
|
* Copyright 2011-2014 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FREERDP_SHADOW_SERVER_WIN_H
|
|
|
|
#define FREERDP_SHADOW_SERVER_WIN_H
|
|
|
|
|
2014-08-14 01:48:57 +04:00
|
|
|
#include <freerdp/assistance.h>
|
|
|
|
|
2014-07-18 02:27:40 +04:00
|
|
|
#include <freerdp/server/shadow.h>
|
|
|
|
|
|
|
|
typedef struct win_shadow_subsystem winShadowSubsystem;
|
|
|
|
|
|
|
|
#include <winpr/crt.h>
|
|
|
|
#include <winpr/synch.h>
|
|
|
|
#include <winpr/thread.h>
|
|
|
|
#include <winpr/stream.h>
|
|
|
|
#include <winpr/collections.h>
|
|
|
|
|
2014-08-15 02:41:22 +04:00
|
|
|
#include "win_rdp.h"
|
2014-08-14 01:48:57 +04:00
|
|
|
#include "win_wds.h"
|
2014-08-13 03:22:42 +04:00
|
|
|
#include "win_dxgi.h"
|
2014-07-18 06:38:10 +04:00
|
|
|
|
2014-07-18 02:27:40 +04:00
|
|
|
struct win_shadow_subsystem
|
|
|
|
{
|
|
|
|
RDP_SHADOW_SUBSYSTEM_COMMON();
|
|
|
|
|
2014-07-18 05:15:22 +04:00
|
|
|
int bpp;
|
|
|
|
int width;
|
|
|
|
int height;
|
2014-07-18 06:38:10 +04:00
|
|
|
|
2014-08-14 01:48:57 +04:00
|
|
|
#ifdef WITH_WDS_API
|
2014-08-14 21:10:43 +04:00
|
|
|
HWND hWnd;
|
2014-08-15 02:41:22 +04:00
|
|
|
shwContext* shw;
|
2014-08-15 22:57:09 +04:00
|
|
|
HANDLE RdpUpdateEnterEvent;
|
|
|
|
HANDLE RdpUpdateLeaveEvent;
|
2014-08-14 01:48:57 +04:00
|
|
|
rdpAssistanceFile* pAssistanceFile;
|
|
|
|
_IRDPSessionEvents* pSessionEvents;
|
|
|
|
IRDPSRAPISharingSession* pSharingSession;
|
|
|
|
IRDPSRAPIInvitation* pInvitation;
|
|
|
|
IRDPSRAPIInvitationManager* pInvitationMgr;
|
2014-08-14 04:12:09 +04:00
|
|
|
IRDPSRAPISessionProperties* pSessionProperties;
|
|
|
|
IRDPSRAPIVirtualChannelManager* pVirtualChannelMgr;
|
|
|
|
IRDPSRAPIApplicationFilter* pApplicationFilter;
|
|
|
|
IRDPSRAPIAttendeeManager* pAttendeeMgr;
|
2014-08-14 01:48:57 +04:00
|
|
|
#endif
|
|
|
|
|
2014-07-18 06:38:10 +04:00
|
|
|
#ifdef WITH_DXGI_1_2
|
|
|
|
UINT pendingFrames;
|
2014-07-18 08:20:55 +04:00
|
|
|
BYTE* MetadataBuffer;
|
|
|
|
UINT MetadataBufferSize;
|
2014-07-19 01:26:21 +04:00
|
|
|
BOOL dxgiSurfaceMapped;
|
|
|
|
BOOL dxgiFrameAcquired;
|
2014-07-18 06:38:10 +04:00
|
|
|
ID3D11Device* dxgiDevice;
|
|
|
|
IDXGISurface* dxgiSurface;
|
|
|
|
ID3D11Texture2D* dxgiStage;
|
2014-07-18 08:20:55 +04:00
|
|
|
IDXGIResource* dxgiResource;
|
2014-07-18 06:38:10 +04:00
|
|
|
D3D_FEATURE_LEVEL featureLevel;
|
|
|
|
ID3D11Texture2D* dxgiDesktopImage;
|
|
|
|
DXGI_OUTDUPL_FRAME_INFO dxgiFrameInfo;
|
|
|
|
ID3D11DeviceContext* dxgiDeviceContext;
|
|
|
|
IDXGIOutputDuplication* dxgiOutputDuplication;
|
|
|
|
#endif
|
2014-07-18 02:27:40 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* FREERDP_SHADOW_SERVER_WIN_H */
|