Files
mirror-processhacker/2.x/trunk/ProcessHacker/include/ph.h
T
wj32 1fda267dc5 process enumeration and list view items work
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2315 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-10-25 11:30:46 +00:00

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