1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 
5 using System;
6 using System.Runtime.InteropServices;
7 
8 internal static partial class Interop
9 {
10     internal static partial class mincore
11     {
12         [DllImport("api-ms-win-core-threadpool-l1-2-0.dll")]
CreateThreadpoolTimer(IntPtr pfnti, IntPtr pv, IntPtr pcbe)13         internal extern static IntPtr CreateThreadpoolTimer(IntPtr pfnti, IntPtr pv, IntPtr pcbe);
14 
15         [DllImport("api-ms-win-core-threadpool-l1-2-0.dll")]
SetThreadpoolTimer(IntPtr pti, long* pftDueTime, uint msPeriod, uint msWindowLength)16         internal extern static unsafe IntPtr SetThreadpoolTimer(IntPtr pti, long* pftDueTime, uint msPeriod, uint msWindowLength);
17 
TimerCallback(IntPtr Instance, IntPtr Context, IntPtr Timer)18         internal delegate void TimerCallback(IntPtr Instance, IntPtr Context, IntPtr Timer);
19     }
20 }
21