Process Hacker
disktab.c File Reference
#include "exttools.h"
#include "etwmon.h"
#include "resource.h"
#include <toolstatusintf.h>
#include "disktabp.h"

Go to the source code of this file.

Macros

#define SORT_FUNCTION(Column)   EtpDiskTreeNewCompare##Column
 
#define BEGIN_SORT_FUNCTION(Column)
 
#define END_SORT_FUNCTION
 

Functions

VOID EtInitializeDiskTab (VOID)
 
HWND NTAPI EtpDiskTabCreateFunction (_In_ PVOID Context)
 
VOID NTAPI EtpDiskTabSelectionChangedCallback (_In_ PVOID Parameter1, _In_ PVOID Parameter2, _In_ PVOID Parameter3, _In_ PVOID Context)
 
VOID NTAPI EtpDiskTabSaveContentCallback (_In_ PVOID Parameter1, _In_ PVOID Parameter2, _In_ PVOID Parameter3, _In_ PVOID Context)
 
VOID NTAPI EtpDiskTabFontChangedCallback (_In_ PVOID Parameter1, _In_ PVOID Parameter2, _In_ PVOID Parameter3, _In_ PVOID Context)
 
BOOLEAN EtpDiskNodeHashtableCompareFunction (_In_ PVOID Entry1, _In_ PVOID Entry2)
 
ULONG EtpDiskNodeHashtableHashFunction (_In_ PVOID Entry)
 
VOID EtInitializeDiskTreeList (_In_ HWND hwnd)
 
VOID EtLoadSettingsDiskTreeList (VOID)
 
VOID EtSaveSettingsDiskTreeList (VOID)
 
PET_DISK_NODE EtAddDiskNode (_In_ PET_DISK_ITEM DiskItem)
 
PET_DISK_NODE EtFindDiskNode (_In_ PET_DISK_ITEM DiskItem)
 
VOID EtRemoveDiskNode (_In_ PET_DISK_NODE DiskNode)
 
VOID EtUpdateDiskNode (_In_ PET_DISK_NODE DiskNode)
 
 BEGIN_SORT_FUNCTION (Process)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (File)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (ReadRateAverage)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (WriteRateAverage)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (TotalRateAverage)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (IoPriority)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (ResponseTime)
 
END_SORT_FUNCTION BOOLEAN NTAPI EtpDiskTreeNewCallback (_In_ HWND hwnd, _In_ PH_TREENEW_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2, _In_opt_ PVOID Context)
 
PPH_STRING EtpGetDiskItemProcessName (_In_ PET_DISK_ITEM DiskItem)
 
PET_DISK_ITEM EtGetSelectedDiskItem (VOID)
 
VOID EtGetSelectedDiskItems (_Out_ PET_DISK_ITEM **DiskItems, _Out_ PULONG NumberOfDiskItems)
 
VOID EtDeselectAllDiskNodes (VOID)
 
VOID EtSelectAndEnsureVisibleDiskNode (_In_ PET_DISK_NODE DiskNode)
 
VOID EtCopyDiskList (VOID)
 
VOID EtWriteDiskList (_Inout_ PPH_FILE_STREAM FileStream, _In_ ULONG Mode)
 
VOID EtHandleDiskCommand (_In_ ULONG Id)
 
VOID EtpInitializeDiskMenu (_In_ PPH_EMENU Menu, _In_ PET_DISK_ITEM *DiskItems, _In_ ULONG NumberOfDiskItems)
 
VOID EtShowDiskContextMenu (_In_ POINT Location)
 
VOID NTAPI EtpSearchChangedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
BOOLEAN NTAPI EtpSearchDiskListFilterCallback (_In_ PPH_TREENEW_NODE Node, _In_opt_ PVOID Context)
 
VOID NTAPI EtpToolStatusActivateContent (_In_ BOOLEAN Select)
 
HWND NTAPI EtpToolStatusGetTreeNewHandle (VOID)
 
INT_PTR CALLBACK EtpDiskTabErrorDialogProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 

Macro Definition Documentation

#define BEGIN_SORT_FUNCTION (   Column)
Value:
static int __cdecl EtpDiskTreeNewCompare##Column( \
_In_ const void *_elem1, \
_In_ const void *_elem2 \
) \
{ \
PET_DISK_NODE node1 = *(PET_DISK_NODE *)_elem1; \
PET_DISK_NODE node2 = *(PET_DISK_NODE *)_elem2; \
PET_DISK_ITEM diskItem1 = node1->DiskItem; \
PET_DISK_ITEM diskItem2 = node2->DiskItem; \
int sortResult = 0;

Definition at line 386 of file disktab.c.

#define END_SORT_FUNCTION
Value:
if (sortResult == 0) \
sortResult = PhCompareString(diskItem1->FileNameWin32, diskItem2->FileNameWin32, TRUE); \
\
return PhModifySort(sortResult, DiskTreeNewSortOrder); \
}

Definition at line 397 of file disktab.c.

#define SORT_FUNCTION (   Column)    EtpDiskTreeNewCompare##Column

Definition at line 384 of file disktab.c.

Function Documentation

BEGIN_SORT_FUNCTION ( Process  )

Definition at line 404 of file disktab.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( File  )

Definition at line 410 of file disktab.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( ReadRateAverage  )

Definition at line 416 of file disktab.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( WriteRateAverage  )

Definition at line 422 of file disktab.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( TotalRateAverage  )

Definition at line 428 of file disktab.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( IoPriority  )

Definition at line 434 of file disktab.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( ResponseTime  )

Definition at line 440 of file disktab.c.

PET_DISK_NODE EtAddDiskNode ( _In_ PET_DISK_ITEM  DiskItem)

Definition at line 297 of file disktab.c.

VOID EtCopyDiskList ( VOID  )

Definition at line 786 of file disktab.c.

VOID EtDeselectAllDiskNodes ( VOID  )

Definition at line 764 of file disktab.c.

PET_DISK_NODE EtFindDiskNode ( _In_ PET_DISK_ITEM  DiskItem)

Definition at line 326 of file disktab.c.

PET_DISK_ITEM EtGetSelectedDiskItem ( VOID  )

Definition at line 717 of file disktab.c.

VOID EtGetSelectedDiskItems ( _Out_ PET_DISK_ITEM **  DiskItems,
_Out_ PULONG  NumberOfDiskItems 
)

Definition at line 738 of file disktab.c.

VOID EtHandleDiskCommand ( _In_ ULONG  Id)

Definition at line 820 of file disktab.c.

VOID EtInitializeDiskTab ( VOID  )

Definition at line 47 of file disktab.c.

VOID EtInitializeDiskTreeList ( _In_ HWND  hwnd)

Definition at line 224 of file disktab.c.

VOID EtLoadSettingsDiskTreeList ( VOID  )

Definition at line 260 of file disktab.c.

BOOLEAN EtpDiskNodeHashtableCompareFunction ( _In_ PVOID  Entry1,
_In_ PVOID  Entry2 
)

Definition at line 206 of file disktab.c.

ULONG EtpDiskNodeHashtableHashFunction ( _In_ PVOID  Entry)

Definition at line 217 of file disktab.c.

HWND NTAPI EtpDiskTabCreateFunction ( _In_ PVOID  Context)

Definition at line 83 of file disktab.c.

INT_PTR CALLBACK EtpDiskTabErrorDialogProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 1121 of file disktab.c.

VOID NTAPI EtpDiskTabFontChangedCallback ( _In_ PVOID  Parameter1,
_In_ PVOID  Parameter2,
_In_ PVOID  Parameter3,
_In_ PVOID  Context 
)

Definition at line 195 of file disktab.c.

VOID NTAPI EtpDiskTabSaveContentCallback ( _In_ PVOID  Parameter1,
_In_ PVOID  Parameter2,
_In_ PVOID  Parameter3,
_In_ PVOID  Context 
)

Definition at line 179 of file disktab.c.

VOID NTAPI EtpDiskTabSelectionChangedCallback ( _In_ PVOID  Parameter1,
_In_ PVOID  Parameter2,
_In_ PVOID  Parameter3,
_In_ PVOID  Context 
)

Definition at line 165 of file disktab.c.

END_SORT_FUNCTION BOOLEAN NTAPI EtpDiskTreeNewCallback ( _In_ HWND  hwnd,
_In_ PH_TREENEW_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2,
_In_opt_ PVOID  Context 
)

Definition at line 446 of file disktab.c.

PPH_STRING EtpGetDiskItemProcessName ( _In_ PET_DISK_ITEM  DiskItem)

Definition at line 696 of file disktab.c.

VOID EtpInitializeDiskMenu ( _In_ PPH_EMENU  Menu,
_In_ PET_DISK_ITEM DiskItems,
_In_ ULONG  NumberOfDiskItems 
)

Definition at line 886 of file disktab.c.

VOID NTAPI EtpSearchChangedHandler ( _In_opt_ PVOID  Parameter,
_In_opt_ PVOID  Context 
)

Definition at line 1070 of file disktab.c.

BOOLEAN NTAPI EtpSearchDiskListFilterCallback ( _In_ PPH_TREENEW_NODE  Node,
_In_opt_ PVOID  Context 
)

Definition at line 1081 of file disktab.c.

VOID NTAPI EtpToolStatusActivateContent ( _In_ BOOLEAN  Select)

Definition at line 1101 of file disktab.c.

HWND NTAPI EtpToolStatusGetTreeNewHandle ( VOID  )

Definition at line 1114 of file disktab.c.

VOID EtRemoveDiskNode ( _In_ PET_DISK_NODE  DiskNode)

Definition at line 347 of file disktab.c.

VOID EtSaveSettingsDiskTreeList ( VOID  )

Definition at line 275 of file disktab.c.

VOID EtSelectAndEnsureVisibleDiskNode ( _In_ PET_DISK_NODE  DiskNode)

Definition at line 771 of file disktab.c.

VOID EtShowDiskContextMenu ( _In_ POINT  Location)

Definition at line 927 of file disktab.c.

VOID EtUpdateDiskNode ( _In_ PET_DISK_NODE  DiskNode)

Definition at line 374 of file disktab.c.

VOID EtWriteDiskList ( _Inout_ PPH_FILE_STREAM  FileStream,
_In_ ULONG  Mode 
)

Definition at line 797 of file disktab.c.