Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

64 lines
1.0 KiB

/*++
Copyright (c) 1993 Microsoft Corporation
Module Name:
parloop.c
Abstract:
This module contains the processor independant version of the
write loop for the parallel driver.
Author:
Anthony V. Ercolano 1-Aug-1992
Norbert P. Kusters 22-Oct-1993
Environment:
Kernel mode
Revision History :
--*/
#include "ntddk.h"
#include "parloop.h"
ULONG
ParWriteLoop(
IN PUCHAR Controller,
IN PUCHAR Buffer,
IN ULONG BufferSize
)
/*++
Routine Description:
This routine outputs the given write buffer to the parallel port
using the standard centronics protocol.
Arguments:
Controller - Supplies the base address of the parallel port.
Buffer - Supplies the buffer to write to the port.
BufferSize - Supplies the number of bytes to write out to the port.
Return Value:
The number of bytes successfully written out to the parallel port.
Notes:
This routine runs at DISPATCH_LEVEL.
--*/
{
return(ParWriteLoopPI(Controller, Buffer, BufferSize, 1));
}