FreeRDP
wf_client.c File Reference
#include <winpr/windows.h>
#include <winpr/crt.h>
#include <winpr/credui.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <tchar.h>
#include <assert.h>
#include <sys/types.h>
#include <freerdp/log.h>
#include <freerdp/event.h>
#include <freerdp/freerdp.h>
#include <freerdp/constants.h>
#include <freerdp/codec/region.h>
#include <freerdp/client/cmdline.h>
#include <freerdp/client/channels.h>
#include <freerdp/channels/channels.h>
#include "wf_gdi.h"
#include "wf_rail.h"
#include "wf_channels.h"
#include "wf_graphics.h"
#include "wf_cliprdr.h"
#include "wf_client.h"
#include "resource.h"

Macros

#define TAG   CLIENT_TAG("windows")
 

Functions

static int wf_create_console (void)
 
static BOOL wf_end_paint (rdpContext *context)
 
static BOOL wf_begin_paint (rdpContext *context)
 
static BOOL wf_desktop_resize (rdpContext *context)
 
static BOOL wf_pre_connect (freerdp *instance)
 
static void wf_add_system_menu (wfContext *wfc)
 
static WCHAR * wf_window_get_title (rdpSettings *settings)
 
static BOOL wf_post_connect (freerdp *instance)
 
static BOOL wf_post_disconnect (freerdp *instance)
 
static BOOL wf_authenticate_raw (freerdp *instance, const char *title, char **username, char **password, char **domain)
 
static BOOL wf_authenticate (freerdp *instance, char **username, char **password, char **domain)
 
static BOOL wf_gw_authenticate (freerdp *instance, char **username, char **password, char **domain)
 
static DWORD wf_verify_certificate (freerdp *instance, const char *common_name, const char *subject, const char *issuer, const char *fingerprint, BOOL host_mismatch)
 
static DWORD wf_verify_changed_certificate (freerdp *instance, const char *common_name, const char *subject, const char *issuer, const char *fingerprint, const char *old_subject, const char *old_issuer, const char *old_fingerprint)
 
static DWORD WINAPI wf_input_thread (LPVOID arg)
 
static DWORD WINAPI wf_client_thread (LPVOID lpParam)
 
static DWORD WINAPI wf_keyboard_thread (LPVOID lpParam)
 
static rdpSettings * freerdp_client_get_settings (wfContext *wfc)
 
static int freerdp_client_focus_in (wfContext *wfc)
 
static int freerdp_client_focus_out (wfContext *wfc)
 
static int freerdp_client_set_window_size (wfContext *wfc, int width, int height)
 
void wf_size_scrollbars (wfContext *wfc, UINT32 client_width, UINT32 client_height)
 
static BOOL wfreerdp_client_global_init (void)
 
static void wfreerdp_client_global_uninit (void)
 
static BOOL wfreerdp_client_new (freerdp *instance, rdpContext *context)
 
static void wfreerdp_client_free (freerdp *instance, rdpContext *context)
 
static int wfreerdp_client_start (rdpContext *context)
 
static int wfreerdp_client_stop (rdpContext *context)
 
int RdpClientEntry (RDP_CLIENT_ENTRY_POINTS *pEntryPoints)
 

Variables

static CREDUI_INFOA wfUiInfo
 

Macro Definition Documentation

#define TAG   CLIENT_TAG("windows")

FreeRDP: A Remote Desktop Protocol Implementation Windows Client

Copyright 2009-2011 Jay Sorg Copyright 2010-2011 Vic Lee Copyright 2010-2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..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

static int freerdp_client_focus_in ( wfContext *  wfc)
static
static int freerdp_client_focus_out ( wfContext *  wfc)
static
static rdpSettings* freerdp_client_get_settings ( wfContext *  wfc)
static
static int freerdp_client_set_window_size ( wfContext *  wfc,
int  width,
int  height 
)
static
int RdpClientEntry ( RDP_CLIENT_ENTRY_POINTS pEntryPoints)

Client Interface

Here is the call graph for this function:

static void wf_add_system_menu ( wfContext *  wfc)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL wf_authenticate ( freerdp *  instance,
char **  username,
char **  password,
char **  domain 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL wf_authenticate_raw ( freerdp *  instance,
const char *  title,
char **  username,
char **  password,
char **  domain 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL wf_begin_paint ( rdpContext *  context)
static

Here is the caller graph for this function:

static DWORD WINAPI wf_client_thread ( LPVOID  lpParam)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int wf_create_console ( void  )
static

Here is the caller graph for this function:

static BOOL wf_desktop_resize ( rdpContext *  context)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL wf_end_paint ( rdpContext *  context)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL wf_gw_authenticate ( freerdp *  instance,
char **  username,
char **  password,
char **  domain 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static DWORD WINAPI wf_input_thread ( LPVOID  arg)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static DWORD WINAPI wf_keyboard_thread ( LPVOID  lpParam)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL wf_post_connect ( freerdp *  instance)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL wf_post_disconnect ( freerdp *  instance)
static

Here is the caller graph for this function:

static BOOL wf_pre_connect ( freerdp *  instance)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void wf_size_scrollbars ( wfContext *  wfc,
UINT32  client_width,
UINT32  client_height 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static DWORD wf_verify_certificate ( freerdp *  instance,
const char *  common_name,
const char *  subject,
const char *  issuer,
const char *  fingerprint,
BOOL  host_mismatch 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static DWORD wf_verify_changed_certificate ( freerdp *  instance,
const char *  common_name,
const char *  subject,
const char *  issuer,
const char *  fingerprint,
const char *  old_subject,
const char *  old_issuer,
const char *  old_fingerprint 
)
static

Here is the caller graph for this function:

static WCHAR* wf_window_get_title ( rdpSettings *  settings)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void wfreerdp_client_free ( freerdp *  instance,
rdpContext *  context 
)
static

Here is the caller graph for this function:

static BOOL wfreerdp_client_global_init ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void wfreerdp_client_global_uninit ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL wfreerdp_client_new ( freerdp *  instance,
rdpContext *  context 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int wfreerdp_client_start ( rdpContext *  context)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int wfreerdp_client_stop ( rdpContext *  context)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

CREDUI_INFOA wfUiInfo
static
Initial value:
=
{
sizeof(CREDUI_INFOA),
"Enter your credentials",
"Remote Desktop Security",
}
if availableBytes return NULL
Definition: TPCircularBuffer.h:104
Definition: credui.h:71