How can I convert in C# the C function DRV_DioReadBitcontaining the structure PT_DioReadBit:
FEXPORT LRESULT FTYPE DRV_DioReadBit(LONG_PTR DriverHandle,
LPT_DioReadBit lpDioReadBit);
One of the members of the structure PT_DioReadBit, contains the pointer *state:
typedef struct tagPT_DioReadBit
{
USHORT port;
USHORT bit;
USHORT far *state;
} PT_DioReadBit, FAR * LPT_DioReadBit;