- Make the package compile for i386

- Make the pAddr arg for DivertRecv() optional
- Make the i386 user binaries compatible with an amd64 driver.
  (useful for projects not yet ported to amd64)
This commit is contained in:
basil00
2011-08-23 22:18:02 +08:00
parent 378df755bc
commit 0ff63cda99
13 changed files with 78 additions and 35 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* divert.c
* divert.h
* (C) 2011, all rights reserved,
*
* This program is free software: you can redistribute it and/or modify
@@ -61,7 +61,7 @@ extern DIVERTEXPORT BOOL DivertRecv(
__in HANDLE handle,
__out PVOID pPacket,
__in UINT packetLen,
__out PDIVERT_ADDRESS pAddr,
__out_opt PDIVERT_ADDRESS pAddr,
__out_opt UINT *readLen);
/*
+3 -1
View File
@@ -110,12 +110,13 @@
/*
* Message definitions.
*/
#pragma pack(push, 1)
struct divert_ioctl_s
{
UINT16 magic; // DIVERT_MAGIC
UINT8 version; // DIVERT_VERSION
UINT8 reserved; // Reserved (set to 0x0)
PVOID arg; // Pointer to buffer
UINT64 arg; // Pointer to buffer
};
typedef struct divert_ioctl_s *divert_ioctl_t;
@@ -131,6 +132,7 @@ struct divert_ioctl_filter_s
UINT32 arg[4]; // Argument.
};
typedef struct divert_ioctl_filter_s *divert_ioctl_filter_t;
#pragma pack(pop)
/*
* IOCTL codes.