Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Convert in c# a function with structure containing a pointer

$
0
0

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;


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>