Jungo WinDriver  
Official Documentation

◆ WD_Transfer

#define WD_Transfer (   h,
  pTransfer 
)     WD_FUNCTION(IOCTL_WD_TRANSFER, h, pTransfer, sizeof(WD_TRANSFER), FALSE)

Executes a single read/write instruction to an I/O port or to a memory address.

Parameters
[in]hHandle to WinDriver's kernel-mode driver as received from WD_Open().
[in,out]pTransferPointer to a transfer information structure
Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise
BYTE read_data;
BZERO(Trans);
Trans.cmdTrans = RP_BYTE; /* Read Port BYTE */
Trans.pPort = 0x210;
WD_Transfer(hWD, &Trans);
read_data = Trans.Data.Byte;
DWORD cmdTrans
Transfer command WD_TRANSFER_CMD.
Definition: windrvr.h:590
BYTE Byte
Use for 8 bit transfer.
Definition: windrvr.h:599
union WD_TRANSFER::@14 Data
KPTR pPort
I/O port for transfer or kernel memory address.
Definition: windrvr.h:589
unsigned char BYTE
Definition: windrvr.h:332
@ RP_BYTE
Read port byte.
Definition: windrvr.h:394
#define BZERO(buf)
Definition: windrvr.h:1553
#define WD_Transfer(h, pTransfer)
Executes a single read/write instruction to an I/O port or to a memory address.
Definition: windrvr.h:1912

Definition at line 1912 of file windrvr.h.