FreeRDP
printer_win.c File Reference
#include <winpr/crt.h>
#include <winpr/string.h>
#include <winpr/windows.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <winspool.h>
#include <freerdp/client/printer.h>

Macros

#define PRINTER_TAG   CHANNELS_TAG("printer.client")
 
#define DEBUG_WINPR(...)
 

Functions

static WCHAR * printer_win_get_printjob_name (size_t id)
 
static UINT printer_win_write_printjob (rdpPrintJob *printjob, const BYTE *data, size_t size)
 
static void printer_win_close_printjob (rdpPrintJob *printjob)
 
static rdpPrintJob * printer_win_create_printjob (rdpPrinter *printer, UINT32 id)
 
static rdpPrintJob * printer_win_find_printjob (rdpPrinter *printer, UINT32 id)
 
static void printer_win_free_printer (rdpPrinter *printer)
 
static void printer_win_add_ref_printer (rdpPrinter *printer)
 
static void printer_win_release_ref_printer (rdpPrinter *printer)
 
static rdpPrinter * printer_win_new_printer (rdpWinPrinterDriver *win_driver, const WCHAR *name, const WCHAR *drivername, BOOL is_default)
 
static void printer_win_release_enum_printers (rdpPrinter **printers)
 
static rdpPrinter ** printer_win_enum_printers (rdpPrinterDriver *driver)
 
static rdpPrinter * printer_win_get_printer (rdpPrinterDriver *driver, const char *name, const char *driverName)
 
static void printer_win_add_ref_driver (rdpPrinterDriver *driver)
 
static void printer_win_release_ref_driver (rdpPrinterDriver *driver)
 
FREERDP_API rdpPrinterDriver * freerdp_printer_client_subsystem_entry (void)
 

Variables

static rdpWinPrinterDriver * win_driver = NULL
 

Macro Definition Documentation

#define DEBUG_WINPR (   ...)
Value:
do \
{ \
} while (0)
#define PRINTER_TAG   CHANNELS_TAG("printer.client")

FreeRDP: A Remote Desktop Protocol Implementation Print Virtual Channel - WIN driver

Copyright 2012 Gerald Richter Copyright 2015 Thincast Technologies GmbH Copyright 2015 DI (FH) Martin Haimberger marti.nosp@m.n.ha.nosp@m.imber.nosp@m.ger@.nosp@m.thinc.nosp@m.ast..nosp@m.com Copyright 2016 Armin Novak armin.nosp@m..nov.nosp@m.ak@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

FREERDP_API rdpPrinterDriver* freerdp_printer_client_subsystem_entry ( void  )

Here is the call graph for this function:

static void printer_win_add_ref_driver ( rdpPrinterDriver *  driver)
static

Here is the caller graph for this function:

static void printer_win_add_ref_printer ( rdpPrinter *  printer)
static

Here is the caller graph for this function:

static void printer_win_close_printjob ( rdpPrintJob *  printjob)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static rdpPrintJob* printer_win_create_printjob ( rdpPrinter *  printer,
UINT32  id 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static rdpPrinter** printer_win_enum_printers ( rdpPrinterDriver *  driver)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static rdpPrintJob* printer_win_find_printjob ( rdpPrinter *  printer,
UINT32  id 
)
static

Here is the caller graph for this function:

static void printer_win_free_printer ( rdpPrinter *  printer)
static

Here is the caller graph for this function:

static rdpPrinter* printer_win_get_printer ( rdpPrinterDriver *  driver,
const char *  name,
const char *  driverName 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static WCHAR* printer_win_get_printjob_name ( size_t  id)
static

Here is the caller graph for this function:

static rdpPrinter* printer_win_new_printer ( rdpWinPrinterDriver *  win_driver,
const WCHAR *  name,
const WCHAR *  drivername,
BOOL  is_default 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void printer_win_release_enum_printers ( rdpPrinter **  printers)
static

Here is the caller graph for this function:

static void printer_win_release_ref_driver ( rdpPrinterDriver *  driver)
static

Here is the caller graph for this function:

static void printer_win_release_ref_printer ( rdpPrinter *  printer)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT printer_win_write_printjob ( rdpPrintJob *  printjob,
const BYTE data,
size_t  size 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

rdpWinPrinterDriver* win_driver = NULL
static