ReactOS  0.4.12-dev-36-g472787f
column.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PresetColumnEntry
 

Macros

#define COLUMN_IMAGENAME   0
 
#define COLUMN_PID   1
 
#define COLUMN_USERNAME   2
 
#define COLUMN_SESSIONID   3
 
#define COLUMN_CPUUSAGE   4
 
#define COLUMN_CPUTIME   5
 
#define COLUMN_MEMORYUSAGE   6
 
#define COLUMN_PEAKMEMORYUSAGE   7
 
#define COLUMN_MEMORYUSAGEDELTA   8
 
#define COLUMN_PAGEFAULTS   9
 
#define COLUMN_PAGEFAULTSDELTA   10
 
#define COLUMN_VIRTUALMEMORYSIZE   11
 
#define COLUMN_PAGEDPOOL   12
 
#define COLUMN_NONPAGEDPOOL   13
 
#define COLUMN_BASEPRIORITY   14
 
#define COLUMN_HANDLECOUNT   15
 
#define COLUMN_THREADCOUNT   16
 
#define COLUMN_USEROBJECTS   17
 
#define COLUMN_GDIOBJECTS   18
 
#define COLUMN_IOREADS   19
 
#define COLUMN_IOWRITES   20
 
#define COLUMN_IOOTHER   21
 
#define COLUMN_IOREADBYTES   22
 
#define COLUMN_IOWRITEBYTES   23
 
#define COLUMN_IOOTHERBYTES   24
 
#define COLUMN_COMMANDLINE   25
 
#define COLUMN_NMAX   26
 
#define IDS_TAB_CPUUSAGE   IDS_TAB_CPU
 
#define IDS_TAB_MEMORYUSAGE   IDS_TAB_MEMUSAGE
 
#define IDS_TAB_PEAKMEMORYUSAGE   IDS_TAB_PEAKMEMUSAGE
 
#define IDS_TAB_MEMORYUSAGEDELTA   IDS_TAB_MEMDELTA
 
#define IDS_TAB_PAGEFAULTS   IDS_TAB_PAGEFAULT
 
#define IDS_TAB_PAGEFAULTSDELTA   IDS_TAB_PFDELTA
 
#define IDS_TAB_VIRTUALMEMORYSIZE   IDS_TAB_VMSIZE
 
#define IDS_TAB_NONPAGEDPOOL   IDS_TAB_NPPOOL
 
#define IDS_TAB_BASEPRIORITY   IDS_TAB_BASEPRI
 
#define IDS_TAB_HANDLECOUNT   IDS_TAB_HANDLES
 
#define IDS_TAB_THREADCOUNT   IDS_TAB_THREADS
 
#define IDS_TAB_USEROBJECTS   IDS_TAB_USERPBJECTS
 
#define IDS_TAB_IOWRITEBYTES   IDS_TAB_IOWRITESBYTES
 
#define Column_ImageName   Columns[COLUMN_IMAGENAME]
 
#define Column_PID   Columns[COLUMN_PID]
 
#define Column_CPUUsage   Columns[COLUMN_CPUUSAGE]
 
#define Column_CPUTime   Columns[COLUMN_CPUTIME]
 
#define Column_MemoryUsage   Columns[COLUMN_MEMORYUSAGE]
 
#define Column_MemoryUsageDelta   Columns[COLUMN_MEMORYUSAGEDELTA]
 
#define Column_PeakMemoryUsage   Columns[COLUMN_PEAKMEMORYUSAGE]
 
#define Column_PageFaults   Columns[COLUMN_PAGEFAULTS]
 
#define Column_USERObjects   Columns[COLUMN_USEROBJECTS]
 
#define Column_IOReads   Columns[COLUMN_IOREADS]
 
#define Column_IOReadBytes   Columns[COLUMN_IOREADBYTES]
 
#define Column_SessionID   Columns[COLUMN_SESSIONID]
 
#define Column_UserName   Columns[COLUMN_USERNAME]
 
#define Column_PageFaultsDelta   Columns[COLUMN_PAGEFAULTSDELTA]
 
#define Column_VirtualMemorySize   Columns[COLUMN_VIRTUALMEMORYSIZE]
 
#define Column_PagedPool   Columns[COLUMN_PAGEDPOOL]
 
#define Column_NonPagedPool   Columns[COLUMN_NONPAGEDPOOL]
 
#define Column_BasePriority   Columns[COLUMN_BASEPRIORITY]
 
#define Column_HandleCount   Columns[COLUMN_HANDLECOUNT]
 
#define Column_ThreadCount   Columns[COLUMN_THREADCOUNT]
 
#define Column_GDIObjects   Columns[COLUMN_GDIOBJECTS]
 
#define Column_IOWrites   Columns[COLUMN_IOWRITES]
 
#define Column_IOWriteBytes   Columns[COLUMN_IOWRITEBYTES]
 
#define Column_IOOther   Columns[COLUMN_IOOTHER]
 
#define Column_IOOtherBytes   Columns[COLUMN_IOOTHERBYTES]
 
#define Column_CommandLine   Columns[COLUMN_COMMANDLINE]
 

Functions

void ProcessPage_OnViewSelectColumns (void)
 
void AddColumns (void)
 
void SaveColumnSettings (void)
 
void UpdateColumnDataHints (void)
 

Variables

UINT ColumnDataHints [COLUMN_NMAX]
 
const PresetColumnEntry ColumnPresets [COLUMN_NMAX]
 

Macro Definition Documentation

◆ COLUMN_BASEPRIORITY

#define COLUMN_BASEPRIORITY   14

Definition at line 39 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_BasePriority

#define Column_BasePriority   Columns[COLUMN_BASEPRIORITY]

Definition at line 100 of file column.h.

◆ COLUMN_COMMANDLINE

#define COLUMN_COMMANDLINE   25

Definition at line 50 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_CommandLine

#define Column_CommandLine   Columns[COLUMN_COMMANDLINE]

Definition at line 108 of file column.h.

◆ COLUMN_CPUTIME

#define COLUMN_CPUTIME   5

Definition at line 30 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_CPUTime

#define Column_CPUTime   Columns[COLUMN_CPUTIME]

Definition at line 86 of file column.h.

◆ COLUMN_CPUUSAGE

#define COLUMN_CPUUSAGE   4

Definition at line 29 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_CPUUsage

#define Column_CPUUsage   Columns[COLUMN_CPUUSAGE]

Definition at line 85 of file column.h.

◆ COLUMN_GDIOBJECTS

#define COLUMN_GDIOBJECTS   18

Definition at line 43 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_GDIObjects

#define Column_GDIObjects   Columns[COLUMN_GDIOBJECTS]

Definition at line 103 of file column.h.

◆ COLUMN_HANDLECOUNT

#define COLUMN_HANDLECOUNT   15

Definition at line 40 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_HandleCount

#define Column_HandleCount   Columns[COLUMN_HANDLECOUNT]

Definition at line 101 of file column.h.

◆ COLUMN_IMAGENAME

#define COLUMN_IMAGENAME   0

Definition at line 25 of file column.h.

Referenced by LoadSettings(), PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_ImageName

#define Column_ImageName   Columns[COLUMN_IMAGENAME]

Definition at line 83 of file column.h.

◆ COLUMN_IOOTHER

#define COLUMN_IOOTHER   21

Definition at line 46 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_IOOther

#define Column_IOOther   Columns[COLUMN_IOOTHER]

Definition at line 106 of file column.h.

◆ COLUMN_IOOTHERBYTES

#define COLUMN_IOOTHERBYTES   24

Definition at line 49 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_IOOtherBytes

#define Column_IOOtherBytes   Columns[COLUMN_IOOTHERBYTES]

Definition at line 107 of file column.h.

◆ COLUMN_IOREADBYTES

#define COLUMN_IOREADBYTES   22

Definition at line 47 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_IOReadBytes

#define Column_IOReadBytes   Columns[COLUMN_IOREADBYTES]

Definition at line 93 of file column.h.

◆ COLUMN_IOREADS

#define COLUMN_IOREADS   19

Definition at line 44 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_IOReads

#define Column_IOReads   Columns[COLUMN_IOREADS]

Definition at line 92 of file column.h.

◆ COLUMN_IOWRITEBYTES

#define COLUMN_IOWRITEBYTES   23

Definition at line 48 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_IOWriteBytes

#define Column_IOWriteBytes   Columns[COLUMN_IOWRITEBYTES]

Definition at line 105 of file column.h.

◆ COLUMN_IOWRITES

#define COLUMN_IOWRITES   20

Definition at line 45 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_IOWrites

#define Column_IOWrites   Columns[COLUMN_IOWRITES]

Definition at line 104 of file column.h.

◆ COLUMN_MEMORYUSAGE

#define COLUMN_MEMORYUSAGE   6

Definition at line 31 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_MemoryUsage

#define Column_MemoryUsage   Columns[COLUMN_MEMORYUSAGE]

Definition at line 87 of file column.h.

◆ COLUMN_MEMORYUSAGEDELTA

#define COLUMN_MEMORYUSAGEDELTA   8

Definition at line 33 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_MemoryUsageDelta

#define Column_MemoryUsageDelta   Columns[COLUMN_MEMORYUSAGEDELTA]

Definition at line 88 of file column.h.

◆ COLUMN_NMAX

◆ COLUMN_NONPAGEDPOOL

#define COLUMN_NONPAGEDPOOL   13

Definition at line 38 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_NonPagedPool

#define Column_NonPagedPool   Columns[COLUMN_NONPAGEDPOOL]

Definition at line 99 of file column.h.

◆ COLUMN_PAGEDPOOL

#define COLUMN_PAGEDPOOL   12

Definition at line 37 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_PagedPool

#define Column_PagedPool   Columns[COLUMN_PAGEDPOOL]

Definition at line 98 of file column.h.

◆ COLUMN_PAGEFAULTS

#define COLUMN_PAGEFAULTS   9

Definition at line 34 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_PageFaults

#define Column_PageFaults   Columns[COLUMN_PAGEFAULTS]

Definition at line 90 of file column.h.

◆ COLUMN_PAGEFAULTSDELTA

#define COLUMN_PAGEFAULTSDELTA   10

Definition at line 35 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_PageFaultsDelta

#define Column_PageFaultsDelta   Columns[COLUMN_PAGEFAULTSDELTA]

Definition at line 96 of file column.h.

◆ COLUMN_PEAKMEMORYUSAGE

#define COLUMN_PEAKMEMORYUSAGE   7

Definition at line 32 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_PeakMemoryUsage

#define Column_PeakMemoryUsage   Columns[COLUMN_PEAKMEMORYUSAGE]

Definition at line 89 of file column.h.

◆ COLUMN_PID

#define COLUMN_PID   1

Definition at line 26 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_PID

#define Column_PID   Columns[COLUMN_PID]

Definition at line 84 of file column.h.

◆ COLUMN_SESSIONID

#define COLUMN_SESSIONID   3

Definition at line 28 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_SessionID

#define Column_SessionID   Columns[COLUMN_SESSIONID]

Definition at line 94 of file column.h.

◆ COLUMN_THREADCOUNT

#define COLUMN_THREADCOUNT   16

Definition at line 41 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_ThreadCount

#define Column_ThreadCount   Columns[COLUMN_THREADCOUNT]

Definition at line 102 of file column.h.

◆ COLUMN_USERNAME

#define COLUMN_USERNAME   2

Definition at line 27 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_UserName

#define Column_UserName   Columns[COLUMN_USERNAME]

Definition at line 95 of file column.h.

◆ COLUMN_USEROBJECTS

#define COLUMN_USEROBJECTS   17

Definition at line 42 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_USERObjects

#define Column_USERObjects   Columns[COLUMN_USEROBJECTS]

Definition at line 91 of file column.h.

◆ COLUMN_VIRTUALMEMORYSIZE

#define COLUMN_VIRTUALMEMORYSIZE   11

Definition at line 36 of file column.h.

Referenced by PerfDataGetText(), and ProcessPageCompareFunc().

◆ Column_VirtualMemorySize

#define Column_VirtualMemorySize   Columns[COLUMN_VIRTUALMEMORYSIZE]

Definition at line 97 of file column.h.

◆ IDS_TAB_BASEPRIORITY

#define IDS_TAB_BASEPRIORITY   IDS_TAB_BASEPRI

Definition at line 66 of file column.h.

◆ IDS_TAB_CPUUSAGE

#define IDS_TAB_CPUUSAGE   IDS_TAB_CPU

Definition at line 58 of file column.h.

◆ IDS_TAB_HANDLECOUNT

#define IDS_TAB_HANDLECOUNT   IDS_TAB_HANDLES

Definition at line 67 of file column.h.

◆ IDS_TAB_IOWRITEBYTES

#define IDS_TAB_IOWRITEBYTES   IDS_TAB_IOWRITESBYTES

Definition at line 70 of file column.h.

◆ IDS_TAB_MEMORYUSAGE

#define IDS_TAB_MEMORYUSAGE   IDS_TAB_MEMUSAGE

Definition at line 59 of file column.h.

◆ IDS_TAB_MEMORYUSAGEDELTA

#define IDS_TAB_MEMORYUSAGEDELTA   IDS_TAB_MEMDELTA

Definition at line 61 of file column.h.

◆ IDS_TAB_NONPAGEDPOOL

#define IDS_TAB_NONPAGEDPOOL   IDS_TAB_NPPOOL

Definition at line 65 of file column.h.

◆ IDS_TAB_PAGEFAULTS

#define IDS_TAB_PAGEFAULTS   IDS_TAB_PAGEFAULT

Definition at line 62 of file column.h.

◆ IDS_TAB_PAGEFAULTSDELTA

#define IDS_TAB_PAGEFAULTSDELTA   IDS_TAB_PFDELTA

Definition at line 63 of file column.h.

◆ IDS_TAB_PEAKMEMORYUSAGE

#define IDS_TAB_PEAKMEMORYUSAGE   IDS_TAB_PEAKMEMUSAGE

Definition at line 60 of file column.h.

◆ IDS_TAB_THREADCOUNT

#define IDS_TAB_THREADCOUNT   IDS_TAB_THREADS

Definition at line 68 of file column.h.

◆ IDS_TAB_USEROBJECTS

#define IDS_TAB_USEROBJECTS   IDS_TAB_USERPBJECTS

Definition at line 69 of file column.h.

◆ IDS_TAB_VIRTUALMEMORYSIZE

#define IDS_TAB_VIRTUALMEMORYSIZE   IDS_TAB_VMSIZE

Definition at line 64 of file column.h.

Function Documentation

◆ AddColumns()

void AddColumns ( void  )

Definition at line 63 of file column.c.

Referenced by MainPageProc(), ProcessPage_OnViewSelectColumns(), and ProcessPageWndProc().

64 {
65  LRESULT size;
66  WCHAR szTemp[256];
67  unsigned int n;
68 
69  for (n=0; n<COLUMN_NMAX; n++) {
71  LoadStringW(hInst, ColumnPresets[n].dwIdsName, szTemp, sizeof(szTemp)/sizeof(WCHAR));
73  }
74  }
75 
78 
80 }
#define COLUMN_NMAX
Definition: column.h:51
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define LVCFMT_LEFT
Definition: commctrl.h:2568
int ColumnSizeArray[COLUMN_NMAX]
Definition: taskmgr.h:82
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
UINT_PTR WPARAM
Definition: windef.h:207
GLuint n
Definition: s_context.h:57
#define HDM_GETITEMCOUNT
Definition: commctrl.h:718
LONG_PTR LPARAM
Definition: windef.h:208
HWND hProcessPageHeaderCtrl
Definition: procpage.c:39
const PresetColumnEntry ColumnPresets[COLUMN_NMAX]
Definition: column.c:31
void UpdateColumnDataHints(void)
Definition: column.c:203
GLsizeiptr size
Definition: glext.h:5919
#define HDM_SETORDERARRAY
Definition: commctrl.h:794
BOOL Columns[COLUMN_NMAX]
Definition: taskmgr.h:80
HINSTANCE hInst
Definition: dxdiag.c:13
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
TASKMANAGER_SETTINGS TaskManagerSettings
Definition: taskmgr.c:52
static int InsertColumn(int nCol, LPCWSTR lpszColumnHeading, int nFormat, int nWidth, int nSubItem)
Definition: column.c:82
int ColumnOrderArray[COLUMN_NMAX]
Definition: taskmgr.h:81
LONG_PTR LRESULT
Definition: windef.h:209

◆ ProcessPage_OnViewSelectColumns()

void ProcessPage_OnViewSelectColumns ( void  )

Definition at line 145 of file column.c.

Referenced by TaskManagerWndProc().

146 {
147  int i;
148 
150  {
151  for (i=Header_GetItemCount(hProcessPageHeaderCtrl)-1; i>=0; i--)
152  {
154  }
155 
156  for (i=0; i<COLUMN_NMAX; i++) {
159  }
160 
161  AddColumns();
162  }
163 }
#define IDOK
Definition: winuser.h:824
#define COLUMN_NMAX
Definition: column.h:51
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:47
#define ListView_DeleteColumn(hwnd, iCol)
Definition: commctrl.h:2609
int ColumnSizeArray[COLUMN_NMAX]
Definition: taskmgr.h:82
#define IDD_COLUMNS_DIALOG
Definition: resource.h:24
GLenum GLclampf GLint i
Definition: glfuncs.h:14
HWND hProcessPageHeaderCtrl
Definition: procpage.c:39
const PresetColumnEntry ColumnPresets[COLUMN_NMAX]
Definition: column.c:31
#define DialogBoxW(i, t, p, f)
Definition: winuser.h:4268
#define Header_GetItemCount(hwndHD)
Definition: commctrl.h:719
INT_PTR CALLBACK ColumnsDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: column.c:166
HWND hMainWnd
Definition: magnifier.c:33
HINSTANCE hInst
Definition: dxdiag.c:13
TASKMANAGER_SETTINGS TaskManagerSettings
Definition: taskmgr.c:52
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
int ColumnOrderArray[COLUMN_NMAX]
Definition: taskmgr.h:81
HWND hProcessPageListCtrl
Definition: procpage.c:38
void AddColumns(void)
Definition: column.c:63

◆ SaveColumnSettings()

void SaveColumnSettings ( void  )

Definition at line 105 of file column.c.

Referenced by ProcessPageWndProc().

106 {
107  HDITEM hditem;
108  int i, n;
109  WCHAR text[260];
110  WCHAR szTemp[256];
111  LRESULT size;
112 
113  /* Reset column data */
114  for (i=0; i<COLUMN_NMAX; i++) {
118  }
119 
120  /* Get header order */
123 
124  /* Get visible columns */
125  for (i = 0; i < SendMessageW(hProcessPageHeaderCtrl, HDM_GETITEMCOUNT, 0, 0); i++) {
126  memset(&hditem, 0, sizeof(HDITEM));
127 
128  hditem.mask = HDI_TEXT|HDI_WIDTH;
129  hditem.pszText = text;
130  hditem.cchTextMax = 260;
131 
133 
134  for (n = 0; n < COLUMN_NMAX; n++) {
135  LoadStringW(hInst, ColumnPresets[n].dwIdsName, szTemp, sizeof(szTemp)/sizeof(WCHAR));
136  if (_wcsicmp(text, szTemp) == 0)
137  {
139  TaskManagerSettings.ColumnSizeArray[n] = hditem.cxy;
140  }
141  }
142  }
143 }
#define TRUE
Definition: types.h:120
#define COLUMN_NMAX
Definition: column.h:51
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * text
Definition: package.c:1827
int ColumnSizeArray[COLUMN_NMAX]
Definition: taskmgr.h:82
#define HDI_TEXT
Definition: commctrl.h:689
#define HDITEM
Definition: commctrl.h:682
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
UINT_PTR WPARAM
Definition: windef.h:207
GLuint n
Definition: s_context.h:57
GLenum GLclampf GLint i
Definition: glfuncs.h:14
#define HDM_GETITEMCOUNT
Definition: commctrl.h:718
LONG_PTR LPARAM
Definition: windef.h:208
HWND hProcessPageHeaderCtrl
Definition: procpage.c:39
const PresetColumnEntry ColumnPresets[COLUMN_NMAX]
Definition: column.c:31
GLsizeiptr size
Definition: glext.h:5919
BOOL Columns[COLUMN_NMAX]
Definition: taskmgr.h:80
#define HDM_GETORDERARRAY
Definition: commctrl.h:791
HINSTANCE hInst
Definition: dxdiag.c:13
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
TASKMANAGER_SETTINGS TaskManagerSettings
Definition: taskmgr.c:52
#define HDM_GETITEM
Definition: commctrl.h:734
int ColumnOrderArray[COLUMN_NMAX]
Definition: taskmgr.h:81
LONG_PTR LRESULT
Definition: windef.h:209
#define HDI_WIDTH
Definition: commctrl.h:687
#define memset(x, y, z)
Definition: compat.h:39
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)

◆ UpdateColumnDataHints()

void UpdateColumnDataHints ( void  )

Definition at line 203 of file column.c.

Referenced by AddColumns(), and ProcessPageOnNotify().

204 {
205  HDITEM hditem;
206  WCHAR text[260];
207  ULONG Index;
208  ULONG uItems;
209  WCHAR szTemp[256];
210  UINT i;
211 
213 
214  for (Index=0; Index<uItems; Index++)
215  {
216  memset(&hditem, 0, sizeof(HDITEM));
217 
218  hditem.mask = HDI_TEXT;
219  hditem.pszText = text;
220  hditem.cchTextMax = 260;
221 
223 
224  for (i=0; i<COLUMN_NMAX; i++) {
225  LoadStringW(hInst, ColumnPresets[i].dwIdsName, szTemp, sizeof(szTemp)/sizeof(WCHAR));
226  if (_wcsicmp(text, szTemp) == 0)
228  }
229  }
230 }
#define COLUMN_NMAX
Definition: column.h:51
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * text
Definition: package.c:1827
#define HDI_TEXT
Definition: commctrl.h:689
#define HDITEM
Definition: commctrl.h:682
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
GLenum GLclampf GLint i
Definition: glfuncs.h:14
#define HDM_GETITEMCOUNT
Definition: commctrl.h:718
LONG_PTR LPARAM
Definition: windef.h:208
HWND hProcessPageHeaderCtrl
Definition: procpage.c:39
const PresetColumnEntry ColumnPresets[COLUMN_NMAX]
Definition: column.c:31
UINT ColumnDataHints[COLUMN_NMAX]
Definition: column.c:26
unsigned int UINT
Definition: ndis.h:50
static const UCHAR Index[8]
Definition: usbohci.c:18
HINSTANCE hInst
Definition: dxdiag.c:13
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define min(a, b)
Definition: monoChain.cc:55
unsigned int ULONG
Definition: retypes.h:1
#define HDM_GETITEM
Definition: commctrl.h:734
#define memset(x, y, z)
Definition: compat.h:39
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)

Variable Documentation

◆ ColumnDataHints

UINT ColumnDataHints[COLUMN_NMAX]

Definition at line 26 of file column.c.

Referenced by PerfDataGetText(), ProcessPageOnNotify(), and UpdateColumnDataHints().

◆ ColumnPresets

Definition at line 31 of file column.c.

Referenced by LoadSettings().