Process Hacker
apiimport.c File Reference
#include <ph.h>
#include <apiimport.h>

Go to the source code of this file.

Macros

#define PH_DEFINE_IMPORT(Module, Name)
 

Functions

PVOID PhpImportProcedure (_Inout_ PVOID *Cache, _Inout_ PBOOLEAN CacheValid, _In_ PWSTR ModuleName, _In_ PSTR ProcedureName)
 
 PH_DEFINE_IMPORT (L"ntdll.dll", NtQueryInformationEnlistment)
 
 PH_DEFINE_IMPORT (L"ntdll.dll", NtQueryInformationResourceManager)
 
 PH_DEFINE_IMPORT (L"ntdll.dll", NtQueryInformationTransaction)
 
 PH_DEFINE_IMPORT (L"ntdll.dll", NtQueryInformationTransactionManager)
 

Macro Definition Documentation

#define PH_DEFINE_IMPORT (   Module,
  Name 
)
Value:
_##Name Name##_Import(VOID) \
{ \
static PVOID cache = NULL; \
static BOOLEAN cacheValid = FALSE; \
\
return (_##Name)PhpImportProcedure(&cache, &cacheValid, Module, #Name); \
}

Definition at line 52 of file apiimport.c.

Function Documentation

PH_DEFINE_IMPORT ( L"ntdll.dll"  ,
NtQueryInformationEnlistment   
)
PH_DEFINE_IMPORT ( L"ntdll.dll"  ,
NtQueryInformationResourceManager   
)
PH_DEFINE_IMPORT ( L"ntdll.dll"  ,
NtQueryInformationTransaction   
)
PH_DEFINE_IMPORT ( L"ntdll.dll"  ,
NtQueryInformationTransactionManager   
)
PVOID PhpImportProcedure ( _Inout_ PVOID *  Cache,
_Inout_ PBOOLEAN  CacheValid,
_In_ PWSTR  ModuleName,
_In_ PSTR  ProcedureName 
)

Definition at line 26 of file apiimport.c.