I'm trying to build a wrapper but the pointer gives me a hard time.
the C code:
typedef enum
{
MANYMOUSE_EVENT _ABSMOTION = 0,
MANYMOUSE_EVENT _RELMOTION,
MANYMOUSE_EVENT _BUTTON,
MANYMOUSE_EVENT _SCROLL,
MANYMOUSE_EVENT _DISCONNECT,
MANYMOUSE_EVENT _MAX
} ManyMouseEventT ype;
__declspec(dlle xport) typedef struct
{
ManyMouseEventT ype type;
unsigned int device;
unsigned int item;
int value;
int minval;
int maxval;
} ManyMouseEvent;
__declspec(dlle xport) int ManyMouse_PollE vent(ManyMouseE vent *event);
C# code:
[DllImport("Many MouseDLL.dll")]
public static extern int ManyMouse_PollE vent( );
the C code:
typedef enum
{
MANYMOUSE_EVENT _ABSMOTION = 0,
MANYMOUSE_EVENT _RELMOTION,
MANYMOUSE_EVENT _BUTTON,
MANYMOUSE_EVENT _SCROLL,
MANYMOUSE_EVENT _DISCONNECT,
MANYMOUSE_EVENT _MAX
} ManyMouseEventT ype;
__declspec(dlle xport) typedef struct
{
ManyMouseEventT ype type;
unsigned int device;
unsigned int item;
int value;
int minval;
int maxval;
} ManyMouseEvent;
__declspec(dlle xport) int ManyMouse_PollE vent(ManyMouseE vent *event);
C# code:
[DllImport("Many MouseDLL.dll")]
public static extern int ManyMouse_PollE vent( );
Comment