mirror of
https://github.com/nefarius/ViGEmBus.git
synced 2025-08-10 00:52:17 +00:00
Added VIGEM_WAIT_DEVICE_READY
This commit is contained in:
@@ -62,6 +62,7 @@ DEFINE_GUID(GUID_DEVINTERFACE_BUSENUM_VIGEM,
|
||||
#define IOCTL_VIGEM_PLUGIN_TARGET BUSENUM_W_IOCTL (IOCTL_VIGEM_BASE + 0x000)
|
||||
#define IOCTL_VIGEM_UNPLUG_TARGET BUSENUM_W_IOCTL (IOCTL_VIGEM_BASE + 0x001)
|
||||
#define IOCTL_VIGEM_CHECK_VERSION BUSENUM_W_IOCTL (IOCTL_VIGEM_BASE + 0x002)
|
||||
#define IOCTL_VIGEM_WAIT_DEVICE_READY BUSENUM_W_IOCTL (IOCTL_VIGEM_BASE + 0x003)
|
||||
|
||||
#define IOCTL_XUSB_REQUEST_NOTIFICATION BUSENUM_RW_IOCTL(IOCTL_VIGEM_BASE + 0x200)
|
||||
#define IOCTL_XUSB_SUBMIT_REPORT BUSENUM_W_IOCTL (IOCTL_VIGEM_BASE + 0x201)
|
||||
@@ -184,6 +185,29 @@ VOID FORCEINLINE VIGEM_CHECK_VERSION_INIT(
|
||||
CheckVersion->Version = Version;
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region Wait device ready
|
||||
|
||||
typedef struct _VIGEM_WAIT_DEVICE_READY
|
||||
{
|
||||
IN ULONG Size;
|
||||
|
||||
IN ULONG SerialNo;
|
||||
|
||||
} VIGEM_WAIT_DEVICE_READY, * PVIGEM_WAIT_DEVICE_READY;
|
||||
|
||||
VOID FORCEINLINE VIGEM_WAIT_DEVICE_READY_INIT(
|
||||
_Out_ PVIGEM_WAIT_DEVICE_READY WaitReady,
|
||||
_In_ ULONG SerialNo
|
||||
)
|
||||
{
|
||||
RtlZeroMemory(WaitReady, sizeof(VIGEM_WAIT_DEVICE_READY));
|
||||
|
||||
WaitReady->Size = sizeof(VIGEM_WAIT_DEVICE_READY);
|
||||
WaitReady->SerialNo = SerialNo;
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region XUSB (aka Xbox 360 device) section
|
||||
|
||||
Reference in New Issue
Block a user