-
Notifications
You must be signed in to change notification settings - Fork 147
/
Copy pathcortpoolhdr.h
50 lines (36 loc) · 2.14 KB
/
cortpoolhdr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//+------------------------------------------------------------------------
//
// Declare DLL entry points for Cor API to threadpool
//
//-------------------------------------------------------------------------
#ifdef EXPORTING_THREADPOOL_API
#define DllExportOrImport extern "C" __declspec (dllexport)
#else
#define DllExportOrImport extern "C"
#endif
typedef VOID (__stdcall *WAITORTIMERCALLBACK)(PVOID, BOOL);
DllExportOrImport BOOL __cdecl CorRegisterWaitForSingleObject(PHANDLE phNewWaitObject,
HANDLE hWaitObject,
WAITORTIMERCALLBACK Callback,
PVOID Context,
ULONG timeout,
BOOL executeOnlyOnce );
DllExportOrImport BOOL __cdecl CorUnregisterWait(HANDLE hWaitObject,HANDLE CompletionEvent);
DllExportOrImport BOOL __cdecl CorQueueUserWorkItem(LPTHREAD_START_ROUTINE Function,
PVOID Context,
BOOL executeOnlyOnce );
DllExportOrImport BOOL __cdecl CorCreateTimer(PHANDLE phNewTimer,
WAITORTIMERCALLBACK Callback,
PVOID Parameter,
DWORD DueTime,
DWORD Period);
DllExportOrImport BOOL __cdecl CorChangeTimer(HANDLE Timer,
ULONG DueTime,
ULONG Period);
DllExportOrImport BOOL __cdecl CorDeleteTimer(HANDLE Timer,
HANDLE CompletionEvent);
DllExportOrImport VOID __cdecl CorBindIoCompletionCallback(HANDLE fileHandle, LPOVERLAPPED_COMPLETION_ROUTINE callback);
DllExportOrImport VOID __cdecl CorDoDelegateInvocation(int cookie);