mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
1fda267dc5
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2315 21ef857c-d57f-4fe0-8362-d861dc6d29cd
52 lines
873 B
C
52 lines
873 B
C
#ifndef PH_H
|
|
#define PH_H
|
|
|
|
#include <phbase.h>
|
|
#include <stdarg.h>
|
|
|
|
// process
|
|
|
|
typedef BOOLEAN (*PPH_ENUM_PROCESSES_CALLBACK)(
|
|
__in PSYSTEM_PROCESS_INFORMATION Process
|
|
);
|
|
|
|
NTSTATUS PhEnumProcesses(
|
|
__in PPH_ENUM_PROCESSES_CALLBACK Callback,
|
|
__out_opt PBOOLEAN Found
|
|
);
|
|
|
|
// support
|
|
|
|
PVOID PhAllocate(
|
|
__in SIZE_T Size
|
|
);
|
|
|
|
VOID PhFree(
|
|
__in PVOID Memory
|
|
);
|
|
|
|
PVOID PhReAlloc(
|
|
__in PVOID Memory,
|
|
__in SIZE_T Size
|
|
);
|
|
|
|
#define PH_MAX_MESSAGE_SIZE 400
|
|
|
|
INT PhShowMessage(
|
|
__in HWND hWnd,
|
|
__in ULONG Type,
|
|
__in PWSTR Format,
|
|
...
|
|
);
|
|
|
|
INT PhShowMessage_V(
|
|
__in HWND hWnd,
|
|
__in ULONG Type,
|
|
__in PWSTR Format,
|
|
__in va_list ArgPtr
|
|
);
|
|
|
|
#define PhShowError(hWnd, Format, ...) PhShowMessage(hWnd, MB_OK | MB_ICONERROR, Format, __VA_ARGS__)
|
|
|
|
#endif
|