INT32S DRV_WritePortDword( PTR_T DeviceHandle, PT_WritePortDword *lpWritePortDword );
On the device indicated by the DeviceHandle, it writes a double word (four bytes from four continuous ports) to a system I/O port. The port specifies the absolute I/O address, which is valid only within the range of space allocated by the system.
Some parameters, such as specified I/O port address (port) and read back status (DWordData), are stored in the PT_WritePortDword structure pointed by the lpWritePortWord.
| Name | Direction | Range | Description |
| DeviceHandle | input | default | The pointer retrieved from the DRV_DeviceOpen which specifies the target device. |
| lpWritePortDword | input / output | default | Pointer to the user-prepared structure PT_WritePortDword that stores the specified I/O port address (INT16U port) and read back status (INT32U DWordData). |
| 1. 0 | Successful. |
| 2. InvalidDevcieHandle | The DeviceHandle is NULL. |
| 3. Other value | Please reference ErrorCodes |