2014-07-17 18: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.
|
|
|
|
*/
|
|
|
|
|
2017-06-06 14:01:41 +02:00
|
|
|
#ifndef FREERDP_SERVER_SHADOW_WIN_H
|
|
|
|
#define FREERDP_SERVER_SHADOW_WIN_H
|
2014-07-17 18:27:40 -04:00
|
|
|
|
2014-08-13 17:48:57 -04:00
|
|
|
#include <freerdp/assistance.h>
|
|
|
|
|
2014-07-17 18: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-14 18:41:22 -04:00
|
|
|
#include "win_rdp.h"
|
2014-08-13 17:48:57 -04:00
|
|
|
#include "win_wds.h"
|
2014-08-12 19:22:42 -04:00
|
|
|
#include "win_dxgi.h"
|
2014-07-17 22:38:10 -04:00
|
|
|
|
2014-07-17 18:27:40 -04:00
|
|
|
struct win_shadow_subsystem
|
|
|
|
{
|
2018-03-06 15:43:54 +01:00
|
|
|
rdpShadowSubsystem base;
|
2014-07-17 18:27:40 -04:00
|
|
|
|
2014-07-17 21:15:22 -04:00
|
|
|
int bpp;
|
|
|
|
int width;
|
|
|
|
int height;
|
2014-07-17 22:38:10 -04:00
|
|
|
|
2014-08-13 17:48:57 -04:00
|
|
|
#ifdef WITH_WDS_API
|
2014-08-14 13:10:43 -04:00
|
|
|
HWND hWnd;
|
2014-08-14 18:41:22 -04:00
|
|
|
shwContext* shw;
|
2014-08-15 14:57:09 -04:00
|
|
|
HANDLE RdpUpdateEnterEvent;
|
|
|
|
HANDLE RdpUpdateLeaveEvent;
|
2014-08-13 17:48:57 -04:00
|
|
|
rdpAssistanceFile* pAssistanceFile;
|
|
|
|
_IRDPSessionEvents* pSessionEvents;
|
|
|
|
IRDPSRAPISharingSession* pSharingSession;
|
|
|
|
IRDPSRAPIInvitation* pInvitation;
|
|
|
|
IRDPSRAPIInvitationManager* pInvitationMgr;
|
2014-08-13 20:12:09 -04:00
|
|
|
IRDPSRAPISessionProperties* pSessionProperties;
|
|
|
|
IRDPSRAPIVirtualChannelManager* pVirtualChannelMgr;
|
|
|
|
IRDPSRAPIApplicationFilter* pApplicationFilter;
|
|
|
|
IRDPSRAPIAttendeeManager* pAttendeeMgr;
|
2014-08-13 17:48:57 -04:00
|
|
|
#endif
|
|
|
|
|
2014-07-17 22:38:10 -04:00
|
|
|
#ifdef WITH_DXGI_1_2
|
|
|
|
UINT pendingFrames;
|
2014-07-18 00:20:55 -04:00
|
|
|
BYTE* MetadataBuffer;
|
|
|
|
UINT MetadataBufferSize;
|
2014-07-18 17:26:21 -04:00
|
|
|
BOOL dxgiSurfaceMapped;
|
|
|
|
BOOL dxgiFrameAcquired;
|
2014-07-17 22:38:10 -04:00
|
|
|
ID3D11Device* dxgiDevice;
|
|
|
|
IDXGISurface* dxgiSurface;
|
|
|
|
ID3D11Texture2D* dxgiStage;
|
2014-07-18 00:20:55 -04:00
|
|
|
IDXGIResource* dxgiResource;
|
2014-07-17 22:38:10 -04:00
|
|
|
D3D_FEATURE_LEVEL featureLevel;
|
|
|
|
ID3D11Texture2D* dxgiDesktopImage;
|
|
|
|
DXGI_OUTDUPL_FRAME_INFO dxgiFrameInfo;
|
|
|
|
ID3D11DeviceContext* dxgiDeviceContext;
|
|
|
|
IDXGIOutputDuplication* dxgiOutputDuplication;
|
|
|
|
#endif
|
2014-07-17 18:27:40 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-06-06 14:01:41 +02:00
|
|
|
#endif /* FREERDP_SERVER_SHADOW_WIN_H */
|