mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
fb6f41d2b3
* fixed string builder resizing * use NT-Win32 status codes instead of STATUS_UNSUCCESSFUL/GetLastError * fixed KUSER_SHARED_DATA definition * added NtCreateNamedPipeFile and NtCreateMailslotFile * updated several NT structure definitions, completed TEB definition * added some more anti-Win32-ization #defines * improved KphTerminateProcess/KphTerminateThread when trying to terminate self * improved PhShellExecuteEx * added PhWaitForMultipleObjectsAndPump git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2915 21ef857c-d57f-4fe0-8362-d861dc6d29cd
118 lines
5.1 KiB
C
118 lines
5.1 KiB
C
#ifndef NTIMPORT_H
|
|
#define NTIMPORT_H
|
|
|
|
#include <ntbasic.h>
|
|
#include <ntexapi.h>
|
|
#include <ntioapi.h>
|
|
#include <ntktmapi.h>
|
|
#include <ntlpcapi.h>
|
|
#include <ntmmapi.h>
|
|
#include <ntobapi.h>
|
|
#include <ntpsapi.h>
|
|
#include <ntseapi.h>
|
|
#include <ntdbg.h>
|
|
#include <ntrtl.h>
|
|
#include <ntmisc.h>
|
|
|
|
#include <ntlsa.h>
|
|
|
|
#ifdef NTIMPORT_PRIVATE
|
|
#define EXT
|
|
#define EQNULL = NULL
|
|
#else
|
|
#define EXT extern
|
|
#define EQNULL
|
|
#endif
|
|
|
|
EXT _NtAccessCheck NtAccessCheck EQNULL;
|
|
EXT _NtAlertResumeThread NtAlertResumeThread EQNULL;
|
|
EXT _NtAlertThread NtAlertThread EQNULL;
|
|
EXT _NtAllocateVirtualMemory NtAllocateVirtualMemory EQNULL;
|
|
EXT _NtClose NtClose EQNULL;
|
|
EXT _NtCreateDebugObject NtCreateDebugObject EQNULL;
|
|
EXT _NtCreateDirectoryObject NtCreateDirectoryObject EQNULL;
|
|
EXT _NtCreateFile NtCreateFile EQNULL;
|
|
EXT _NtCreateKeyedEvent NtCreateKeyedEvent EQNULL;
|
|
EXT _NtCreateMailslotFile NtCreateMailslotFile EQNULL;
|
|
EXT _NtCreateNamedPipeFile NtCreateNamedPipeFile EQNULL;
|
|
EXT _NtCreateSection NtCreateSection EQNULL;
|
|
EXT _NtDebugActiveProcess NtDebugActiveProcess EQNULL;
|
|
EXT _NtDeleteFile NtDeleteFile EQNULL;
|
|
EXT _NtDeviceIoControlFile NtDeviceIoControlFile EQNULL;
|
|
EXT _NtDuplicateObject NtDuplicateObject EQNULL;
|
|
EXT _NtExtendSection NtExtendSection EQNULL;
|
|
EXT _NtFreeVirtualMemory NtFreeVirtualMemory EQNULL;
|
|
EXT _NtFsControlFile NtFsControlFile EQNULL;
|
|
EXT _NtGetContextThread NtGetContextThread EQNULL;
|
|
EXT _NtGetNextProcess NtGetNextProcess EQNULL;
|
|
EXT _NtGetNextThread NtGetNextThread EQNULL;
|
|
EXT _NtLoadDriver NtLoadDriver EQNULL;
|
|
EXT _NtMapViewOfSection NtMapViewOfSection EQNULL;
|
|
EXT _NtOpenDirectoryObject NtOpenDirectoryObject EQNULL;
|
|
EXT _NtOpenFile NtOpenFile EQNULL;
|
|
EXT _NtOpenKeyedEvent NtOpenKeyedEvent EQNULL;
|
|
EXT _NtOpenProcess NtOpenProcess EQNULL;
|
|
EXT _NtOpenProcessToken NtOpenProcessToken EQNULL;
|
|
EXT _NtOpenSection NtOpenSection EQNULL;
|
|
EXT _NtOpenThread NtOpenThread EQNULL;
|
|
EXT _NtOpenThreadToken NtOpenThreadToken EQNULL;
|
|
EXT _NtPrivilegeCheck NtPrivilegeCheck EQNULL;
|
|
EXT _NtProtectVirtualMemory NtProtectVirtualMemory EQNULL;
|
|
EXT _NtQueryDirectoryObject NtQueryDirectoryObject EQNULL;
|
|
EXT _NtQueryInformationEnlistment NtQueryInformationEnlistment EQNULL;
|
|
EXT _NtQueryInformationFile NtQueryInformationFile EQNULL;
|
|
EXT _NtQueryInformationProcess NtQueryInformationProcess EQNULL;
|
|
EXT _NtQueryInformationResourceManager NtQueryInformationResourceManager EQNULL;
|
|
EXT _NtQueryInformationThread NtQueryInformationThread EQNULL;
|
|
EXT _NtQueryInformationToken NtQueryInformationToken EQNULL;
|
|
EXT _NtQueryInformationTransaction NtQueryInformationTransaction EQNULL;
|
|
EXT _NtQueryInformationTransactionManager NtQueryInformationTransactionManager EQNULL;
|
|
EXT _NtQueryObject NtQueryObject EQNULL;
|
|
EXT _NtQuerySection NtQuerySection EQNULL;
|
|
EXT _NtQuerySecurityObject NtQuerySecurityObject EQNULL;
|
|
EXT _NtQuerySystemInformation NtQuerySystemInformation EQNULL;
|
|
EXT _NtQueryVirtualMemory NtQueryVirtualMemory EQNULL;
|
|
EXT _NtQueueApcThread NtQueueApcThread EQNULL;
|
|
EXT _NtReadFile NtReadFile EQNULL;
|
|
EXT _NtReadVirtualMemory NtReadVirtualMemory EQNULL;
|
|
EXT _NtReleaseKeyedEvent NtReleaseKeyedEvent EQNULL;
|
|
EXT _NtRemoveProcessDebug NtRemoveProcessDebug EQNULL;
|
|
EXT _NtResumeProcess NtResumeProcess EQNULL;
|
|
EXT _NtResumeThread NtResumeThread EQNULL;
|
|
EXT _NtSetContextThread NtSetContextThread EQNULL;
|
|
EXT _NtSetInformationDebugObject NtSetInformationDebugObject EQNULL;
|
|
EXT _NtSetInformationFile NtSetInformationFile EQNULL;
|
|
EXT _NtSetInformationProcess NtSetInformationProcess EQNULL;
|
|
EXT _NtSetInformationThread NtSetInformationThread EQNULL;
|
|
EXT _NtSetInformationToken NtSetInformationToken EQNULL;
|
|
EXT _NtSetSecurityObject NtSetSecurityObject EQNULL;
|
|
EXT _NtSuspendProcess NtSuspendProcess EQNULL;
|
|
EXT _NtSuspendThread NtSuspendThread EQNULL;
|
|
EXT _NtTerminateProcess NtTerminateProcess EQNULL;
|
|
EXT _NtTerminateThread NtTerminateThread EQNULL;
|
|
EXT _NtUnloadDriver NtUnloadDriver EQNULL;
|
|
EXT _NtUnmapViewOfSection NtUnmapViewOfSection EQNULL;
|
|
EXT _NtWaitForKeyedEvent NtWaitForKeyedEvent EQNULL;
|
|
EXT _NtWaitForSingleObject NtWaitForSingleObject EQNULL;
|
|
EXT _NtWriteFile NtWriteFile EQNULL;
|
|
EXT _NtWriteVirtualMemory NtWriteVirtualMemory EQNULL;
|
|
EXT _RtlCopySecurityDescriptor RtlCopySecurityDescriptor EQNULL;
|
|
EXT _RtlCreateQueryDebugBuffer RtlCreateQueryDebugBuffer EQNULL;
|
|
EXT _RtlCreateUserThread RtlCreateUserThread EQNULL;
|
|
EXT _RtlDeleteSecurityObject RtlDeleteSecurityObject EQNULL;
|
|
EXT _RtlDestroyQueryDebugBuffer RtlDestroyQueryDebugBuffer EQNULL;
|
|
EXT _RtlFindMessage RtlFindMessage EQNULL;
|
|
EXT _RtlMultiByteToUnicodeN RtlMultiByteToUnicodeN EQNULL;
|
|
EXT _RtlMultiByteToUnicodeSize RtlMultiByteToUnicodeSize EQNULL;
|
|
EXT _RtlNewSecurityObject RtlNewSecurityObject EQNULL;
|
|
EXT _RtlNtStatusToDosError RtlNtStatusToDosError EQNULL;
|
|
EXT _RtlQueryProcessDebugInformation RtlQueryProcessDebugInformation EQNULL;
|
|
EXT _RtlQuerySecurityObject RtlQuerySecurityObject EQNULL;
|
|
EXT _RtlSetSecurityObject RtlSetSecurityObject EQNULL;
|
|
EXT _RtlUnicodeToMultiByteN RtlUnicodeToMultiByteN EQNULL;
|
|
EXT _RtlUnicodeToMultiByteSize RtlUnicodeToMultiByteSize EQNULL;
|
|
|
|
BOOLEAN PhInitializeImports();
|
|
|
|
#endif
|