PDETERMINE_IEEE_MODES callback function (parallel.h)
The PDETERMINE_IEEE_MODES-typed callback routine determines which IEEE 1284 protocols a parallel device supports. The system-supplied bus driver for parallel ports supplies this routine.
Syntax
PDETERMINE_IEEE_MODES PdetermineIeeeModes;
USHORT PdetermineIeeeModes(
[in] PVOID Context
)
{...}
Parameters
[in] Context
Pointer to a device extension of a parallel device's physical device object (PDO).
Return value
The return value indicates which protocols a parallel device supports. The return value is a bitwise OR of one or more of the following constants that represent the protocols that are supported by the system-supplied bus driver for parallel ports. The protocol constants are listed in order of decreasing data transfer rate.
BOUNDED_ECP
ECP_HW_NOIRQ
EPP_HW
EPP_SW
ECP_SW
IEEE_COMPATIBILITY
CENTRONICS
NONE
Remarks
To obtain a pointer to the system-supplied PDETERMINE_IEEE_MODES callback, a kernel-mode driver uses an IOCTL_INTERNAL_PARCLASS_CONNECT request, which returns a PARCLASS_INFORMATION structure. The DetermineIeeeModes member of the PARCLASS_INFORMATION structure is a pointer to this callback.
The PDETERMINE_IEEE_MODES callback runs in the caller's thread at the IRQL of the caller.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | parallel.h (include Parallel.h) |