Bewerken

Delen via


Obsolete Kernel-Mode Driver-Support Functions

The header file portcls.hdefines four macros that contain the names of obsolete kernel-mode driver-support functions. These macros allow old source code that contains references to the obsolete function names to be recompiled to use the new kernel functions without requiring any edits to the source files.

When compiling source code that uses the obsolete names, define the parameter name PC_OLD_NAMES. This parameter can be defined by the compiler command-line argument "-DPC_OLD_NAMES" if that is more convenient than introducing the statement #define PC_OLD_NAMES into the source files themselves.

The following table lists the obsolete kernel-mode driver-support function names in the left column. For each obsolete name, the right column contains the name of the new kernel function that replaces it. In each case, the macro definition amounts to a simple name change. The argument lists for the obsolete function and the new function are identical.

Obsolete Function Name New Function Name

WIN95COMPAT_ReadPortUChar

READ_PORT_UCHAR

WIN95COMPAT_WritePortUChar

WRITE_PORT_UCHAR

WIN95COMPAT_ReadPortUShort

READ_PORT_USHORT

WIN95COMPAT_WritePortUShort

WRITE_PORT_USHORT