afd: simplify definition of IOCTL_AFD_POLL
This commit is contained in:
parent
52e3f7d596
commit
cb50462b77
10
src/afd.c
10
src/afd.c
@ -8,16 +8,8 @@
|
|||||||
#include "win.h"
|
#include "win.h"
|
||||||
#include "ws.h"
|
#include "ws.h"
|
||||||
|
|
||||||
#define FILE_DEVICE_NETWORK 0x00000012
|
|
||||||
#define METHOD_BUFFERED 0
|
|
||||||
#define AFD_POLL 9
|
|
||||||
|
|
||||||
#define _AFD_CONTROL_CODE(operation, method) \
|
|
||||||
((FILE_DEVICE_NETWORK) << 12 | (operation << 2) | method)
|
|
||||||
|
|
||||||
#define IOCTL_AFD_POLL _AFD_CONTROL_CODE(AFD_POLL, METHOD_BUFFERED)
|
|
||||||
|
|
||||||
#define _AFD_ANY_PROTOCOL -1
|
#define _AFD_ANY_PROTOCOL -1
|
||||||
|
#define IOCTL_AFD_POLL 0x00012024
|
||||||
|
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
static const GUID _AFD_PROVIDER_GUID_LIST[] = {
|
static const GUID _AFD_PROVIDER_GUID_LIST[] = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user