afd: simplify definition of IOCTL_AFD_POLL

This commit is contained in:
Bert Belder 2018-05-16 21:59:07 -07:00
parent 52e3f7d596
commit cb50462b77
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -8,16 +8,8 @@
#include "win.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 IOCTL_AFD_POLL 0x00012024
/* clang-format off */
static const GUID _AFD_PROVIDER_GUID_LIST[] = {