As a little personal project, I am trying to move the mouse without using the MOUSE_EVENT function.

I have installed a custom mouse driver (moufiltr) and am trying to use the MouseClassServiceCallback routine.

VOID MouseClassServiceCallback(
  _In_    PDEVICE_OBJECT    DeviceObject,
  _In_    PMOUSE_INPUT_DATA InputDataStart,
  _In_    PMOUSE_INPUT_DATA InputDataEnd,
  _Inout_ PULONG            InputDataConsumed
Would it be possible to use MOUSE_INPUT_DATA to move the mouse ?

I am looking for some examples to learn from, but I have been unsuccessful.

This currently works perfectly :
void Mouse::click(int ms)
	mouse_event(MOUSEEVENTF_RIGHTDOWN, int(X), y, 0, 0);
	mouse_event(MOUSEEVENTF_RIGHTUP, int(X), y, 0, 0);
but I would like to avoid using the MOUSE_EVENT function to achieve the same result.