ReactOS 0.4.16-dev-456-ga97fcf1
avrt.h
Go to the documentation of this file.
1/*
2 * avrt definitions
3 *
4 * Copyright 2009 Maarten Lankhorst
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 *
20 */
21
22#ifndef _AVRT_
23#define _AVRT_
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29typedef enum _AVRT_PRIORITY
30{
37
38/* Windows compiler is more lax */
39#define THREAD_ORDER_GROUP_INFINITE_TIMEOUT ((void*)((LONG_PTR)-1))
40
43#define AvSetMmThreadCharacteristics WINELIB_NAME_AW(AvSetMmThreadCharacteristics)
44
47#define AvSetMmMaxThreadCharacteristics WINELIB_NAME_AW(AvSetMmMaxThreadCharacteristics)
48
53 GUID *ThreadOrderingGuid, PLARGE_INTEGER Timeout);
54
57 GUID *ThreadOrderingGuid, PLARGE_INTEGER Timeout,
58 LPCSTR TaskName);
61 GUID *ThreadOrderingGuid, PLARGE_INTEGER Timeout,
62 LPCSTR TaskName);
63#define AvRtCreateThreadOrderingGroupEx WINELIB_NAME_AW(AvRtCreateThreadOrderingGroupEx)
64
69BOOL WINAPI AvQuerySystemResponsiveness(HANDLE AvrtHandle, PULONG SystemResponsivenessValue);
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /*_AVRT_*/
BOOL WINAPI AvSetMmThreadPriority(HANDLE AvrtHandle, AVRT_PRIORITY Priority)
Definition: main.c:89
BOOL WINAPI AvRtCreateThreadOrderingGroupExA(PHANDLE Context, PLARGE_INTEGER Period, GUID *ThreadOrderingGuid, PLARGE_INTEGER Timeout, LPCSTR TaskName)
BOOL WINAPI AvRtJoinThreadOrderingGroup(PHANDLE Context, GUID *ThreadOrderingGuid, BOOL Before)
HANDLE WINAPI AvSetMmThreadCharacteristicsW(LPCWSTR TaskName, LPDWORD TaskIndex)
enum _AVRT_PRIORITY * PAVRT_PRIORITY
HANDLE WINAPI AvSetMmMaxThreadCharacteristicsA(LPCSTR FirstTask, LPCSTR SecondTask, LPDWORD TaskIndex)
HANDLE WINAPI AvSetMmThreadCharacteristicsA(LPCSTR TaskName, LPDWORD TaskIndex)
BOOL WINAPI AvRtCreateThreadOrderingGroup(PHANDLE Context, PLARGE_INTEGER Period, GUID *ThreadOrderingGuid, PLARGE_INTEGER Timeout)
BOOL WINAPI AvRtCreateThreadOrderingGroupExW(PHANDLE Context, PLARGE_INTEGER Period, GUID *ThreadOrderingGuid, PLARGE_INTEGER Timeout, LPCSTR TaskName)
BOOL WINAPI AvRtLeaveThreadOrderingGroup(HANDLE Context)
enum _AVRT_PRIORITY AVRT_PRIORITY
BOOL WINAPI AvRevertMmThreadCharacteristics(HANDLE AvrtHandle)
Definition: main.c:83
BOOL WINAPI AvRtDeleteThreadOrderingGroup(HANDLE Context)
BOOL WINAPI AvRtWaitOnThreadOrderingGroup(HANDLE Context)
BOOL WINAPI AvQuerySystemResponsiveness(HANDLE AvrtHandle, PULONG SystemResponsivenessValue)
_AVRT_PRIORITY
Definition: avrt.h:30
@ AVRT_PRIORITY_HIGH
Definition: avrt.h:34
@ AVRT_PRIORITY_LOW
Definition: avrt.h:32
@ AVRT_PRIORITY_CRITICAL
Definition: avrt.h:35
@ AVRT_PRIORITY_NORMAL
Definition: avrt.h:33
@ AVRT_PRIORITY_VERYLOW
Definition: avrt.h:31
HANDLE WINAPI AvSetMmMaxThreadCharacteristicsW(LPCWSTR FirstTask, LPCWSTR SecondTask, LPDWORD TaskIndex)
unsigned int BOOL
Definition: ntddk_ex.h:94
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:455
static ULONG Timeout
Definition: ping.c:61
uint32_t * PULONG
Definition: typedefs.h:59
uint32_t * LPDWORD
Definition: typedefs.h:59
_In_ WDFINTERRUPT _In_ WDF_INTERRUPT_POLICY _In_ WDF_INTERRUPT_PRIORITY Priority
Definition: wdfinterrupt.h:655
#define WINAPI
Definition: msvc.h:6
_In_ LARGE_INTEGER _In_ ULONG Period
Definition: kefuncs.h:1313
const char * LPCSTR
Definition: xmlstorage.h:183
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185