FreeRDP
wf_mirage.c File Reference
#include <winpr/tchar.h>
#include <winpr/windows.h>
#include "wf_mirage.h"
#include <freerdp/log.h>

Macros

#define TAG   SERVER_TAG("Windows.mirror")
 
#define DEVICE_KEY_PREFIX   _T("\\Registry\\Machine\\")
 

Functions

BOOL wf_mirror_driver_find_display_device (wfInfo *wfi)
 
BOOL wf_mirror_driver_display_device_attach (wfInfo *wfi, DWORD mode)
 
void wf_mirror_driver_print_display_change_status (LONG status)
 
BOOL wf_mirror_driver_update (wfInfo *wfi, int mode)
 
BOOL wf_mirror_driver_map_memory (wfInfo *wfi)
 
BOOL wf_mirror_driver_cleanup (wfInfo *wfi)
 
BOOL wf_mirror_driver_activate (wfInfo *wfi)
 
void wf_mirror_driver_deactivate (wfInfo *wfi)
 

Macro Definition Documentation

◆ DEVICE_KEY_PREFIX

#define DEVICE_KEY_PREFIX   _T("\\Registry\\Machine\\")

◆ TAG

#define TAG   SERVER_TAG("Windows.mirror")

FreeRDP: A Remote Desktop Protocol Implementation FreeRDP Windows Server

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2012-2013 Corey Clayton can.o.nosp@m.f.tu.nosp@m.na@gm.nosp@m.ail..nosp@m.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.

Function Documentation

◆ wf_mirror_driver_activate()

BOOL wf_mirror_driver_activate ( wfInfo *  wfi)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wf_mirror_driver_cleanup()

BOOL wf_mirror_driver_cleanup ( wfInfo *  wfi)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wf_mirror_driver_deactivate()

void wf_mirror_driver_deactivate ( wfInfo *  wfi)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wf_mirror_driver_display_device_attach()

BOOL wf_mirror_driver_display_device_attach ( wfInfo *  wfi,
DWORD  mode 
)

This function will attempt to access the the windows registry using the device key stored in the current wfi. It will attempt to read the value of the "Attach.ToDesktop" subkey and will return TRUE if the value is already set to val. If unable to read the subkey, this function will return FALSE. If the subkey is not set to val it will then attempt to set it to val and return TRUE. If unsuccessful or an unexpected value is encountered, the function returns FALSE.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wf_mirror_driver_find_display_device()

BOOL wf_mirror_driver_find_display_device ( wfInfo *  wfi)
Here is the caller graph for this function:

◆ wf_mirror_driver_map_memory()

BOOL wf_mirror_driver_map_memory ( wfInfo *  wfi)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wf_mirror_driver_print_display_change_status()

void wf_mirror_driver_print_display_change_status ( LONG  status)
Here is the caller graph for this function:

◆ wf_mirror_driver_update()

BOOL wf_mirror_driver_update ( wfInfo *  wfi,
int  mode 
)

This function will attempt to apply the currently configured display settings in the registry to the display driver. It will return TRUE if successful otherwise it returns FALSE. If mode is MIRROR_UNLOAD then the the driver will be asked to remove itself.

Here is the call graph for this function:
Here is the caller graph for this function: