Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Threads.c « winapi « peloader - github.com/taviso/loadlibrary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 97f34c589912f07f1ab36853d0d5136c65020633 (plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <stdbool.h>
#include <search.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>

#include "winnt_types.h"
#include "pe_linker.h"
#include "ntoskernel.h"
#include "log.h"
#include "winexports.h"
#include "util.h"
#include "winstrings.h"

static __stdcall PVOID CreateThreadPoolWait(PVOID pwa)
{
    DebugLog("");
    return (PVOID) 0x41414141;
}

static __stdcall PVOID CreateThreadPool(PVOID reserved)
{
    DebugLog("");
    return (PVOID) 0x41414141;
}

static __stdcall PVOID CreateThreadpoolTimer(PVOID pfnti, PVOID pv, PVOID pcbe)
{
    DebugLog("");
    return (PVOID) 0x41414141;
}

static __stdcall PVOID CreateThreadpoolWork(PVOID pfnwk, PVOID pv, PVOID pcbe)
{
    DebugLog("");
    return (PVOID) 0x41414141;
}

static __stdcall void CloseThreadpoolTimer(PVOID pti)
{
    DebugLog("%p", pti);
}

static __stdcall PVOID CreateThreadpoolWait() { DebugLog(""); return NULL; }
static __stdcall PVOID SetThreadpoolWait() { DebugLog(""); return NULL; }
static __stdcall PVOID SubmitThreadpoolWork() { DebugLog(""); return NULL; }
static __stdcall PVOID CancelThreadpoolIo() { DebugLog(""); return NULL; }
static __stdcall PVOID CloseThreadpool() { DebugLog(""); return NULL; }
static __stdcall PVOID CloseThreadpoolIo() { DebugLog(""); return NULL; }
static __stdcall PVOID CloseThreadpoolWait() { DebugLog(""); return NULL; }
static __stdcall PVOID CloseThreadpoolWork() { DebugLog(""); return NULL; }
static __stdcall PVOID CreateThreadpool() { DebugLog(""); return NULL; }
static __stdcall PVOID CreateThreadpoolIo() { DebugLog(""); return NULL; }
static __stdcall PVOID SetThreadpoolThreadMaximum() { DebugLog(""); return NULL; }
static __stdcall PVOID SetThreadpoolThreadMinimum() { DebugLog(""); return NULL; }
static __stdcall PVOID StartThreadpoolIo() { DebugLog(""); return NULL; }
static __stdcall PVOID WaitForThreadpoolIoCallbacks() { DebugLog(""); return NULL; }
static __stdcall PVOID WaitForThreadpoolWaitCallbacks() { DebugLog(""); return NULL; }
static __stdcall PVOID WaitForThreadpoolWorkCallbacks() { DebugLog(""); return NULL; }


DECLARE_CRT_EXPORT("CreateThreadPoolWait", CreateThreadPoolWait);
DECLARE_CRT_EXPORT("CreateThreadPool", CreateThreadPool);

DECLARE_CRT_EXPORT("CreateThreadpoolTimer", CreateThreadpoolTimer);
DECLARE_CRT_EXPORT("CloseThreadpoolTimer", CloseThreadpoolTimer);
DECLARE_CRT_EXPORT("CreateThreadpoolWait", CreateThreadpoolWait);
DECLARE_CRT_EXPORT("SetThreadpoolWait", SetThreadpoolWait);
DECLARE_CRT_EXPORT("CloseThreadpoolWait", CloseThreadpoolWait);
DECLARE_CRT_EXPORT("CreateThreadpoolWork", CreateThreadpoolWork);
DECLARE_CRT_EXPORT("SubmitThreadpoolWork", SubmitThreadpoolWork);
DECLARE_CRT_EXPORT("CancelThreadpoolIo", CancelThreadpoolIo);
DECLARE_CRT_EXPORT("CloseThreadpool", CloseThreadpool);
DECLARE_CRT_EXPORT("CloseThreadpoolIo", CloseThreadpoolIo);
DECLARE_CRT_EXPORT("CloseThreadpoolWork", CloseThreadpoolWork);
DECLARE_CRT_EXPORT("CreateThreadpool", CreateThreadpool);
DECLARE_CRT_EXPORT("CreateThreadpoolIo", CreateThreadpoolIo);
DECLARE_CRT_EXPORT("SetThreadpoolThreadMaximum", SetThreadpoolThreadMaximum);
DECLARE_CRT_EXPORT("SetThreadpoolThreadMinimum", SetThreadpoolThreadMinimum);
DECLARE_CRT_EXPORT("StartThreadpoolIo", StartThreadpoolIo);
DECLARE_CRT_EXPORT("WaitForThreadpoolIoCallbacks", WaitForThreadpoolIoCallbacks);
DECLARE_CRT_EXPORT("WaitForThreadpoolWaitCallbacks", WaitForThreadpoolWaitCallbacks);
DECLARE_CRT_EXPORT("WaitForThreadpoolWorkCallbacks", WaitForThreadpoolWorkCallbacks);