Go to the source code of this file.
|
static PRINTER * | get_printer_data (RDPCLIENT *This, NTHANDLE handle) |
|
int | printer_enum_devices (RDPCLIENT *This, uint32 *id, char *optarg) |
|
static NTSTATUS | printer_create (RDPCLIENT *This, uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition, uint32 flags, char *filename, NTHANDLE *handle) |
|
static NTSTATUS | printer_close (RDPCLIENT *This, NTHANDLE handle) |
|
static NTSTATUS | printer_write (RDPCLIENT *This, NTHANDLE handle, uint8 *data, uint32 length, uint32 offset, uint32 *result) |
|
◆ get_printer_data()
◆ printer_close()
Definition at line 127 of file printer.c.
128{
131 {
132 PRINTER *pprinter_data =
This->rdpdr_device[
i].pdevice_data;
133 if (pprinter_data)
135 This->rdpdr_device[
i].handle = 0;
136 }
138}
int get_device_index(RD_NTHANDLE handle)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
◆ printer_create()
Definition at line 102 of file printer.c.
104{
107
108 pprinter_data = (
PRINTER *)
This->rdpdr_device[device_id].pdevice_data;
109
110
111 if (pprinter_data->
printer ==
"mydeskjet")
112 {
114 }
115 else
116 {
119 }
120
122 *
handle =
This->rdpdr_device[device_id].handle;
124}
#define sprintf(buf, format,...)
◆ printer_enum_devices()
Definition at line 36 of file printer.c.
37{
39
41 char *pos2;
43 int already = 0;
44
45
46
48 {
50 already++;
52 }
53
55
58
60 {
62
65
66
67 if ((already +
count) == 0)
69 else
71
73 if (*
optarg == (
char) 0x00)
74 pprinter_data->
printer =
"mydeskjet";
75 else
76 {
79 }
80
81 if (!pos2 || (*pos2 == (char) 0x00))
82 pprinter_data->
driver =
"HP Color LaserJet 8500 PS";
83 else
84 {
87 }
88
89 printf(
"PRINTER %s to %s driver %s\n",
This->rdpdr_device[*
id].name,
92 This->rdpdr_device[*
id].pdevice_data = (
void *) pprinter_data;
94 (*id)++;
95
97 }
99}
ACPI_SIZE strlen(const char *String)
#define DEVICE_TYPE_PRINTER
char * l_to_a(long N, int base)
char * next_arg(char *src, char needle)
GLuint GLuint GLsizei count
◆ printer_write()
Definition at line 141 of file printer.c.
142{
144
147
149 {
152 }
154}
#define STATUS_INVALID_HANDLE
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLuint GLsizei GLsizei * length
_Check_return_ _CRTIMP int __cdecl ferror(_In_ FILE *_File)
_Check_return_opt_ _CRTIMP size_t __cdecl fwrite(_In_reads_bytes_(_Size *_Count) const void *_Str, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
static PRINTER * get_printer_data(RDPCLIENT *This, NTHANDLE handle)
◆ printer_fns
Initial value:= {
}
static NTSTATUS printer_create(RDPCLIENT *This, uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition, uint32 flags, char *filename, NTHANDLE *handle)
static NTSTATUS printer_close(RDPCLIENT *This, NTHANDLE handle)
static NTSTATUS printer_write(RDPCLIENT *This, NTHANDLE handle, uint8 *data, uint32 length, uint32 offset, uint32 *result)
Definition at line 156 of file printer.c.
Referenced by rdpdr_process_irp().