#include <wdm.h>
#include "parallel.h"
#include <debug.h>
Go to the source code of this file.
◆ LP_B
◆ LP_C
◆ LP_S
◆ NDEBUG
◆ Dispatch()
Definition at line 75 of file parallel.c.
83{
87
88 switch (
Stack->MajorFunction)
89 {
91 DPRINT(
"(Parallel Port Driver) Creating\n");
94 break;
95
98 break;
99
101 DPRINT(
"(Parallel Port Driver) Writing %d bytes\n",
102 Stack->Parameters.Write.Length);
103 for (
i=0;
i<
Stack->Parameters.Write.Length;
i++)
104 {
106 }
108 break;
109
110 default:
112 break;
113 }
114
116 Irp->IoStatus.Information = 0;
117
120}
static PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(PIRP Irp)
#define STATUS_NOT_IMPLEMENTED
static void Parallel_Reset(void)
static void Parallel_putchar(unsigned char ch)
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
#define IoCompleteRequest
_In_ WDFREQUEST _In_ PIO_STACK_LOCATION Stack
◆ DriverEntry()
Definition at line 123 of file parallel.c.
131{
135
136 DPRINT(
"Parallel Port Driver 0.0.1\n");
137
139 0,
142 0,
146 {
148 }
149
155
157}
#define NT_SUCCESS(StatCode)
static DRIVER_DISPATCH Dispatch
NTSTATUS NTAPI IoCreateDevice(IN PDRIVER_OBJECT DriverObject, IN ULONG DeviceExtensionSize, IN PUNICODE_STRING DeviceName, IN DEVICE_TYPE DeviceType, IN ULONG DeviceCharacteristics, IN BOOLEAN Exclusive, OUT PDEVICE_OBJECT *DeviceObject)
#define FILE_DEVICE_PARALLEL_PORT
#define RTL_CONSTANT_STRING(s)
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
◆ Parallel_putchar()
Definition at line 41 of file parallel.c.
47{
48
51 int wait=0;
52
53 do
54 {
57 }
59
61 {
62 DPRINT(
"printer_putchar(): timed out\n");
63 return;
64 }
65
67 while (wait != 10000) { wait++; }
69 while (wait) { wait--; }
71}
GLuint GLuint GLsizei count
#define WRITE_PORT_UCHAR(p, d)
Referenced by Dispatch().
◆ Parallel_Reset()
◆ Dispatch