nt: consistent nameing for NT_NTDLL_IMPORT_LIST
This commit is contained in:
parent
02bddcd1a9
commit
f704614aa2
4
src/nt.c
4
src/nt.c
@ -5,7 +5,7 @@
|
||||
|
||||
#define X(return_type, attributes, name, parameters) \
|
||||
WEPOLL_INTERNAL return_type(attributes* name) parameters = NULL;
|
||||
NTDLL_IMPORT_LIST(X)
|
||||
NT_NTDLL_IMPORT_LIST(X)
|
||||
#undef X
|
||||
|
||||
int nt_global_init(void) {
|
||||
@ -19,7 +19,7 @@ int nt_global_init(void) {
|
||||
name = (return_type(attributes*) parameters) GetProcAddress(ntdll, #name); \
|
||||
if (name == NULL) \
|
||||
return -1;
|
||||
NTDLL_IMPORT_LIST(X)
|
||||
NT_NTDLL_IMPORT_LIST(X)
|
||||
#undef X
|
||||
|
||||
return 0;
|
||||
|
||||
4
src/nt.h
4
src/nt.h
@ -52,7 +52,7 @@ typedef struct _OBJECT_ATTRIBUTES {
|
||||
PVOID SecurityQualityOfService;
|
||||
} OBJECT_ATTRIBUTES, *POBJECT_ATTRIBUTES;
|
||||
|
||||
#define NTDLL_IMPORT_LIST(X) \
|
||||
#define NT_NTDLL_IMPORT_LIST(X) \
|
||||
X(NTSTATUS, \
|
||||
NTAPI, \
|
||||
NtDeviceIoControlFile, \
|
||||
@ -89,7 +89,7 @@ typedef struct _OBJECT_ATTRIBUTES {
|
||||
|
||||
#define X(return_type, attributes, name, parameters) \
|
||||
WEPOLL_INTERNAL_VAR return_type(attributes* name) parameters;
|
||||
NTDLL_IMPORT_LIST(X)
|
||||
NT_NTDLL_IMPORT_LIST(X)
|
||||
#undef X
|
||||
|
||||
#endif /* WEPOLL_NT_H_ */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user