mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
dab72a5b46
* fixed some bugs * added KPH support to PhOpenProcess git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2533 21ef857c-d57f-4fe0-8362-d861dc6d29cd
128 lines
2.2 KiB
C
128 lines
2.2 KiB
C
#ifndef PHGUI_H
|
|
#define PHGUI_H
|
|
|
|
#include <phbase.h>
|
|
#include <ph.h>
|
|
#include <commctrl.h>
|
|
#include "resource.h"
|
|
|
|
// main
|
|
|
|
INT WINAPI WinMain(
|
|
__in HINSTANCE hInstance,
|
|
__in HINSTANCE hPrevInstance,
|
|
__in LPSTR lpCmdLine,
|
|
__in INT nCmdShow
|
|
);
|
|
|
|
INT PhMainMessageLoop();
|
|
|
|
VOID PhInitializeCommonControls();
|
|
|
|
VOID PhInitializeFont(
|
|
__in HWND hWnd
|
|
);
|
|
|
|
VOID PhInitializeKph();
|
|
|
|
BOOLEAN PhInitializeSystem();
|
|
|
|
ATOM PhRegisterWindowClass();
|
|
|
|
VOID PhInitializeWindowsVersion();
|
|
|
|
// guisup
|
|
|
|
// Controls
|
|
|
|
VOID FORCEINLINE PhSetControlPosition(
|
|
HWND Handle,
|
|
INT Left,
|
|
INT Top,
|
|
INT Right,
|
|
INT Bottom
|
|
)
|
|
{
|
|
SetWindowPos(
|
|
Handle,
|
|
NULL,
|
|
Left,
|
|
Top,
|
|
Right - Left,
|
|
Bottom - Top,
|
|
SWP_NOACTIVATE | SWP_NOREDRAW | SWP_NOZORDER
|
|
);
|
|
}
|
|
|
|
// List Views
|
|
|
|
HWND PhCreateListViewControl(
|
|
__in HWND ParentHandle,
|
|
__in INT_PTR Id
|
|
);
|
|
|
|
INT PhAddListViewColumn(
|
|
__in HWND ListViewHandle,
|
|
__in INT Index,
|
|
__in INT DisplayIndex,
|
|
__in INT SubItemIndex,
|
|
__in INT Format,
|
|
__in INT Width,
|
|
__in PWSTR Text
|
|
);
|
|
|
|
INT PhAddListViewItem(
|
|
__in HWND ListViewHandle,
|
|
__in INT Index,
|
|
__in PWSTR Text,
|
|
__in PVOID Param
|
|
);
|
|
|
|
INT PhFindListViewItemByParam(
|
|
__in HWND ListViewHandle,
|
|
__in INT StartIndex,
|
|
__in PVOID Param
|
|
);
|
|
|
|
VOID PhRemoveListViewItem(
|
|
__in HWND ListViewHandle,
|
|
__in INT Index
|
|
);
|
|
|
|
VOID PhSetListViewSubItem(
|
|
__in HWND ListViewHandle,
|
|
__in INT Index,
|
|
__in INT SubItemIndex,
|
|
__in PWSTR Text
|
|
);
|
|
|
|
// Tab Controls
|
|
|
|
HWND PhCreateTabControl(
|
|
__in HWND ParentHandle
|
|
);
|
|
|
|
INT PhAddTabControlTab(
|
|
__in HWND TabControlHandle,
|
|
__in INT Index,
|
|
__in PWSTR Text
|
|
);
|
|
|
|
// mainwnd
|
|
|
|
#define WM_PH_PROCESS_ADDED (WM_APP + 101)
|
|
#define WM_PH_PROCESS_MODIFIED (WM_APP + 102)
|
|
#define WM_PH_PROCESS_REMOVED (WM_APP + 103)
|
|
|
|
BOOLEAN PhMainWndInitialization(
|
|
__in INT ShowCommand
|
|
);
|
|
|
|
LRESULT CALLBACK PhMainWndProc(
|
|
__in HWND hWnd,
|
|
__in UINT uMsg,
|
|
__in WPARAM wParam,
|
|
__in LPARAM lParam
|
|
);
|
|
|
|
#endif |