| avrt.h (6.3.9600.17415-Windows 8.1) | | avrt.h (10.0.10586.0-Windows 10 1511 10586.494) |
| | |
| skipping to change at line 18 | | skipping to change at line 18 |
| | |
| avrt.h | | avrt.h |
| | |
| Abstract: | | Abstract: |
| | |
| This module contains the multimedia class scheduler APIs and any public data | | This module contains the multimedia class scheduler APIs and any public data |
| structures needed to call these APIs. | | structures needed to call these APIs. |
| | |
| --*/ | | --*/ |
| | |
|
| #ifndef _AVRT_ | | #ifndef _AVRT_H_ |
| #define _AVRT_ | | #define _AVRT_H_ |
| | |
| #if _MSC_VER > 1000 | | |
| #pragma once | | #pragma once |
|
| #endif | | |
| | |
| #ifdef __cplusplus | | #ifdef __cplusplus |
| extern "C" { | | extern "C" { |
| #endif | | #endif |
| | |
| #pragma region Desktop Family | | #pragma region Desktop Family |
| #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) | | #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) |
| | |
| // | | // |
| // AvRt Priorities | | // AvRt Priorities |
| | |
| skipping to change at line 46 | | skipping to change at line 43 |
| typedef enum _AVRT_PRIORITY | | typedef enum _AVRT_PRIORITY |
| { | | { |
| AVRT_PRIORITY_VERYLOW = -2, | | AVRT_PRIORITY_VERYLOW = -2, |
| AVRT_PRIORITY_LOW, | | AVRT_PRIORITY_LOW, |
| AVRT_PRIORITY_NORMAL, | | AVRT_PRIORITY_NORMAL, |
| AVRT_PRIORITY_HIGH, | | AVRT_PRIORITY_HIGH, |
| AVRT_PRIORITY_CRITICAL | | AVRT_PRIORITY_CRITICAL |
| } AVRT_PRIORITY, *PAVRT_PRIORITY; | | } AVRT_PRIORITY, *PAVRT_PRIORITY; |
| | |
| // | | // |
|
| // AvRt Process Notification | | |
| // | | |
| | |
| typedef enum _AVRT_NOTIFICATION | | |
| { | | |
| AVRT_PROCESS_SUSPEND = 0, | | |
| AVRT_PROCESS_RESUME | | |
| } AVRT_NOTIFICATION, *PAVRT_NOTIFICATION; | | |
| | |
| // | | |
| // Infinite timeout for a thread order group. | | // Infinite timeout for a thread order group. |
| // | | // |
| | |
| #define THREAD_ORDER_GROUP_INFINITE_TIMEOUT (-1I64) | | #define THREAD_ORDER_GROUP_INFINITE_TIMEOUT (-1I64) |
| | |
| // | | // |
| // Define API decoration for direct importing of DLL references. | | // Define API decoration for direct importing of DLL references. |
| // | | // |
| | |
|
| #if !defined(_AVRT_) | | |
| #define AVRTAPI DECLSPEC_IMPORT | | #define AVRTAPI DECLSPEC_IMPORT |
|
| #else | | |
| #define AVRTAPI | | |
| #endif | | |
| | |
|
| | _Success_(return != NULL) |
| AVRTAPI | | AVRTAPI |
| HANDLE | | HANDLE |
| WINAPI | | WINAPI |
| AvSetMmThreadCharacteristicsA ( | | AvSetMmThreadCharacteristicsA ( |
| _In_ LPCSTR TaskName, | | _In_ LPCSTR TaskName, |
| _Inout_ LPDWORD TaskIndex | | _Inout_ LPDWORD TaskIndex |
| ); | | ); |
|
| | _Success_(return != NULL) |
| AVRTAPI | | AVRTAPI |
| HANDLE | | HANDLE |
| WINAPI | | WINAPI |
| AvSetMmThreadCharacteristicsW ( | | AvSetMmThreadCharacteristicsW ( |
| _In_ LPCWSTR TaskName, | | _In_ LPCWSTR TaskName, |
| _Inout_ LPDWORD TaskIndex | | _Inout_ LPDWORD TaskIndex |
| ); | | ); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define AvSetMmThreadCharacteristics AvSetMmThreadCharacteristicsW | | #define AvSetMmThreadCharacteristics AvSetMmThreadCharacteristicsW |
| #else | | #else |
| #define AvSetMmThreadCharacteristics AvSetMmThreadCharacteristicsA | | #define AvSetMmThreadCharacteristics AvSetMmThreadCharacteristicsA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
|
| | _Success_(return != NULL) |
| AVRTAPI | | AVRTAPI |
| HANDLE | | HANDLE |
| WINAPI | | WINAPI |
| AvSetMmMaxThreadCharacteristicsA ( | | AvSetMmMaxThreadCharacteristicsA ( |
| _In_ LPCSTR FirstTask, | | _In_ LPCSTR FirstTask, |
| _In_ LPCSTR SecondTask, | | _In_ LPCSTR SecondTask, |
| _Inout_ LPDWORD TaskIndex | | _Inout_ LPDWORD TaskIndex |
| ); | | ); |
|
| | _Success_(return != NULL) |
| AVRTAPI | | AVRTAPI |
| HANDLE | | HANDLE |
| WINAPI | | WINAPI |
| AvSetMmMaxThreadCharacteristicsW ( | | AvSetMmMaxThreadCharacteristicsW ( |
| _In_ LPCWSTR FirstTask, | | _In_ LPCWSTR FirstTask, |
| _In_ LPCWSTR SecondTask, | | _In_ LPCWSTR SecondTask, |
| _Inout_ LPDWORD TaskIndex | | _Inout_ LPDWORD TaskIndex |
| ); | | ); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define AvSetMmMaxThreadCharacteristics AvSetMmMaxThreadCharacteristicsW | | #define AvSetMmMaxThreadCharacteristics AvSetMmMaxThreadCharacteristicsW |
| #else | | #else |
| #define AvSetMmMaxThreadCharacteristics AvSetMmMaxThreadCharacteristicsA | | #define AvSetMmMaxThreadCharacteristics AvSetMmMaxThreadCharacteristicsA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
|
| | _Success_(return != FALSE) |
| AVRTAPI | | AVRTAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| AvRevertMmThreadCharacteristics ( | | AvRevertMmThreadCharacteristics ( |
| _In_ HANDLE AvrtHandle | | _In_ HANDLE AvrtHandle |
| ); | | ); |
| | |
|
| | _Success_(return != FALSE) |
| AVRTAPI | | AVRTAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| AvSetMmThreadPriority ( | | AvSetMmThreadPriority ( |
| _In_ HANDLE AvrtHandle, | | _In_ HANDLE AvrtHandle, |
| _In_ AVRT_PRIORITY Priority | | _In_ AVRT_PRIORITY Priority |
| ); | | ); |
| | |
|
| | _Success_(return != FALSE) |
| AVRTAPI | | AVRTAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| AvRtCreateThreadOrderingGroup ( | | AvRtCreateThreadOrderingGroup ( |
| _Out_ PHANDLE Context, | | _Out_ PHANDLE Context, |
| _In_ PLARGE_INTEGER Period, | | _In_ PLARGE_INTEGER Period, |
| _Inout_ GUID *ThreadOrderingGuid, | | _Inout_ GUID *ThreadOrderingGuid, |
| _In_opt_ PLARGE_INTEGER Timeout | | _In_opt_ PLARGE_INTEGER Timeout |
| ); | | ); |
| | |
|
| | _Success_(return != FALSE) |
| AVRTAPI | | AVRTAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| AvRtCreateThreadOrderingGroupExA ( | | AvRtCreateThreadOrderingGroupExA ( |
| _Out_ PHANDLE Context, | | _Out_ PHANDLE Context, |
| _In_ PLARGE_INTEGER Period, | | _In_ PLARGE_INTEGER Period, |
| _Inout_ GUID *ThreadOrderingGuid, | | _Inout_ GUID *ThreadOrderingGuid, |
| _In_opt_ PLARGE_INTEGER Timeout, | | _In_opt_ PLARGE_INTEGER Timeout, |
| _In_ LPCSTR TaskName | | _In_ LPCSTR TaskName |
| ); | | ); |
|
| | _Success_(return != FALSE) |
| AVRTAPI | | AVRTAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| AvRtCreateThreadOrderingGroupExW ( | | AvRtCreateThreadOrderingGroupExW ( |
| _Out_ PHANDLE Context, | | _Out_ PHANDLE Context, |
| _In_ PLARGE_INTEGER Period, | | _In_ PLARGE_INTEGER Period, |
| _Inout_ GUID *ThreadOrderingGuid, | | _Inout_ GUID *ThreadOrderingGuid, |
| _In_opt_ PLARGE_INTEGER Timeout, | | _In_opt_ PLARGE_INTEGER Timeout, |
| _In_ LPCWSTR TaskName | | _In_ LPCWSTR TaskName |
| ); | | ); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define AvRtCreateThreadOrderingGroupEx AvRtCreateThreadOrderingGroupExW | | #define AvRtCreateThreadOrderingGroupEx AvRtCreateThreadOrderingGroupExW |
| #else | | #else |
| #define AvRtCreateThreadOrderingGroupEx AvRtCreateThreadOrderingGroupExA | | #define AvRtCreateThreadOrderingGroupEx AvRtCreateThreadOrderingGroupExA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
|
| | _Success_(return != FALSE) |
| AVRTAPI | | AVRTAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| AvRtJoinThreadOrderingGroup ( | | AvRtJoinThreadOrderingGroup ( |
| _Out_ PHANDLE Context, | | _Out_ PHANDLE Context, |
| _In_ GUID *ThreadOrderingGuid, | | _In_ GUID *ThreadOrderingGuid, |
| _In_ BOOL Before | | _In_ BOOL Before |
| ); | | ); |
| | |
|
| | _Success_(return != FALSE) |
| AVRTAPI | | AVRTAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| AvRtWaitOnThreadOrderingGroup ( | | AvRtWaitOnThreadOrderingGroup ( |
| _In_ HANDLE Context | | _In_ HANDLE Context |
| ); | | ); |
| | |
|
| | _Success_(return != FALSE) |
| AVRTAPI | | AVRTAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| AvRtLeaveThreadOrderingGroup ( | | AvRtLeaveThreadOrderingGroup ( |
| _In_ HANDLE Context | | _In_ HANDLE Context |
| ); | | ); |
| | |
|
| | _Success_(return != FALSE) |
| AVRTAPI | | AVRTAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| AvRtDeleteThreadOrderingGroup ( | | AvRtDeleteThreadOrderingGroup ( |
| _In_ HANDLE Context | | _In_ HANDLE Context |
| ); | | ); |
| | |
|
| | _Success_(return != FALSE) |
| AVRTAPI | | AVRTAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| AvQuerySystemResponsiveness ( | | AvQuerySystemResponsiveness ( |
| _In_ HANDLE AvrtHandle, | | _In_ HANDLE AvrtHandle, |
| _Out_ PULONG SystemResponsivenessValue | | _Out_ PULONG SystemResponsivenessValue |
| ); | | ); |
| | |
| #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ | | #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ |
| #pragma endregion | | #pragma endregion |
| | |
| #ifdef __cplusplus | | #ifdef __cplusplus |
| } | | } |
| #endif | | #endif |
| | |
|
| #endif // _AVRT_ | | #endif // _AVRT_H_ |
| | |
| End of changes. 20 change blocks. |
| 19 lines changed or deleted | | 16 lines changed or added |
|