From 968b313993c371ee0f81608ecc013c8f98ff1f03 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 12 Nov 2019 13:08:37 +1100 Subject: [PATCH] [porthole] updated windows driver defines --- porthole/src/windows/driver.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/porthole/src/windows/driver.h b/porthole/src/windows/driver.h index 0b230e18..a0886efa 100644 --- a/porthole/src/windows/driver.h +++ b/porthole/src/windows/driver.h @@ -15,5 +15,13 @@ PortholeMsg, *PPortholeMsg; typedef int PortholeMapID, *PPortholeMapID; -#define IOCTL_PORTHOLE_SEND_MSG CTL_CODE(FILE_DEVICE_UNKNOWN, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define IOCTL_PORTHOLE_UNLOCK_BUFFER CTL_CODE(FILE_DEVICE_UNKNOWN, 0x801, METHOD_BUFFERED, FILE_ANY_ACCESS) \ No newline at end of file +typedef struct _PortholeEvents +{ + HANDLE connect; + HANDLE disconnect; +} +PortholeEvents, *PPortholeEvents; + +#define IOCTL_PORTHOLE_SEND_MSG CTL_CODE(FILE_DEVICE_UNKNOWN, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define IOCTL_PORTHOLE_UNLOCK_BUFFER CTL_CODE(FILE_DEVICE_UNKNOWN, 0x801, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define IOCTL_PORTHOLE_REGISTER_EVENTS CTL_CODE(FILE_DEVICE_UNKNOWN, 0x802, METHOD_BUFFERED, FILE_ANY_ACCESS) \ No newline at end of file