FreeRDP
printer_main.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/crt.h>
#include <winpr/synch.h>
#include <winpr/thread.h>
#include <winpr/stream.h>
#include <winpr/interlocked.h>
#include <freerdp/channels/rdpdr.h>
#include "../printer.h"
#include "printer_main.h"
#include <freerdp/channels/log.h>

Macros

#define TAG   CHANNELS_TAG("printer.client")
 
#define DeviceServiceEntry   FREERDP_API DeviceServiceEntry
 

Functions

static UINT printer_process_irp_create (PRINTER_DEVICE *printer_dev, IRP *irp)
 
static UINT printer_process_irp_close (PRINTER_DEVICE *printer_dev, IRP *irp)
 
static UINT printer_process_irp_write (PRINTER_DEVICE *printer_dev, IRP *irp)
 
static UINT printer_process_irp_device_control (PRINTER_DEVICE *printer_dev, IRP *irp)
 
static UINT printer_process_irp (PRINTER_DEVICE *printer_dev, IRP *irp)
 
static DWORD WINAPI printer_thread_func (LPVOID arg)
 
static UINT printer_irp_request (DEVICE *device, IRP *irp)
 
static UINT printer_free (DEVICE *device)
 
UINT printer_register (PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints, rdpPrinter *printer)
 
UINT DeviceServiceEntry (PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints)
 

Macro Definition Documentation

#define DeviceServiceEntry   FREERDP_API DeviceServiceEntry
#define TAG   CHANNELS_TAG("printer.client")

FreeRDP: A Remote Desktop Protocol Implementation Print Virtual Channel

Copyright 2010-2011 Vic Lee 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 Copyright 2016 David PHAM-VAN d.pha.nosp@m.mvan.nosp@m.@inuv.nosp@m.ika..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

UINT DeviceServiceEntry ( PDEVICE_SERVICE_ENTRY_POINTS  pEntryPoints)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

static UINT printer_free ( DEVICE *  device)
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:

static UINT printer_irp_request ( DEVICE *  device,
IRP *  irp 
)
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:

static UINT printer_process_irp ( PRINTER_DEVICE *  printer_dev,
IRP *  irp 
)
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:

static UINT printer_process_irp_close ( PRINTER_DEVICE *  printer_dev,
IRP *  irp 
)
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:

static UINT printer_process_irp_create ( PRINTER_DEVICE *  printer_dev,
IRP *  irp 
)
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:

static UINT printer_process_irp_device_control ( PRINTER_DEVICE *  printer_dev,
IRP *  irp 
)
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:

static UINT printer_process_irp_write ( PRINTER_DEVICE *  printer_dev,
IRP *  irp 
)
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:

UINT printer_register ( PDEVICE_SERVICE_ENTRY_POINTS  pEntryPoints,
rdpPrinter *  printer 
)

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:

static DWORD WINAPI printer_thread_func ( LPVOID  arg)
static

Here is the call graph for this function:

Here is the caller graph for this function: