ntdll: Reuse the Unix name buffer for get_dos_device().
[wine.git] / include / perflib.h
blob2d3f6efb4199080b26ffdbb5495d95447ccfda02
1 /*
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
19 #ifndef _PERFLIB_H_
20 #define _PERFLIB_H_
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
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 {
31 GUID CounterSetGuid;
32 GUID ProviderGuid;
33 ULONG NumCounters;
34 ULONG InstanceType;
35 } PERF_COUNTERSET_INFO, * PPERF_COUNTERSET_INFO;
37 typedef struct _PERF_COUNTERSET_INSTANCE {
38 GUID CounterSetGuid;
39 ULONG dwSize;
40 ULONG InstanceId;
41 ULONG InstanceNameOffset;
42 ULONG InstanceNameSize;
43 } PERF_COUNTERSET_INSTANCE, * PPERF_COUNTERSET_INSTANCE;
45 typedef struct _PROVIDER_CONTEXT {
46 DWORD ContextSize;
47 DWORD Reserved;
48 PERFLIBREQUEST ControlCallback;
49 PERF_MEM_ALLOC MemAllocRoutine;
50 PERF_MEM_FREE MemFreeRoutine;
51 LPVOID pMemContext;
52 } PERF_PROVIDER_CONTEXT, * PPERF_PROVIDER_CONTEXT;
54 #ifdef __cplusplus
55 } /* extern "C" */
56 #endif
58 #endif /* _PERFLIB_H_ */