DriverControl

cCall [pDriverControl], <DriverFunction, hDevNode, ReferenceData [,...]>
 

Called by the VCOMM to perform various actions. Uses the C calling convention.

DriverFunction
32-bit value specifying the action to carry out. For more information, see the following.
hDevNode
Handle of the device node. This parameter is zero for port drivers that are not plug-and-play compliant, and on versions of Windows prior to Windows 95.
ReferenceData
32-bit value to pass to the _VCOMM_Add_Port service.

Additional parameters are defined for specific driver-control functions. The only function currently defined is DC_InitializePort. At registration time, VCOMM calls this function once for each port the driver supports. If a port driver does not support plug-and-play, VCOMM calls the function exactly once. The port driver should check for the existence of the port, and then call the _VCOMM_Add_Port service. Following are the parameters specific to the DC_InitializePort driver-control function:

Name Address of a null-terminated string specifying the port name.
AllocIOBase Base I/O address allocated to the port.
AllocIrq Interrupt request line (IRQ) allocated to the port.

See Also

_VCOMM_Add_Port