47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
|
|
*
|
|
* This file is part of System Informer.
|
|
*
|
|
* Authors:
|
|
*
|
|
* wj32 2010-2016
|
|
* dmex 2017-2022
|
|
*
|
|
*/
|
|
|
|
#ifndef PH_PROCGRP_H
|
|
#define PH_PROCGRP_H
|
|
|
|
// begin_phapppub
|
|
typedef struct _PH_PROCESS_GROUP
|
|
{
|
|
PPH_PROCESS_ITEM Representative; // An element of Processes (no extra reference added)
|
|
PPH_LIST Processes; // List of PPH_PROCESS_ITEM
|
|
HWND WindowHandle; // Window handle of representative
|
|
} PH_PROCESS_GROUP, *PPH_PROCESS_GROUP;
|
|
// end_phapppub
|
|
|
|
typedef _Function_class_(PH_SORT_LIST_FUNCTION)
|
|
VOID NTAPI PH_SORT_LIST_FUNCTION(
|
|
_In_ PPH_LIST List,
|
|
_In_opt_ PVOID Context
|
|
);
|
|
typedef PH_SORT_LIST_FUNCTION* PPH_SORT_LIST_FUNCTION;
|
|
|
|
#define PH_GROUP_PROCESSES_DONT_GROUP 0x1
|
|
#define PH_GROUP_PROCESSES_FILE_PATH 0x2
|
|
|
|
PPH_LIST PhCreateProcessGroupList(
|
|
_In_opt_ PPH_SORT_LIST_FUNCTION SortListFunction, // Sort a list of PPH_PROCESS_NODE
|
|
_In_opt_ PVOID Context,
|
|
_In_ ULONG MaximumGroups,
|
|
_In_ ULONG Flags
|
|
);
|
|
|
|
VOID PhFreeProcessGroupList(
|
|
_In_ PPH_LIST List
|
|
);
|
|
|
|
#endif
|