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

github.com/taviso/loadlibrary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--peloader/winapi/ProcessThreads.c12
-rw-r--r--peloader/winapi/SystemTime.c6
2 files changed, 18 insertions, 0 deletions
diff --git a/peloader/winapi/ProcessThreads.c b/peloader/winapi/ProcessThreads.c
index 594f405..726b33c 100644
--- a/peloader/winapi/ProcessThreads.c
+++ b/peloader/winapi/ProcessThreads.c
@@ -107,11 +107,21 @@ static VOID WINAPI AcquireSRWLockExclusive(PVOID SRWLock)
DebugLog("%p", SRWLock);
}
+static VOID WINAPI AcquireSRWLockShared(PVOID SRWLock)
+{
+ DebugLog("%p", SRWLock);
+}
+
static VOID WINAPI ReleaseSRWLockExclusive(PVOID SRWLock)
{
DebugLog("%p", SRWLock);
}
+static VOID WINAPI ReleaseSRWLockShared(PVOID SRWLock)
+{
+ DebugLog("%p", SRWLock);
+}
+
static HANDLE WINAPI CreateMutexW(PVOID lpMutexAttributes, BOOL bInitialOwner, PWCHAR lpName)
{
DebugLog("%p, %u, %p");
@@ -184,8 +194,10 @@ DECLARE_CRT_EXPORT("InterlockedIncrement", InterlockedIncrement);
DECLARE_CRT_EXPORT("InterlockedCompareExchange", InterlockedCompareExchange);
DECLARE_CRT_EXPORT("CreateSemaphoreW", CreateSemaphoreW);
DECLARE_CRT_EXPORT("AcquireSRWLockExclusive", AcquireSRWLockExclusive);
+DECLARE_CRT_EXPORT("AcquireSRWLockShared", AcquireSRWLockShared);
DECLARE_CRT_EXPORT("InitializeSRWLock", InitializeSRWLock);
DECLARE_CRT_EXPORT("ReleaseSRWLockExclusive", ReleaseSRWLockExclusive);
+DECLARE_CRT_EXPORT("ReleaseSRWLockShared", ReleaseSRWLockShared);
DECLARE_CRT_EXPORT("SetThreadpoolTimer", SetThreadpoolTimer);
DECLARE_CRT_EXPORT("WaitForThreadpoolTimerCallbacks", WaitForThreadpoolTimerCallbacks);
DECLARE_CRT_EXPORT("GetCurrentThreadId", GetCurrentThreadId);
diff --git a/peloader/winapi/SystemTime.c b/peloader/winapi/SystemTime.c
index 0795e76..d8f7dbc 100644
--- a/peloader/winapi/SystemTime.c
+++ b/peloader/winapi/SystemTime.c
@@ -62,6 +62,11 @@ STATIC DWORD WINAPI GetTickCount(VOID)
return 0;
}
+STATIC ULONGLONG WINAPI GetTickCount64(VOID)
+{
+ return 0;
+}
+
STATIC BOOL WINAPI QueryPerformanceFrequency(PVOID lpFrequency)
{
SetLastError(0);
@@ -89,5 +94,6 @@ DECLARE_CRT_EXPORT("GetSystemTimeAsFileTime", GetSystemTimeAsFileTime);
DECLARE_CRT_EXPORT("QueryPerformanceCounter", QueryPerformanceCounter);
DECLARE_CRT_EXPORT("QueryPerformanceFrequency", QueryPerformanceFrequency);
DECLARE_CRT_EXPORT("GetTickCount", GetTickCount);
+DECLARE_CRT_EXPORT("GetTickCount64", GetTickCount64);
DECLARE_CRT_EXPORT("GetProcessTimes", GetProcessTimes);
DECLARE_CRT_EXPORT("DosDateTimeToFileTime", DosDateTimeToFileTime);