[Wine-patches] [eterhack] [0012/0021] parport.sys: Add parallel port callback routines.
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Ср Янв 28 21:10:09 MSK 2009
---
dlls/parport.sys/parport.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/dlls/parport.sys/parport.c b/dlls/parport.sys/parport.c
index 677980f..fc7aa3f 100644
--- a/dlls/parport.sys/parport.c
+++ b/dlls/parport.sys/parport.c
@@ -46,6 +46,23 @@ struct ParPortExtension
unsigned long int base_addr;
};
+static BOOLEAN WINAPI parport_try( void *context )
+{
+ FIXME( "stub: %p\n", context );
+ return TRUE;
+}
+
+void WINAPI parport_free( void *context )
+{
+ FIXME( "stub: %p\n", context );
+}
+
+ULONG WINAPI parport_query_waiters( void *context )
+{
+ FIXME( "stub: %p\n", context );
+ return 0;
+}
+
static NTSTATUS WINAPI parport_ioctl( DEVICE_OBJECT *device, IRP *irp )
{
IO_STACK_LOCATION *irpsp = irp->Tail.Overlay.s.u.CurrentStackLocation;
@@ -69,6 +86,9 @@ static NTSTATUS WINAPI parport_ioctl( DEVICE_OBJECT *device, IRP *irp )
RtlZeroMemory( ppi, sizeof(*ppi) );
ppi->OriginalController.QuadPart = ppe->base_addr;
ppi->Controller = (PUCHAR)ppe->base_addr;
+ ppi->TryAllocatePort = parport_try;
+ ppi->FreePort = parport_free;
+ ppi->QueryNumWaiters = parport_query_waiters;
irp->IoStatus.Information = sizeof(PARALLEL_PORT_INFORMATION);
status = STATUS_SUCCESS;
break;
--
1.6.0.2.GIT
Подробная информация о списке рассылки Wine-patches