Skip to content

Commit c765bde

Browse files
committed
Remove legacy XP code
1 parent 82e171a commit c765bde

36 files changed

+307
-672
lines changed

ProcessHacker/ProcessHacker.rc

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,60 +1827,6 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1
18271827
BEGIN
18281828
END
18291829

1830-
IDD_SYSINFO_MEMPANELXP DIALOGEX 0, 0, 230, 171
1831-
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_SYSMENU
1832-
EXSTYLE WS_EX_CONTROLPARENT
1833-
FONT 8, "MS Shell Dlg", 400, 0, 0x1
1834-
BEGIN
1835-
GROUPBOX "Commit charge",-1,0,0,108,44
1836-
LTEXT "Current",-1,7,11,26,8
1837-
LTEXT "Peak",-1,7,21,16,8
1838-
LTEXT "Limit",-1,7,31,15,8
1839-
RTEXT "Static",IDC_ZCOMMITCURRENT_V,45,11,56,8,SS_ENDELLIPSIS
1840-
RTEXT "Static",IDC_ZCOMMITPEAK_V,41,21,60,8,SS_ENDELLIPSIS
1841-
RTEXT "Static",IDC_ZCOMMITLIMIT_V,40,31,61,8,SS_ENDELLIPSIS
1842-
GROUPBOX "Physical memory",-1,112,0,118,64
1843-
LTEXT "Current",-1,120,11,26,8
1844-
LTEXT "Cache WS",-1,120,31,34,8
1845-
RTEXT "Static",IDC_ZPHYSICALCURRENT_V,165,11,57,8,SS_ENDELLIPSIS
1846-
RTEXT "Static",IDC_ZPHYSICALTOTAL_V,167,21,55,8,SS_ENDELLIPSIS
1847-
RTEXT "Static",IDC_ZPHYSICALCACHEWS_V,159,31,63,8,SS_ENDELLIPSIS
1848-
LTEXT "Total",-1,120,21,17,8
1849-
LTEXT "Kernel WS",-1,120,41,34,8
1850-
RTEXT "Static",IDC_ZPHYSICALKERNELWS_V,167,41,55,8,SS_ENDELLIPSIS
1851-
LTEXT "Driver WS",-1,120,51,33,8
1852-
RTEXT "Static",IDC_ZPHYSICALDRIVERWS_V,163,51,59,8,SS_ENDELLIPSIS
1853-
GROUPBOX "Paged pool",-1,0,47,108,64
1854-
LTEXT "Working set",-1,7,58,40,8
1855-
LTEXT "Limit",-1,7,78,15,8
1856-
RTEXT "Static",IDC_ZPAGEDWORKINGSET_V,54,58,47,8,SS_ENDELLIPSIS
1857-
RTEXT "Static",IDC_ZPAGEDVIRTUALSIZE_V,52,68,49,8,SS_ENDELLIPSIS
1858-
RTEXT "Static",IDC_ZPAGEDLIMIT_V,48,78,53,8,SS_ENDELLIPSIS
1859-
LTEXT "Virtual size",-1,7,68,36,8
1860-
LTEXT "Allocs delta",-1,7,88,38,8
1861-
RTEXT "Static",IDC_ZPAGEDALLOCSDELTA_V,53,88,48,8,SS_ENDELLIPSIS
1862-
LTEXT "Frees delta",-1,7,98,38,8
1863-
RTEXT "Static",IDC_ZPAGEDFREESDELTA_V,51,98,50,8,SS_ENDELLIPSIS
1864-
GROUPBOX "Non-paged pool",-1,0,114,108,55
1865-
LTEXT "Usage",-1,7,125,21,8
1866-
LTEXT "Allocs delta",-1,7,145,38,8
1867-
RTEXT "Static",IDC_ZNONPAGEDUSAGE_V,54,125,47,8,SS_ENDELLIPSIS
1868-
RTEXT "Static",IDC_ZNONPAGEDLIMIT_V,52,135,49,8,SS_ENDELLIPSIS
1869-
RTEXT "Static",IDC_ZNONPAGEDALLOCSDELTA_V,56,145,45,8,SS_ENDELLIPSIS
1870-
LTEXT "Limit",-1,7,135,15,8
1871-
LTEXT "Frees delta",-1,7,155,38,8
1872-
RTEXT "Static",IDC_ZNONPAGEDFREESDELTA_V,56,155,45,8,SS_ENDELLIPSIS
1873-
GROUPBOX "Paging",-1,112,67,118,55
1874-
LTEXT "Page faults delta",-1,120,78,57,8
1875-
LTEXT "Pagefile writes delta",-1,120,98,68,8
1876-
RTEXT "Static",IDC_ZPAGINGPAGEFAULTSDELTA_V,183,78,39,8,SS_ENDELLIPSIS
1877-
RTEXT "Static",IDC_ZPAGINGPAGEREADSDELTA_V,179,88,43,8,SS_ENDELLIPSIS
1878-
RTEXT "Static",IDC_ZPAGINGPAGEFILEWRITESDELTA_V,189,98,33,8,SS_ENDELLIPSIS
1879-
LTEXT "Page reads delta",-1,120,88,58,8
1880-
LTEXT "Mapped writes delta",-1,120,108,68,8
1881-
RTEXT "Static",IDC_ZPAGINGMAPPEDWRITESDELTA_V,191,108,31,8,SS_ENDELLIPSIS
1882-
END
1883-
18841830
IDD_MINIINFO DIALOGEX 0, 0, 217, 150
18851831
STYLE DS_SETFONT | DS_FIXEDSYS | DS_CONTROL | WS_CHILD
18861832
FONT 8, "MS Shell Dlg", 400, 0, 0x1
@@ -2428,10 +2374,6 @@ BEGIN
24282374
BOTTOMMARGIN, 175
24292375
END
24302376

2431-
IDD_SYSINFO_MEMPANELXP, DIALOG
2432-
BEGIN
2433-
END
2434-
24352377
IDD_MINIINFO, DIALOG
24362378
BEGIN
24372379
LEFTMARGIN, 4

ProcessHacker/actions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ BOOLEAN PhpShowErrorAndElevateAction(
164164
))
165165
return FALSE;
166166

167-
if (!WINDOWS_HAS_UAC || PhGetOwnTokenAttributes().Elevated)
167+
if (PhGetOwnTokenAttributes().Elevated)
168168
return FALSE;
169169

170170
elevationLevel = PhGetIntegerSetting(L"ElevationLevel");
@@ -257,7 +257,7 @@ BOOLEAN PhpShowErrorAndConnectToPhSvc(
257257
))
258258
return FALSE;
259259

260-
if (!WINDOWS_HAS_UAC || PhGetOwnTokenAttributes().Elevated)
260+
if (PhGetOwnTokenAttributes().Elevated)
261261
return FALSE;
262262

263263
elevationLevel = PhGetIntegerSetting(L"ElevationLevel");

ProcessHacker/anawait.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ static BOOLEAN NTAPI PhpWalkThreadStackAnalyzeCallback(
439439

440440
PhAppendStringBuilder2(
441441
&context->StringBuilder,
442-
WindowsVersion >= WINDOWS_VISTA ? L"Thread is waiting for an ALPC port:\r\n" : L"Thread is waiting for a LPC port:\r\n"
442+
L"Thread is waiting for an ALPC port:\r\n"
443443
);
444444
PhAppendStringBuilder(
445445
&context->StringBuilder,

ProcessHacker/findobj.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ static NTSTATUS PhpFindObjectsThreadStart(
901901
PH_WORK_QUEUE workQueue;
902902
processHandleHashtable = PhCreateSimpleHashtable(8);
903903

904-
if (!KphIsConnected() && WindowsVersion >= WINDOWS_VISTA)
904+
if (!KphIsConnected())
905905
{
906906
useWorkQueue = TRUE;
907907
PhInitializeWorkQueue(&workQueue, 1, 20, 1000);

ProcessHacker/hidnproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ NTSTATUS PhpEnumHiddenProcessesBruteForce(
808808
}
809809

810810
// Use an alternative method if we don't have sufficient access.
811-
if (status2 == STATUS_ACCESS_DENIED && WindowsVersion >= WINDOWS_VISTA)
811+
if (status2 == STATUS_ACCESS_DENIED)
812812
{
813813
if (NT_SUCCESS(status2 = PhGetProcessImageFileNameByProcessId(UlongToHandle(pid), &fileName)))
814814
{

ProcessHacker/hndlprv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ VOID PhHandleProviderUpdate(
487487
)))
488488
goto UpdateExit;
489489

490-
if (!KphIsConnected() && WindowsVersion >= WINDOWS_VISTA)
490+
if (!KphIsConnected())
491491
{
492492
useWorkQueue = TRUE;
493493
PhInitializeWorkQueue(&workQueue, 1, 20, 1000);

ProcessHacker/mainwnd.c

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ BOOLEAN PhMainWndInitialization(
142142
if (KphIsConnected()) PhAppendCharStringBuilder(&stringBuilder, '+');
143143
}
144144

145-
if (WINDOWS_HAS_UAC && PhGetOwnTokenAttributes().ElevationType == TokenElevationTypeFull)
145+
if (PhGetOwnTokenAttributes().ElevationType == TokenElevationTypeFull)
146146
PhAppendStringBuilder2(&stringBuilder, L" (Administrator)");
147147
}
148148

@@ -175,8 +175,7 @@ BOOLEAN PhMainWndInitialization(
175175
windowRectangle.Width, windowRectangle.Height, FALSE);
176176

177177
// Allow WM_PH_ACTIVATE to pass through UIPI.
178-
if (WINDOWS_HAS_UAC)
179-
ChangeWindowMessageFilter_I(WM_PH_ACTIVATE, MSGFLT_ADD);
178+
ChangeWindowMessageFilter_I(WM_PH_ACTIVATE, MSGFLT_ADD);
180179

181180
PhMwpOnSettingChange();
182181

@@ -3103,15 +3102,12 @@ VOID PhAddMiniProcessMenuItems(
31033102

31043103
// I/O priority
31053104

3106-
if (WindowsVersion >= WINDOWS_VISTA)
3107-
{
3108-
ioPriorityMenu = PhCreateEMenuItem(0, 0, L"I/O priority", NULL, ProcessId);
3105+
ioPriorityMenu = PhCreateEMenuItem(0, 0, L"I/O priority", NULL, ProcessId);
31093106

3110-
PhInsertEMenuItem(ioPriorityMenu, PhCreateEMenuItem(0, ID_IOPRIORITY_HIGH, L"High", NULL, ProcessId), -1);
3111-
PhInsertEMenuItem(ioPriorityMenu, PhCreateEMenuItem(0, ID_IOPRIORITY_NORMAL, L"Normal", NULL, ProcessId), -1);
3112-
PhInsertEMenuItem(ioPriorityMenu, PhCreateEMenuItem(0, ID_IOPRIORITY_LOW, L"Low", NULL, ProcessId), -1);
3113-
PhInsertEMenuItem(ioPriorityMenu, PhCreateEMenuItem(0, ID_IOPRIORITY_VERYLOW, L"Very low", NULL, ProcessId), -1);
3114-
}
3107+
PhInsertEMenuItem(ioPriorityMenu, PhCreateEMenuItem(0, ID_IOPRIORITY_HIGH, L"High", NULL, ProcessId), -1);
3108+
PhInsertEMenuItem(ioPriorityMenu, PhCreateEMenuItem(0, ID_IOPRIORITY_NORMAL, L"Normal", NULL, ProcessId), -1);
3109+
PhInsertEMenuItem(ioPriorityMenu, PhCreateEMenuItem(0, ID_IOPRIORITY_LOW, L"Low", NULL, ProcessId), -1);
3110+
PhInsertEMenuItem(ioPriorityMenu, PhCreateEMenuItem(0, ID_IOPRIORITY_VERYLOW, L"Very low", NULL, ProcessId), -1);
31153111

31163112
// Menu
31173113

ProcessHacker/memprv.c

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -347,20 +347,6 @@ NTSTATUS PhpUpdateMemoryRegionTypes(
347347
{
348348
PSYSTEM_EXTENDED_THREAD_INFORMATION thread = (PSYSTEM_EXTENDED_THREAD_INFORMATION)process->Threads + i;
349349

350-
if (WindowsVersion < WINDOWS_VISTA)
351-
{
352-
HANDLE threadHandle;
353-
THREAD_BASIC_INFORMATION basicInfo;
354-
355-
if (NT_SUCCESS(PhOpenThread(&threadHandle, ThreadQueryAccess, thread->ThreadInfo.ClientId.UniqueThread)))
356-
{
357-
if (NT_SUCCESS(PhGetThreadBasicInformation(threadHandle, &basicInfo)))
358-
thread->TebBase = basicInfo.TebBaseAddress;
359-
360-
NtClose(threadHandle);
361-
}
362-
}
363-
364350
if (thread->TebBase)
365351
{
366352
NT_TIB ntTib;
@@ -437,27 +423,13 @@ NTSTATUS PhpUpdateMemoryRegionTypes(
437423
PVOID candidateHeap = NULL;
438424
ULONG candidateHeap32 = 0;
439425
PPH_MEMORY_ITEM heapMemoryItem;
426+
PHEAP_SEGMENT heapSegment = (PHEAP_SEGMENT)buffer;
427+
PHEAP_SEGMENT32 heapSegment32 = (PHEAP_SEGMENT32)buffer;
440428

441-
if (WindowsVersion >= WINDOWS_VISTA)
442-
{
443-
PHEAP_SEGMENT heapSegment = (PHEAP_SEGMENT)buffer;
444-
PHEAP_SEGMENT32 heapSegment32 = (PHEAP_SEGMENT32)buffer;
445-
446-
if (heapSegment->SegmentSignature == HEAP_SEGMENT_SIGNATURE)
447-
candidateHeap = heapSegment->Heap;
448-
if (heapSegment32->SegmentSignature == HEAP_SEGMENT_SIGNATURE)
449-
candidateHeap32 = heapSegment32->Heap;
450-
}
451-
else
452-
{
453-
PHEAP_SEGMENT_OLD heapSegment = (PHEAP_SEGMENT_OLD)buffer;
454-
PHEAP_SEGMENT_OLD32 heapSegment32 = (PHEAP_SEGMENT_OLD32)buffer;
455-
456-
if (heapSegment->Signature == HEAP_SEGMENT_SIGNATURE)
457-
candidateHeap = heapSegment->Heap;
458-
if (heapSegment32->Signature == HEAP_SEGMENT_SIGNATURE)
459-
candidateHeap32 = heapSegment32->Heap;
460-
}
429+
if (heapSegment->SegmentSignature == HEAP_SEGMENT_SIGNATURE)
430+
candidateHeap = heapSegment->Heap;
431+
if (heapSegment32->SegmentSignature == HEAP_SEGMENT_SIGNATURE)
432+
candidateHeap32 = heapSegment32->Heap;
461433

462434
if (candidateHeap)
463435
{

ProcessHacker/modlist.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -747,15 +747,8 @@ BOOLEAN NTAPI PhpModuleTreeNewCallback(
747747
getCellText->Text = PhGetStringRef(moduleItem->VerifySignerName);
748748
break;
749749
case PHMOTLC_ASLR:
750-
if (WindowsVersion >= WINDOWS_VISTA)
751-
{
752-
if (moduleItem->ImageDllCharacteristics & IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE)
753-
PhInitializeStringRef(&getCellText->Text, L"ASLR");
754-
}
755-
else
756-
{
757-
PhInitializeStringRef(&getCellText->Text, L"N/A");
758-
}
750+
if (moduleItem->ImageDllCharacteristics & IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE)
751+
PhInitializeStringRef(&getCellText->Text, L"ASLR");
759752
break;
760753
case PHMOTLC_TIMESTAMP:
761754
{

ProcessHacker/modprv.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,12 @@ PPH_MODULE_PROVIDER PhCreateModuleProvider(
111111
ProcessId
112112
)))
113113
{
114-
if (WINDOWS_HAS_LIMITED_ACCESS)
115-
{
116-
// Try to get a handle with query limited information + vm read access.
117-
status = PhOpenProcess(
118-
&moduleProvider->ProcessHandle,
119-
PROCESS_QUERY_LIMITED_INFORMATION | PROCESS_VM_READ,
120-
ProcessId
121-
);
122-
}
114+
// Try to get a handle with query limited information + vm read access.
115+
status = PhOpenProcess(
116+
&moduleProvider->ProcessHandle,
117+
PROCESS_QUERY_LIMITED_INFORMATION | PROCESS_VM_READ,
118+
ProcessId
119+
);
123120

124121
moduleProvider->RunStatus = status;
125122
}

ProcessHacker/mwpgproc.c

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,16 @@ VOID PhMwpSetProcessMenuPriorityChecks(
363363
{
364364
if (SetPriority)
365365
{
366-
NtQueryInformationProcess(processHandle, ProcessPriorityClass, &priorityClass, sizeof(PROCESS_PRIORITY_CLASS), NULL);
366+
NtQueryInformationProcess(
367+
processHandle,
368+
ProcessPriorityClass,
369+
&priorityClass,
370+
sizeof(PROCESS_PRIORITY_CLASS),
371+
NULL
372+
);
367373
}
368374

369-
if (SetIoPriority && WindowsVersion >= WINDOWS_VISTA)
375+
if (SetIoPriority)
370376
{
371377
if (!NT_SUCCESS(PhGetProcessIoPriority(
372378
processHandle,
@@ -377,7 +383,7 @@ VOID PhMwpSetProcessMenuPriorityChecks(
377383
}
378384
}
379385

380-
if (SetPagePriority && WindowsVersion >= WINDOWS_VISTA)
386+
if (SetPagePriority)
381387
{
382388
if (!NT_SUCCESS(PhGetProcessPagePriority(
383389
processHandle,
@@ -545,17 +551,6 @@ VOID PhMwpInitializeProcessMenu(
545551
}
546552
}
547553

548-
// Remove irrelevant menu items.
549-
if (WindowsVersion < WINDOWS_VISTA)
550-
{
551-
// Remove I/O priority.
552-
if (item = PhFindEMenuItem(Menu, PH_EMENU_FIND_DESCEND, L"I/O Priority", 0))
553-
PhDestroyEMenuItem(item);
554-
// Remove page priority.
555-
if (item = PhFindEMenuItem(Menu, PH_EMENU_FIND_DESCEND, L"Page Priority", 0))
556-
PhDestroyEMenuItem(item);
557-
}
558-
559554
// Suspend/Resume
560555
if (NumberOfProcesses == 1)
561556
{
@@ -643,13 +638,6 @@ VOID PhMwpInitializeProcessMenu(
643638
item->Flags |= PH_EMENU_DISABLED;
644639
}
645640
}
646-
647-
// Remove irrelevant menu items (continued)
648-
if (!WINDOWS_HAS_UAC)
649-
{
650-
if (item = PhFindEMenuItem(Menu, 0, NULL, ID_PROCESS_VIRTUALIZATION))
651-
PhDestroyEMenuItem(item);
652-
}
653641
}
654642

655643
VOID PhShowProcessContextMenu(

ProcessHacker/netlist.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ VOID PhInitializeNetworkTreeList(
132132
PhAddTreeNewColumn(hwnd, PHNETLC_REMOTEPORT, TRUE, L"Remote port", 50, PH_ALIGN_RIGHT, 4, DT_RIGHT);
133133
PhAddTreeNewColumn(hwnd, PHNETLC_PROTOCOL, TRUE, L"Protocol", 45, PH_ALIGN_LEFT, 5, 0);
134134
PhAddTreeNewColumn(hwnd, PHNETLC_STATE, TRUE, L"State", 70, PH_ALIGN_LEFT, 6, 0);
135-
PhAddTreeNewColumn(hwnd, PHNETLC_OWNER, WINDOWS_HAS_SERVICE_TAGS, L"Owner", 80, PH_ALIGN_LEFT, 7, 0);
135+
PhAddTreeNewColumn(hwnd, PHNETLC_OWNER, TRUE, L"Owner", 80, PH_ALIGN_LEFT, 7, 0);
136136
PhAddTreeNewColumnEx(hwnd, PHNETLC_TIMESTAMP, FALSE, L"Time stamp", 100, PH_ALIGN_LEFT, -1, 0, TRUE);
137137
PhAddTreeNewColumn(hwnd, PHNETLC_LOCALHOSTNAME, FALSE, L"Local hostname", 120, PH_ALIGN_LEFT, -1, 0);
138138
PhAddTreeNewColumn(hwnd, PHNETLC_REMOTEHOSTNAME, FALSE, L"Remote hostname", 120, PH_ALIGN_LEFT, -1, 0);
@@ -538,10 +538,7 @@ BOOLEAN NTAPI PhpNetworkTreeNewCallback(
538538
PhInitializeEmptyStringRef(&getCellText->Text);
539539
break;
540540
case PHNETLC_OWNER:
541-
if (WINDOWS_HAS_SERVICE_TAGS)
542-
getCellText->Text = PhGetStringRef(networkItem->OwnerName);
543-
else
544-
PhInitializeStringRef(&getCellText->Text, L"N/A"); // make sure the user knows this column doesn't work on XP
541+
getCellText->Text = PhGetStringRef(networkItem->OwnerName);
545542
break;
546543
case PHNETLC_TIMESTAMP:
547544
{

ProcessHacker/notifico.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ VOID PhNfLoadStage2(
103103
{
104104
ULONG i;
105105

106-
PhNfMiniInfoEnabled = WindowsVersion >= WINDOWS_VISTA && !!PhGetIntegerSetting(L"MiniInfoWindowEnabled");
106+
PhNfMiniInfoEnabled = !!PhGetIntegerSetting(L"MiniInfoWindowEnabled");
107107

108108
for (i = PH_ICON_MINIMUM; i != PhNfMaximumIconId; i <<= 1)
109109
{
@@ -558,11 +558,8 @@ BOOLEAN PhNfpAddNotifyIcon(
558558

559559
Shell_NotifyIcon(NIM_ADD, &notifyIcon);
560560

561-
if (WindowsVersion >= WINDOWS_VISTA)
562-
{
563-
notifyIcon.uVersion = NOTIFYICON_VERSION_4;
564-
Shell_NotifyIcon(NIM_SETVERSION, &notifyIcon);
565-
}
561+
notifyIcon.uVersion = NOTIFYICON_VERSION_4;
562+
Shell_NotifyIcon(NIM_SETVERSION, &notifyIcon);
566563

567564
return TRUE;
568565
}

ProcessHacker/ntobjprp.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,7 @@ static VOID PhpRefreshMutantPageInfo(
388388
SetDlgItemText(hwndDlg, IDC_ABANDONED, L"Unknown");
389389
}
390390

391-
if (
392-
WindowsVersion >= WINDOWS_VISTA &&
393-
NT_SUCCESS(PhGetMutantOwnerInformation(mutantHandle, &ownerInfo))
394-
)
391+
if (NT_SUCCESS(PhGetMutantOwnerInformation(mutantHandle, &ownerInfo)))
395392
{
396393
PPH_STRING name;
397394

@@ -433,12 +430,6 @@ INT_PTR CALLBACK PhpMutantPageProc(
433430
{
434431
case WM_INITDIALOG:
435432
{
436-
if (WindowsVersion < WINDOWS_VISTA)
437-
{
438-
EnableWindow(GetDlgItem(hwndDlg, IDC_OWNERLABEL), FALSE);
439-
EnableWindow(GetDlgItem(hwndDlg, IDC_OWNER), FALSE);
440-
}
441-
442433
PhpRefreshMutantPageInfo(hwndDlg, pageContext);
443434
}
444435
break;

0 commit comments

Comments
 (0)