Process Hacker
phgui.h File Reference
#include <ph.h>
#include <commctrl.h>

Go to the source code of this file.

Data Structures

struct  _NMRUNFILEDLGW
 
struct  _DLGTEMPLATEEX
 
struct  _PH_LAYOUT_ITEM
 
struct  _PH_LAYOUT_MANAGER
 

Macros

#define RFF_NOBROWSE   0x0001
 
#define RFF_NODEFAULT   0x0002
 
#define RFF_CALCDIRECTORY   0x0004
 
#define RFF_NOLABEL   0x0008
 
#define RFF_NOSEPARATEMEM   0x0020
 
#define RFN_VALIDATE   (-510)
 
#define RF_OK   0x0000
 
#define RF_CANCEL   0x0001
 
#define RF_RETRY   0x0002
 
#define WM_REFLECT   0x2000
 
#define REFLECT_MESSAGE(hwnd, msg, wParam, lParam)
 
#define REFLECT_MESSAGE_DLG(hwndDlg, hwnd, msg, wParam, lParam)
 
#define PH_DEFINE_MAKE_ATOM(AtomName)
 
#define PhaGetDlgItemText(hwndDlg, id)   ((PPH_STRING)PhAutoDereferenceObject(PhGetWindowText(GetDlgItem(hwndDlg, id))))
 
#define PH_GET_WINDOW_TEXT_INTERNAL   0x1
 
#define PH_GET_WINDOW_TEXT_LENGTH_ONLY   0x2
 
#define PH_ANCHOR_LEFT   0x1
 
#define PH_ANCHOR_TOP   0x2
 
#define PH_ANCHOR_RIGHT   0x4
 
#define PH_ANCHOR_BOTTOM   0x8
 
#define PH_ANCHOR_ALL   0xf
 
#define PH_LAYOUT_FORCE_INVALIDATE   0x1000
 
#define PH_LAYOUT_TAB_CONTROL   0x2000
 
#define PH_LAYOUT_IMMEDIATE_RESIZE   0x4000
 
#define PH_LAYOUT_DUMMY_MASK   (PH_LAYOUT_TAB_CONTROL)
 
#define PH_ALIGN_CENTER   0x0
 
#define PH_ALIGN_LEFT   0x1
 
#define PH_ALIGN_RIGHT   0x2
 
#define PH_ALIGN_TOP   0x4
 
#define PH_ALIGN_BOTTOM   0x8
 
#define ELVM_ADDFALLBACKCOLUMN   (WM_APP + 1106)
 
#define ELVM_ADDFALLBACKCOLUMNS   (WM_APP + 1109)
 
#define ELVM_RESERVED5   (WM_APP + 1120)
 
#define ELVM_INIT   (WM_APP + 1102)
 
#define ELVM_SETCOLUMNWIDTH   (WM_APP + 1121)
 
#define ELVM_SETCOMPAREFUNCTION   (WM_APP + 1104)
 
#define ELVM_SETCONTEXT   (WM_APP + 1103)
 
#define ELVM_SETCURSOR   (WM_APP + 1114)
 
#define ELVM_RESERVED4   (WM_APP + 1118)
 
#define ELVM_SETITEMCOLORFUNCTION   (WM_APP + 1111)
 
#define ELVM_SETITEMFONTFUNCTION   (WM_APP + 1117)
 
#define ELVM_RESERVED1   (WM_APP + 1112)
 
#define ELVM_SETREDRAW   (WM_APP + 1116)
 
#define ELVM_RESERVED2   (WM_APP + 1113)
 
#define ELVM_SETSORT   (WM_APP + 1108)
 
#define ELVM_SETSORTFAST   (WM_APP + 1119)
 
#define ELVM_RESERVED0   (WM_APP + 1110)
 
#define ELVM_SETTRISTATE   (WM_APP + 1107)
 
#define ELVM_SETTRISTATECOMPAREFUNCTION   (WM_APP + 1105)
 
#define ELVM_SORTITEMS   (WM_APP + 1101)
 
#define ELVM_RESERVED3   (WM_APP + 1115)
 
#define ExtendedListView_AddFallbackColumn(hWnd, Column)   SendMessage((hWnd), ELVM_ADDFALLBACKCOLUMN, (WPARAM)(Column), 0)
 
#define ExtendedListView_AddFallbackColumns(hWnd, NumberOfColumns, Columns)   SendMessage((hWnd), ELVM_ADDFALLBACKCOLUMNS, (WPARAM)(NumberOfColumns), (LPARAM)(Columns))
 
#define ExtendedListView_Init(hWnd)   SendMessage((hWnd), ELVM_INIT, 0, 0)
 
#define ExtendedListView_SetColumnWidth(hWnd, Column, Width)   SendMessage((hWnd), ELVM_SETCOLUMNWIDTH, (WPARAM)(Column), (LPARAM)(Width))
 
#define ExtendedListView_SetCompareFunction(hWnd, Column, CompareFunction)   SendMessage((hWnd), ELVM_SETCOMPAREFUNCTION, (WPARAM)(Column), (LPARAM)(CompareFunction))
 
#define ExtendedListView_SetContext(hWnd, Context)   SendMessage((hWnd), ELVM_SETCONTEXT, 0, (LPARAM)(Context))
 
#define ExtendedListView_SetCursor(hWnd, Cursor)   SendMessage((hWnd), ELVM_SETCURSOR, 0, (LPARAM)(Cursor))
 
#define ExtendedListView_SetItemColorFunction(hWnd, ItemColorFunction)   SendMessage((hWnd), ELVM_SETITEMCOLORFUNCTION, 0, (LPARAM)(ItemColorFunction))
 
#define ExtendedListView_SetItemFontFunction(hWnd, ItemFontFunction)   SendMessage((hWnd), ELVM_SETITEMFONTFUNCTION, 0, (LPARAM)(ItemFontFunction))
 
#define ExtendedListView_SetRedraw(hWnd, Redraw)   SendMessage((hWnd), ELVM_SETREDRAW, (WPARAM)(Redraw), 0)
 
#define ExtendedListView_SetSort(hWnd, Column, Order)   SendMessage((hWnd), ELVM_SETSORT, (WPARAM)(Column), (LPARAM)(Order))
 
#define ExtendedListView_SetSortFast(hWnd, Fast)   SendMessage((hWnd), ELVM_SETSORTFAST, (WPARAM)(Fast), 0)
 
#define ExtendedListView_SetTriState(hWnd, TriState)   SendMessage((hWnd), ELVM_SETTRISTATE, (WPARAM)(TriState), 0)
 
#define ExtendedListView_SetTriStateCompareFunction(hWnd, CompareFunction)   SendMessage((hWnd), ELVM_SETTRISTATECOMPAREFUNCTION, 0, (LPARAM)(CompareFunction))
 
#define ExtendedListView_SortItems(hWnd)   SendMessage((hWnd), ELVM_SORTITEMS, 0, 0)
 
#define ELVSCW_AUTOSIZE   (-1)
 
#define ELVSCW_AUTOSIZE_USEHEADER   (-2)
 
#define ELVSCW_AUTOSIZE_REMAININGSPACE   (-3)
 

Typedefs

typedef BOOL(WINAPI * _ChangeWindowMessageFilter )(_In_ UINT message, _In_ DWORD dwFlag)
 
typedef BOOL(WINAPI * _IsImmersiveProcess )(_In_ HANDLE hProcess)
 
typedef struct _NMRUNFILEDLGW NMRUNFILEDLGW
 
typedef struct _NMRUNFILEDLGWLPNMRUNFILEDLGW
 
typedef struct _NMRUNFILEDLGWPNMRUNFILEDLGW
 
typedef NMRUNFILEDLGW NMRUNFILEDLG
 
typedef PNMRUNFILEDLGW PNMRUNFILEDLG
 
typedef LPNMRUNFILEDLGW LPNMRUNFILEDLG
 
typedef HANDLE HTHEME
 
typedef BOOL(WINAPI * _RunFileDlg )(_In_ HWND hwndOwner, _In_opt_ HICON hIcon, _In_opt_ LPCWSTR lpszDirectory, _In_opt_ LPCWSTR lpszTitle, _In_opt_ LPCWSTR lpszDescription, _In_ ULONG uFlags)
 
typedef BOOL(WINAPI * _IsThemeActive )(VOID)
 
typedef HTHEME(WINAPI * _OpenThemeData )(_In_ HWND hwnd, _In_ LPCWSTR pszClassList)
 
typedef HRESULT(WINAPI * _CloseThemeData )(_In_ HTHEME hTheme)
 
typedef BOOL(WINAPI * _IsThemePartDefined )(_In_ HTHEME hTheme, _In_ int iPartId, _In_ int iStateId)
 
typedef HRESULT(WINAPI * _DrawThemeBackground )(_In_ HTHEME hTheme, _In_ HDC hdc, _In_ int iPartId, _In_ int iStateId, _In_ const RECT *pRect, _In_ const RECT *pClipRect)
 
typedef HRESULT(WINAPI * _DrawThemeText )(_In_ HTHEME hTheme, _In_ HDC hdc, _In_ int iPartId, _In_ int iStateId, _In_reads_(cchText) LPCWSTR pszText, _In_ int cchText, _In_ DWORD dwTextFlags, _Reserved_ DWORD dwTextFlags2, _In_ LPCRECT pRect)
 
typedef HRESULT(WINAPI * _GetThemeInt )(_In_ HTHEME hTheme, _In_ int iPartId, _In_ int iStateId, _In_ int iPropId, _Out_ int *piVal)
 
typedef HRESULT(WINAPI * _SHAutoComplete )(_In_ HWND hwndEdit, _In_ DWORD dwFlags)
 
typedef HRESULT(WINAPI * _TaskDialogIndirect )(_In_ const TASKDIALOGCONFIG *pTaskConfig, _In_ int *pnButton, _In_ int *pnRadioButton, _In_ BOOL *pfVerificationFlagChecked)
 
typedef struct _DLGTEMPLATEEX DLGTEMPLATEEX
 
typedef struct _DLGTEMPLATEEXPDLGTEMPLATEEX
 
typedef struct _PH_LAYOUT_ITEM PH_LAYOUT_ITEM
 
typedef struct _PH_LAYOUT_ITEMPPH_LAYOUT_ITEM
 
typedef struct _PH_LAYOUT_MANAGER PH_LAYOUT_MANAGER
 
typedef struct _PH_LAYOUT_MANAGERPPH_LAYOUT_MANAGER
 
typedef enum _PH_ITEM_STATE PH_ITEM_STATE
 
typedef COLORREF(NTAPI * PPH_EXTLV_GET_ITEM_COLOR )(_In_ INT Index, _In_ PVOID Param, _In_opt_ PVOID Context)
 
typedef HFONT(NTAPI * PPH_EXTLV_GET_ITEM_FONT )(_In_ INT Index, _In_ PVOID Param, _In_opt_ PVOID Context)
 

Enumerations

enum  _PH_ITEM_STATE { NormalItemState = 0, NewItemState, RemovingItemState }
 

Functions

VOID PhGuiSupportInitialization (VOID)
 
PHLIBAPI VOID PhSetControlTheme (_In_ HWND Handle, _In_ PWSTR Theme)
 
FORCEINLINE VOID PhSetWindowStyle (_In_ HWND Handle, _In_ LONG_PTR Mask, _In_ LONG_PTR Value)
 
FORCEINLINE VOID PhSetWindowExStyle (_In_ HWND Handle, _In_ LONG_PTR Mask, _In_ LONG_PTR Value)
 
FORCEINLINE LRESULT PhReflectMessage (_In_ HWND Handle, _In_ UINT Message, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
FORCEINLINE VOID PhSetListViewStyle (_In_ HWND Handle, _In_ BOOLEAN AllowDragDrop, _In_ BOOLEAN ShowLabelTips)
 
PHLIBAPI INT PhAddListViewColumn (_In_ HWND ListViewHandle, _In_ INT Index, _In_ INT DisplayIndex, _In_ INT SubItemIndex, _In_ INT Format, _In_ INT Width, _In_ PWSTR Text)
 
PHLIBAPI INT PhAddListViewItem (_In_ HWND ListViewHandle, _In_ INT Index, _In_ PWSTR Text, _In_opt_ PVOID Param)
 
PHLIBAPI INT PhFindListViewItemByFlags (_In_ HWND ListViewHandle, _In_ INT StartIndex, _In_ ULONG Flags)
 
PHLIBAPI INT PhFindListViewItemByParam (_In_ HWND ListViewHandle, _In_ INT StartIndex, _In_opt_ PVOID Param)
 
PHLIBAPI LOGICAL PhGetListViewItemImageIndex (_In_ HWND ListViewHandle, _In_ INT Index, _Out_ PINT ImageIndex)
 
PHLIBAPI LOGICAL PhGetListViewItemParam (_In_ HWND ListViewHandle, _In_ INT Index, _Out_ PVOID *Param)
 
PHLIBAPI VOID PhRemoveListViewItem (_In_ HWND ListViewHandle, _In_ INT Index)
 
PHLIBAPI VOID PhSetListViewItemImageIndex (_In_ HWND ListViewHandle, _In_ INT Index, _In_ INT ImageIndex)
 
PHLIBAPI VOID PhSetListViewSubItem (_In_ HWND ListViewHandle, _In_ INT Index, _In_ INT SubItemIndex, _In_ PWSTR Text)
 
PHLIBAPI BOOLEAN PhLoadListViewColumnSettings (_In_ HWND ListViewHandle, _In_ PPH_STRING Settings)
 
PHLIBAPI PPH_STRING PhSaveListViewColumnSettings (_In_ HWND ListViewHandle)
 
PHLIBAPI INT PhAddTabControlTab (_In_ HWND TabControlHandle, _In_ INT Index, _In_ PWSTR Text)
 
PHLIBAPI PPH_STRING PhGetWindowText (_In_ HWND hwnd)
 
PHLIBAPI ULONG PhGetWindowTextEx (_In_ HWND hwnd, _In_ ULONG Flags, _Out_opt_ PPH_STRING *Text)
 
PHLIBAPI VOID PhAddComboBoxStrings (_In_ HWND hWnd, _In_ PWSTR *Strings, _In_ ULONG NumberOfStrings)
 
PHLIBAPI PPH_STRING PhGetComboBoxString (_In_ HWND hwnd, _In_ INT Index)
 
PHLIBAPI INT PhSelectComboBoxString (_In_ HWND hwnd, _In_ PWSTR String, _In_ BOOLEAN Partial)
 
PHLIBAPI PPH_STRING PhGetListBoxString (_In_ HWND hwnd, _In_ INT Index)
 
PHLIBAPI VOID PhSetStateAllListViewItems (_In_ HWND hWnd, _In_ ULONG State, _In_ ULONG Mask)
 
PHLIBAPI PVOID PhGetSelectedListViewItemParam (_In_ HWND hWnd)
 
PHLIBAPI VOID PhGetSelectedListViewItemParams (_In_ HWND hWnd, _Out_ PVOID **Items, _Out_ PULONG NumberOfItems)
 
PHLIBAPI VOID PhSetImageListBitmap (_In_ HIMAGELIST ImageList, _In_ INT Index, _In_ HINSTANCE InstanceHandle, _In_ LPCWSTR BitmapName)
 
PHLIBAPI VOID PhGetStockApplicationIcon (_Out_opt_ HICON *SmallIcon, _Out_opt_ HICON *LargeIcon)
 Gets the default icon used for executable files.
 
PHLIBAPI HICON PhGetFileShellIcon (_In_opt_ PWSTR FileName, _In_opt_ PWSTR DefaultExtension, _In_ BOOLEAN LargeIcon)
 
PHLIBAPI VOID PhSetClipboardString (_In_ HWND hWnd, _In_ PPH_STRINGREF String)
 
HWND PhCreateDialogFromTemplate (_In_ HWND Parent, _In_ ULONG Style, _In_ PVOID Instance, _In_ PWSTR Template, _In_ DLGPROC DialogProc, _In_ PVOID Parameter)
 
PHLIBAPI VOID PhInitializeLayoutManager (_Out_ PPH_LAYOUT_MANAGER Manager, _In_ HWND RootWindowHandle)
 
PHLIBAPI VOID PhDeleteLayoutManager (_Inout_ PPH_LAYOUT_MANAGER Manager)
 
PHLIBAPI PPH_LAYOUT_ITEM PhAddLayoutItem (_Inout_ PPH_LAYOUT_MANAGER Manager, _In_ HWND Handle, _In_opt_ PPH_LAYOUT_ITEM ParentItem, _In_ ULONG Anchor)
 
PHLIBAPI PPH_LAYOUT_ITEM PhAddLayoutItemEx (_Inout_ PPH_LAYOUT_MANAGER Manager, _In_ HWND Handle, _In_opt_ PPH_LAYOUT_ITEM ParentItem, _In_ ULONG Anchor, _In_ RECT Margin)
 
PHLIBAPI VOID PhLayoutManagerLayout (_Inout_ PPH_LAYOUT_MANAGER Manager)
 
FORCEINLINE VOID PhResizingMinimumSize (_Inout_ PRECT Rect, _In_ WPARAM Edge, _In_ LONG MinimumWidth, _In_ LONG MinimumHeight)
 
FORCEINLINE VOID PhCopyControlRectangle (_In_ HWND ParentWindowHandle, _In_ HWND FromControlHandle, _In_ HWND ToControlHandle)
 
PHLIBAPI HBITMAP NTAPI PhIconToBitmap (_In_ HICON Icon, _In_ ULONG Width, _In_ ULONG Height)
 
PHLIBAPI VOID NTAPI PhSetExtendedListView (_In_ HWND hWnd)
 Enables extended list view support for a list view control.
 
PHLIBAPI VOID NTAPI PhSetHeaderSortIcon (_In_ HWND hwnd, _In_ INT Index, _In_ PH_SORT_ORDER Order)
 Visually indicates the sort order of a header control item.
 
FORCEINLINE ULONG PhGetColorBrightness (_In_ COLORREF Color)
 Gets the brightness of a color.
 
FORCEINLINE COLORREF PhHalveColorBrightness (_In_ COLORREF Color)
 
FORCEINLINE COLORREF PhMakeColorBrighter (_In_ COLORREF Color, _In_ UCHAR Increment)
 

Variables

_ChangeWindowMessageFilter ChangeWindowMessageFilter_I
 
_IsImmersiveProcess IsImmersiveProcess_I
 
_RunFileDlg RunFileDlg
 
_IsThemeActive IsThemeActive_I
 
_OpenThemeData OpenThemeData_I
 
_CloseThemeData CloseThemeData_I
 
_IsThemePartDefined IsThemePartDefined_I
 
_DrawThemeBackground DrawThemeBackground_I
 
_DrawThemeText DrawThemeText_I
 
_GetThemeInt GetThemeInt_I
 
_SHAutoComplete SHAutoComplete_I
 
_TaskDialogIndirect TaskDialogIndirect_I
 

Macro Definition Documentation

#define ELVM_ADDFALLBACKCOLUMN   (WM_APP + 1106)

Definition at line 626 of file phgui.h.

#define ELVM_ADDFALLBACKCOLUMNS   (WM_APP + 1109)

Definition at line 627 of file phgui.h.

#define ELVM_INIT   (WM_APP + 1102)

Definition at line 629 of file phgui.h.

#define ELVM_RESERVED0   (WM_APP + 1110)

Definition at line 642 of file phgui.h.

#define ELVM_RESERVED1   (WM_APP + 1112)

Definition at line 637 of file phgui.h.

#define ELVM_RESERVED2   (WM_APP + 1113)

Definition at line 639 of file phgui.h.

#define ELVM_RESERVED3   (WM_APP + 1115)

Definition at line 646 of file phgui.h.

#define ELVM_RESERVED4   (WM_APP + 1118)

Definition at line 634 of file phgui.h.

#define ELVM_RESERVED5   (WM_APP + 1120)

Definition at line 628 of file phgui.h.

#define ELVM_SETCOLUMNWIDTH   (WM_APP + 1121)

Definition at line 630 of file phgui.h.

#define ELVM_SETCOMPAREFUNCTION   (WM_APP + 1104)

Definition at line 631 of file phgui.h.

#define ELVM_SETCONTEXT   (WM_APP + 1103)

Definition at line 632 of file phgui.h.

#define ELVM_SETCURSOR   (WM_APP + 1114)

Definition at line 633 of file phgui.h.

#define ELVM_SETITEMCOLORFUNCTION   (WM_APP + 1111)

Definition at line 635 of file phgui.h.

#define ELVM_SETITEMFONTFUNCTION   (WM_APP + 1117)

Definition at line 636 of file phgui.h.

#define ELVM_SETREDRAW   (WM_APP + 1116)

Definition at line 638 of file phgui.h.

#define ELVM_SETSORT   (WM_APP + 1108)

Definition at line 640 of file phgui.h.

#define ELVM_SETSORTFAST   (WM_APP + 1119)

Definition at line 641 of file phgui.h.

#define ELVM_SETTRISTATE   (WM_APP + 1107)

Definition at line 643 of file phgui.h.

#define ELVM_SETTRISTATECOMPAREFUNCTION   (WM_APP + 1105)

Definition at line 644 of file phgui.h.

#define ELVM_SORTITEMS   (WM_APP + 1101)

Definition at line 645 of file phgui.h.

#define ELVSCW_AUTOSIZE   (-1)

Definition at line 679 of file phgui.h.

#define ELVSCW_AUTOSIZE_REMAININGSPACE   (-3)

Definition at line 681 of file phgui.h.

#define ELVSCW_AUTOSIZE_USEHEADER   (-2)

Definition at line 680 of file phgui.h.

#define ExtendedListView_AddFallbackColumn (   hWnd,
  Column 
)    SendMessage((hWnd), ELVM_ADDFALLBACKCOLUMN, (WPARAM)(Column), 0)

Definition at line 648 of file phgui.h.

#define ExtendedListView_AddFallbackColumns (   hWnd,
  NumberOfColumns,
  Columns 
)    SendMessage((hWnd), ELVM_ADDFALLBACKCOLUMNS, (WPARAM)(NumberOfColumns), (LPARAM)(Columns))

Definition at line 650 of file phgui.h.

#define ExtendedListView_Init (   hWnd)    SendMessage((hWnd), ELVM_INIT, 0, 0)

Definition at line 652 of file phgui.h.

#define ExtendedListView_SetColumnWidth (   hWnd,
  Column,
  Width 
)    SendMessage((hWnd), ELVM_SETCOLUMNWIDTH, (WPARAM)(Column), (LPARAM)(Width))

Definition at line 654 of file phgui.h.

#define ExtendedListView_SetCompareFunction (   hWnd,
  Column,
  CompareFunction 
)    SendMessage((hWnd), ELVM_SETCOMPAREFUNCTION, (WPARAM)(Column), (LPARAM)(CompareFunction))

Definition at line 656 of file phgui.h.

#define ExtendedListView_SetContext (   hWnd,
  Context 
)    SendMessage((hWnd), ELVM_SETCONTEXT, 0, (LPARAM)(Context))

Definition at line 658 of file phgui.h.

#define ExtendedListView_SetCursor (   hWnd,
  Cursor 
)    SendMessage((hWnd), ELVM_SETCURSOR, 0, (LPARAM)(Cursor))

Definition at line 660 of file phgui.h.

#define ExtendedListView_SetItemColorFunction (   hWnd,
  ItemColorFunction 
)    SendMessage((hWnd), ELVM_SETITEMCOLORFUNCTION, 0, (LPARAM)(ItemColorFunction))

Definition at line 662 of file phgui.h.

#define ExtendedListView_SetItemFontFunction (   hWnd,
  ItemFontFunction 
)    SendMessage((hWnd), ELVM_SETITEMFONTFUNCTION, 0, (LPARAM)(ItemFontFunction))

Definition at line 664 of file phgui.h.

#define ExtendedListView_SetRedraw (   hWnd,
  Redraw 
)    SendMessage((hWnd), ELVM_SETREDRAW, (WPARAM)(Redraw), 0)

Definition at line 666 of file phgui.h.

#define ExtendedListView_SetSort (   hWnd,
  Column,
  Order 
)    SendMessage((hWnd), ELVM_SETSORT, (WPARAM)(Column), (LPARAM)(Order))

Definition at line 668 of file phgui.h.

#define ExtendedListView_SetSortFast (   hWnd,
  Fast 
)    SendMessage((hWnd), ELVM_SETSORTFAST, (WPARAM)(Fast), 0)

Definition at line 670 of file phgui.h.

#define ExtendedListView_SetTriState (   hWnd,
  TriState 
)    SendMessage((hWnd), ELVM_SETTRISTATE, (WPARAM)(TriState), 0)

Definition at line 672 of file phgui.h.

#define ExtendedListView_SetTriStateCompareFunction (   hWnd,
  CompareFunction 
)    SendMessage((hWnd), ELVM_SETTRISTATECOMPAREFUNCTION, 0, (LPARAM)(CompareFunction))

Definition at line 674 of file phgui.h.

#define ExtendedListView_SortItems (   hWnd)    SendMessage((hWnd), ELVM_SORTITEMS, 0, 0)

Definition at line 676 of file phgui.h.

#define PH_ALIGN_BOTTOM   0x8

Definition at line 579 of file phgui.h.

#define PH_ALIGN_CENTER   0x0

Definition at line 575 of file phgui.h.

#define PH_ALIGN_LEFT   0x1

Definition at line 576 of file phgui.h.

#define PH_ALIGN_RIGHT   0x2

Definition at line 577 of file phgui.h.

#define PH_ALIGN_TOP   0x4

Definition at line 578 of file phgui.h.

#define PH_ANCHOR_ALL   0xf

Definition at line 452 of file phgui.h.

#define PH_ANCHOR_BOTTOM   0x8

Definition at line 451 of file phgui.h.

#define PH_ANCHOR_LEFT   0x1

Definition at line 448 of file phgui.h.

#define PH_ANCHOR_RIGHT   0x4

Definition at line 450 of file phgui.h.

#define PH_ANCHOR_TOP   0x2

Definition at line 449 of file phgui.h.

#define PH_DEFINE_MAKE_ATOM (   AtomName)
Value:
do { \
static UNICODE_STRING atomName = RTL_CONSTANT_STRING(AtomName); \
static PH_INITONCE initOnce = PH_INITONCE_INIT; \
static RTL_ATOM atom = 0; \
\
if (PhBeginInitOnce(&initOnce)) \
{ \
NtAddAtom(atomName.Buffer, atomName.Length, &atom); \
PhEndInitOnce(&initOnce); \
} \
\
if (atom) \
return (PWSTR)(ULONG_PTR)atom; \
else \
return atomName.Buffer; \
} while (0)

Definition at line 209 of file phgui.h.

#define PH_GET_WINDOW_TEXT_INTERNAL   0x1

Definition at line 343 of file phgui.h.

#define PH_GET_WINDOW_TEXT_LENGTH_ONLY   0x2

Definition at line 344 of file phgui.h.

#define PH_LAYOUT_DUMMY_MASK   (PH_LAYOUT_TAB_CONTROL)

Definition at line 460 of file phgui.h.

#define PH_LAYOUT_FORCE_INVALIDATE   0x1000

Definition at line 456 of file phgui.h.

#define PH_LAYOUT_IMMEDIATE_RESIZE   0x4000

Definition at line 458 of file phgui.h.

#define PH_LAYOUT_TAB_CONTROL   0x2000

Definition at line 457 of file phgui.h.

#define PhaGetDlgItemText (   hwndDlg,
  id 
)    ((PPH_STRING)PhAutoDereferenceObject(PhGetWindowText(GetDlgItem(hwndDlg, id))))

Definition at line 335 of file phgui.h.

#define REFLECT_MESSAGE (   hwnd,
  msg,
  wParam,
  lParam 
)
Value:
{ \
LRESULT result_ = PhReflectMessage(hwnd, msg, wParam, lParam); \
\
if (result_) \
return result_; \
}

Definition at line 172 of file phgui.h.

#define REFLECT_MESSAGE_DLG (   hwndDlg,
  hwnd,
  msg,
  wParam,
  lParam 
)
Value:
{ \
LRESULT result_ = PhReflectMessage(hwnd, msg, wParam, lParam); \
\
if (result_) \
{ \
SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT, result_); \
return TRUE; \
} \
}

Definition at line 180 of file phgui.h.

#define RF_CANCEL   0x0001

Definition at line 45 of file phgui.h.

#define RF_OK   0x0000

Definition at line 44 of file phgui.h.

#define RF_RETRY   0x0002

Definition at line 46 of file phgui.h.

#define RFF_CALCDIRECTORY   0x0004

Definition at line 26 of file phgui.h.

#define RFF_NOBROWSE   0x0001

Definition at line 24 of file phgui.h.

#define RFF_NODEFAULT   0x0002

Definition at line 25 of file phgui.h.

#define RFF_NOLABEL   0x0008

Definition at line 27 of file phgui.h.

#define RFF_NOSEPARATEMEM   0x0020

Definition at line 28 of file phgui.h.

#define RFN_VALIDATE   (-510)

Definition at line 30 of file phgui.h.

#define WM_REFLECT   0x2000

Definition at line 169 of file phgui.h.

Typedef Documentation

typedef BOOL(WINAPI * _ChangeWindowMessageFilter)(_In_ UINT message, _In_ DWORD dwFlag)

Definition at line 15 of file phgui.h.

typedef HRESULT(WINAPI * _CloseThemeData)(_In_ HTHEME hTheme)

Definition at line 68 of file phgui.h.

typedef HRESULT(WINAPI * _DrawThemeBackground)(_In_ HTHEME hTheme, _In_ HDC hdc, _In_ int iPartId, _In_ int iStateId, _In_ const RECT *pRect, _In_ const RECT *pClipRect)

Definition at line 78 of file phgui.h.

typedef HRESULT(WINAPI * _DrawThemeText)(_In_ HTHEME hTheme, _In_ HDC hdc, _In_ int iPartId, _In_ int iStateId, _In_reads_(cchText) LPCWSTR pszText, _In_ int cchText, _In_ DWORD dwTextFlags, _Reserved_ DWORD dwTextFlags2, _In_ LPCRECT pRect)

Definition at line 87 of file phgui.h.

typedef HRESULT(WINAPI * _GetThemeInt)(_In_ HTHEME hTheme, _In_ int iPartId, _In_ int iStateId, _In_ int iPropId, _Out_ int *piVal)

Definition at line 99 of file phgui.h.

typedef BOOL(WINAPI * _IsImmersiveProcess)(_In_ HANDLE hProcess)

Definition at line 20 of file phgui.h.

typedef BOOL(WINAPI * _IsThemeActive)(VOID)

Definition at line 59 of file phgui.h.

typedef BOOL(WINAPI * _IsThemePartDefined)(_In_ HTHEME hTheme, _In_ int iPartId, _In_ int iStateId)

Definition at line 72 of file phgui.h.

typedef HTHEME(WINAPI * _OpenThemeData)(_In_ HWND hwnd, _In_ LPCWSTR pszClassList)

Definition at line 63 of file phgui.h.

typedef BOOL(WINAPI * _RunFileDlg)(_In_ HWND hwndOwner, _In_opt_ HICON hIcon, _In_opt_ LPCWSTR lpszDirectory, _In_opt_ LPCWSTR lpszTitle, _In_opt_ LPCWSTR lpszDescription, _In_ ULONG uFlags)

Definition at line 50 of file phgui.h.

typedef HRESULT(WINAPI * _SHAutoComplete)(_In_ HWND hwndEdit, _In_ DWORD dwFlags)

Definition at line 107 of file phgui.h.

typedef HRESULT(WINAPI * _TaskDialogIndirect)(_In_ const TASKDIALOGCONFIG *pTaskConfig, _In_ int *pnButton, _In_ int *pnRadioButton, _In_ BOOL *pfVerificationFlagChecked)

Definition at line 112 of file phgui.h.

typedef struct _DLGTEMPLATEEX DLGTEMPLATEEX
typedef HANDLE HTHEME

Definition at line 48 of file phgui.h.

Definition at line 42 of file phgui.h.

typedef struct _NMRUNFILEDLGW * LPNMRUNFILEDLGW

Definition at line 40 of file phgui.h.

typedef struct _NMRUNFILEDLGW NMRUNFILEDLGW
typedef struct _DLGTEMPLATEEX * PDLGTEMPLATEEX

Definition at line 41 of file phgui.h.

typedef struct _NMRUNFILEDLGW * PNMRUNFILEDLGW
typedef COLORREF(NTAPI * PPH_EXTLV_GET_ITEM_COLOR)(_In_ INT Index, _In_ PVOID Param, _In_opt_ PVOID Context)

Definition at line 596 of file phgui.h.

typedef HFONT(NTAPI * PPH_EXTLV_GET_ITEM_FONT)(_In_ INT Index, _In_ PVOID Param, _In_opt_ PVOID Context)

Definition at line 602 of file phgui.h.

typedef struct _PH_LAYOUT_ITEM * PPH_LAYOUT_ITEM

Enumeration Type Documentation

Enumerator:
NormalItemState 
NewItemState 
RemovingItemState 

Definition at line 581 of file phgui.h.

Function Documentation

PHLIBAPI VOID PhAddComboBoxStrings ( _In_ HWND  hWnd,
_In_ PWSTR *  Strings,
_In_ ULONG  NumberOfStrings 
)

Definition at line 427 of file guisup.c.

PHLIBAPI PPH_LAYOUT_ITEM PhAddLayoutItem ( _Inout_ PPH_LAYOUT_MANAGER  Manager,
_In_ HWND  Handle,
_In_opt_ PPH_LAYOUT_ITEM  ParentItem,
_In_ ULONG  Anchor 
)

Definition at line 912 of file guisup.c.

PHLIBAPI PPH_LAYOUT_ITEM PhAddLayoutItemEx ( _Inout_ PPH_LAYOUT_MANAGER  Manager,
_In_ HWND  Handle,
_In_opt_ PPH_LAYOUT_ITEM  ParentItem,
_In_ ULONG  Anchor,
_In_ RECT  Margin 
)

Definition at line 946 of file guisup.c.

PHLIBAPI INT PhAddListViewColumn ( _In_ HWND  ListViewHandle,
_In_ INT  Index,
_In_ INT  DisplayIndex,
_In_ INT  SubItemIndex,
_In_ INT  Format,
_In_ INT  Width,
_In_ PWSTR  Text 
)

Definition at line 88 of file guisup.c.

PHLIBAPI INT PhAddListViewItem ( _In_ HWND  ListViewHandle,
_In_ INT  Index,
_In_ PWSTR  Text,
_In_opt_ PVOID  Param 
)

Definition at line 110 of file guisup.c.

PHLIBAPI INT PhAddTabControlTab ( _In_ HWND  TabControlHandle,
_In_ INT  Index,
_In_ PWSTR  Text 
)

Definition at line 337 of file guisup.c.

FORCEINLINE VOID PhCopyControlRectangle ( _In_ HWND  ParentWindowHandle,
_In_ HWND  FromControlHandle,
_In_ HWND  ToControlHandle 
)

Definition at line 548 of file phgui.h.

HWND PhCreateDialogFromTemplate ( _In_ HWND  Parent,
_In_ ULONG  Style,
_In_ PVOID  Instance,
_In_ PWSTR  Template,
_In_ DLGPROC  DialogProc,
_In_ PVOID  Parameter 
)

Definition at line 825 of file guisup.c.

PHLIBAPI VOID PhDeleteLayoutManager ( _Inout_ PPH_LAYOUT_MANAGER  Manager)

Definition at line 897 of file guisup.c.

PHLIBAPI INT PhFindListViewItemByFlags ( _In_ HWND  ListViewHandle,
_In_ INT  StartIndex,
_In_ ULONG  Flags 
)

Definition at line 128 of file guisup.c.

PHLIBAPI INT PhFindListViewItemByParam ( _In_ HWND  ListViewHandle,
_In_ INT  StartIndex,
_In_opt_ PVOID  Param 
)

Definition at line 137 of file guisup.c.

FORCEINLINE ULONG PhGetColorBrightness ( _In_ COLORREF  Color)

Gets the brightness of a color.

Parameters
ColorThe color.
Returns
A value ranging from 0 to 255, indicating the brightness of the color.

Definition at line 693 of file phgui.h.

PHLIBAPI PPH_STRING PhGetComboBoxString ( _In_ HWND  hwnd,
_In_ INT  Index 
)

Definition at line 439 of file guisup.c.

PHLIBAPI HICON PhGetFileShellIcon ( _In_opt_ PWSTR  FileName,
_In_opt_ PWSTR  DefaultExtension,
_In_ BOOLEAN  LargeIcon 
)

Definition at line 713 of file guisup.c.

PHLIBAPI PPH_STRING PhGetListBoxString ( _In_ HWND  hwnd,
_In_ INT  Index 
)

Definition at line 500 of file guisup.c.

PHLIBAPI LOGICAL PhGetListViewItemImageIndex ( _In_ HWND  ListViewHandle,
_In_ INT  Index,
_Out_ PINT  ImageIndex 
)

Definition at line 151 of file guisup.c.

PHLIBAPI LOGICAL PhGetListViewItemParam ( _In_ HWND  ListViewHandle,
_In_ INT  Index,
_Out_ PVOID *  Param 
)

Definition at line 174 of file guisup.c.

PHLIBAPI PVOID PhGetSelectedListViewItemParam ( _In_ HWND  hWnd)

Definition at line 556 of file guisup.c.

PHLIBAPI VOID PhGetSelectedListViewItemParams ( _In_ HWND  hWnd,
_Out_ PVOID **  Items,
_Out_ PULONG  NumberOfItems 
)

Definition at line 584 of file guisup.c.

PHLIBAPI VOID PhGetStockApplicationIcon ( _Out_opt_ HICON *  SmallIcon,
_Out_opt_ HICON *  LargeIcon 
)

Gets the default icon used for executable files.

Parameters
SmallIconA variable which receives the small default executable icon. Do not destroy the icon using DestroyIcon(); it is shared between callers.
LargeIconA variable which receives the large default executable icon. Do not destroy the icon using DestroyIcon(); it is shared between callers.

Definition at line 645 of file guisup.c.

PHLIBAPI PPH_STRING PhGetWindowText ( _In_ HWND  hwnd)

Definition at line 351 of file guisup.c.

PHLIBAPI ULONG PhGetWindowTextEx ( _In_ HWND  hwnd,
_In_ ULONG  Flags,
_Out_opt_ PPH_STRING Text 
)

Definition at line 361 of file guisup.c.

VOID PhGuiSupportInitialization ( VOID  )

Definition at line 44 of file guisup.c.

FORCEINLINE COLORREF PhHalveColorBrightness ( _In_ COLORREF  Color)

Definition at line 716 of file phgui.h.

PHLIBAPI HBITMAP NTAPI PhIconToBitmap ( _In_ HICON  Icon,
_In_ ULONG  Width,
_In_ ULONG  Height 
)

Definition at line 165 of file icotobmp.c.

PHLIBAPI VOID PhInitializeLayoutManager ( _Out_ PPH_LAYOUT_MANAGER  Manager,
_In_ HWND  RootWindowHandle 
)

Definition at line 879 of file guisup.c.

PHLIBAPI VOID PhLayoutManagerLayout ( _Inout_ PPH_LAYOUT_MANAGER  Manager)

Definition at line 1112 of file guisup.c.

PHLIBAPI BOOLEAN PhLoadListViewColumnSettings ( _In_ HWND  ListViewHandle,
_In_ PPH_STRING  Settings 
)

Definition at line 238 of file guisup.c.

FORCEINLINE COLORREF PhMakeColorBrighter ( _In_ COLORREF  Color,
_In_ UCHAR  Increment 
)

Definition at line 735 of file phgui.h.

FORCEINLINE LRESULT PhReflectMessage ( _In_ HWND  Handle,
_In_ UINT  Message,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 191 of file phgui.h.

PHLIBAPI VOID PhRemoveListViewItem ( _In_ HWND  ListViewHandle,
_In_ INT  Index 
)

Definition at line 197 of file guisup.c.

FORCEINLINE VOID PhResizingMinimumSize ( _Inout_ PRECT  Rect,
_In_ WPARAM  Edge,
_In_ LONG  MinimumWidth,
_In_ LONG  MinimumHeight 
)

Definition at line 518 of file phgui.h.

PHLIBAPI PPH_STRING PhSaveListViewColumnSettings ( _In_ HWND  ListViewHandle)

Definition at line 308 of file guisup.c.

PHLIBAPI INT PhSelectComboBoxString ( _In_ HWND  hwnd,
_In_ PWSTR  String,
_In_ BOOLEAN  Partial 
)

Definition at line 475 of file guisup.c.

PHLIBAPI VOID PhSetClipboardString ( _In_ HWND  hWnd,
_In_ PPH_STRINGREF  String 
)

Definition at line 806 of file guisup.c.

PHLIBAPI VOID PhSetControlTheme ( _In_ HWND  Handle,
_In_ PWSTR  Theme 
)

Definition at line 76 of file guisup.c.

PHLIBAPI VOID NTAPI PhSetExtendedListView ( _In_ HWND  hWnd)

Enables extended list view support for a list view control.

Parameters
hWndA handle to the list view control.

Definition at line 110 of file extlv.c.

PHLIBAPI VOID NTAPI PhSetHeaderSortIcon ( _In_ HWND  hwnd,
_In_ INT  Index,
_In_ PH_SORT_ORDER  Order 
)

Visually indicates the sort order of a header control item.

Parameters
hwndA handle to the header control.
IndexThe index of the item.
OrderThe sort order of the item.

Definition at line 493 of file extlv.c.

PHLIBAPI VOID PhSetImageListBitmap ( _In_ HIMAGELIST  ImageList,
_In_ INT  Index,
_In_ HINSTANCE  InstanceHandle,
_In_ LPCWSTR  BitmapName 
)

Definition at line 619 of file guisup.c.

PHLIBAPI VOID PhSetListViewItemImageIndex ( _In_ HWND  ListViewHandle,
_In_ INT  Index,
_In_ INT  ImageIndex 
)

Definition at line 205 of file guisup.c.

FORCEINLINE VOID PhSetListViewStyle ( _In_ HWND  Handle,
_In_ BOOLEAN  AllowDragDrop,
_In_ BOOLEAN  ShowLabelTips 
)

Definition at line 227 of file phgui.h.

PHLIBAPI VOID PhSetListViewSubItem ( _In_ HWND  ListViewHandle,
_In_ INT  Index,
_In_ INT  SubItemIndex,
_In_ PWSTR  Text 
)

Definition at line 221 of file guisup.c.

PHLIBAPI VOID PhSetStateAllListViewItems ( _In_ HWND  hWnd,
_In_ ULONG  State,
_In_ ULONG  Mask 
)

Definition at line 536 of file guisup.c.

FORCEINLINE VOID PhSetWindowExStyle ( _In_ HWND  Handle,
_In_ LONG_PTR  Mask,
_In_ LONG_PTR  Value 
)

Definition at line 155 of file phgui.h.

FORCEINLINE VOID PhSetWindowStyle ( _In_ HWND  Handle,
_In_ LONG_PTR  Mask,
_In_ LONG_PTR  Value 
)

Definition at line 142 of file phgui.h.

Variable Documentation

_ChangeWindowMessageFilter ChangeWindowMessageFilter_I

Definition at line 27 of file guisup.c.

_CloseThemeData CloseThemeData_I

Definition at line 33 of file guisup.c.

_DrawThemeBackground DrawThemeBackground_I

Definition at line 35 of file guisup.c.

_DrawThemeText DrawThemeText_I

Definition at line 36 of file guisup.c.

_GetThemeInt GetThemeInt_I

Definition at line 37 of file guisup.c.

_IsImmersiveProcess IsImmersiveProcess_I

Definition at line 28 of file guisup.c.

_IsThemeActive IsThemeActive_I

Definition at line 31 of file guisup.c.

_IsThemePartDefined IsThemePartDefined_I

Definition at line 34 of file guisup.c.

_OpenThemeData OpenThemeData_I

Definition at line 32 of file guisup.c.

_RunFileDlg RunFileDlg

Definition at line 29 of file guisup.c.

_SHAutoComplete SHAutoComplete_I

Definition at line 38 of file guisup.c.

_TaskDialogIndirect TaskDialogIndirect_I

Definition at line 42 of file guisup.c.