Files
djhackersdev_bemanitools/src/main/hooklib/rs232.h
T
Will Xyen 89e3bbd2a3 hooklib: Allow proper passthrough of serial calls to real hardware (#26)
Only enabled / tested on IIDX CB and SDVX5

The point of this, is to allow rs232 hooks for only the descriptors that we hook.
This is because the emulation here is incomplete.
Although the IOCTL's do end up being passed to the real hardware, the game rejects some of the responses and hangs.
By short circuiting out, and calling the real Comm functions instead, it works.
And hence, card-reader passthrough works on IIDX25+/SDVX5+ finally without eamio-real
2019-09-28 17:36:22 -04:00

22 lines
347 B
C

#ifndef HOOKLIB_RS232_H
#define HOOKLIB_RS232_H
#include <windows.h>
void rs232_hook_init(void);
/**
* Allows limiting the rs232 to only the specified fd's
*/
void rs232_hook_limit_hooks(void);
/**
* Adds the specified fd to the list of descriptors to hook
*
* @param fd descriptor to hook
*/
void rs232_hook_add_fd(HANDLE fd);
#endif