我试图定义一个IOCTL函数:
#include <Windows.h>
using namespace std;
#define IOCTL_TEST_CODE CTL_CODE(FILE_DEVICE_UNKNOWN, 0x1, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
....
METHOD_OUT_DIRECT was not declared in this scope.
FILE_ANY_ACCESS was not declared in this scope.
CTL_CODE was not declared in this scope.
FILE_DEVICE_UNKNOWN was not declared in this scope.
如果我按原样编译,它就不会知道任何参数是什么,所以我include <winioctl.h>
给了我:
LARGE_INTEGER does not name a type.
DWORD does not name a type.
GUID does not name a type.
_ANONYMOUS_UNION does not name a type.
+ a lot more
我使用了错误的标题吗?我无法找到有关此
的任何信息