replace hardcoded enums with #define CTL_CODEs
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user