replace hardcoded enums with #define CTL_CODEs

This commit is contained in:
2024-12-21 23:19:05 -05:00
parent a16a2338c7
commit cf1ab0e13f
8 changed files with 38 additions and 50 deletions

View File

@ -2,6 +2,7 @@
#include <assert.h>
#include <string.h>
#include <winioctl.h>
#include "hook/iohook.h"
@ -10,9 +11,7 @@
#include "util/dprintf.h"
#include "util/str.h"
enum {
HWRESET_IOCTL_RESTART = 0x80002000,
};
#define HWRESET_IOCTL_RESTART CTL_CODE(0x8000, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS)
static HRESULT hwreset_handle_irp(struct irp *irp);
static HRESULT hwreset_handle_open(struct irp *irp);