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