2 * Copyright (C) 2017 Austin English
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
26 typedef LPVOID (CDECL
* PERF_MEM_ALLOC
)(SIZE_T
,LPVOID
);
27 typedef void (CDECL
* PERF_MEM_FREE
)(LPVOID
,LPVOID
);
28 typedef ULONG (WINAPI
* PERFLIBREQUEST
)(ULONG
,PVOID
,ULONG
);
30 typedef struct _PERF_COUNTERSET_INFO
{
35 } PERF_COUNTERSET_INFO
, * PPERF_COUNTERSET_INFO
;
37 typedef struct _PERF_COUNTERSET_INSTANCE
{
41 ULONG InstanceNameOffset
;
42 ULONG InstanceNameSize
;
43 } PERF_COUNTERSET_INSTANCE
, * PPERF_COUNTERSET_INSTANCE
;
45 typedef struct _PROVIDER_CONTEXT
{
48 PERFLIBREQUEST ControlCallback
;
49 PERF_MEM_ALLOC MemAllocRoutine
;
50 PERF_MEM_FREE MemFreeRoutine
;
52 } PERF_PROVIDER_CONTEXT
, * PPERF_PROVIDER_CONTEXT
;
58 #endif /* _PERFLIB_H_ */