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:
authorCube <alessandro.devito91@gmail.com>2021-01-06 22:32:39 +0300
committerCube <alessandro.devito91@gmail.com>2021-01-06 22:32:39 +0300
commit4da63119a52a6d8ed7c48f40cbc8389faf382ef5 (patch)
treee34372fba602ba6f6ff5c4c10c8d26dfd4a89ae4
parenta478b03cfd79f59debcf57cc34e5f8d3caca96ab (diff)
Added new files to host Process and Wer related APIs. Added NtSetInformationProcess and WerRegisterMemoryBlock APIs
-rw-r--r--peloader/winapi/Process.c23
-rw-r--r--peloader/winapi/Wer.c21
2 files changed, 44 insertions, 0 deletions
diff --git a/peloader/winapi/Process.c b/peloader/winapi/Process.c
new file mode 100644
index 0000000..6f9b2f4
--- /dev/null
+++ b/peloader/winapi/Process.c
@@ -0,0 +1,23 @@
+#include <stdint.h>
+#include <stddef.h>
+#include <stdlib.h>
+#include <stdbool.h>
+#include <search.h>
+
+#include "winnt_types.h"
+#include "pe_linker.h"
+#include "ntoskernel.h"
+#include "log.h"
+#include "winexports.h"
+#include "util.h"
+
+STATIC NTSTATUS WINAPI NtSetInformationProcess(HANDLE ProcessHandle,
+ PROCESS_INFORMATION_CLASS ProcessInformationClass,
+ PVOID ProcessInformation,
+ ULONG ProcessInformationLength)
+{
+ DebugLog("%p", ProcessHandle);
+ return 0;
+}
+
+DECLARE_CRT_EXPORT("NtSetInformationProcess", NtSetInformationProcess);
diff --git a/peloader/winapi/Wer.c b/peloader/winapi/Wer.c
new file mode 100644
index 0000000..e4fb585
--- /dev/null
+++ b/peloader/winapi/Wer.c
@@ -0,0 +1,21 @@
+#include <stdint.h>
+#include <stddef.h>
+#include <stdbool.h>
+#include <search.h>
+#include <assert.h>
+
+#include "winnt_types.h"
+#include "pe_linker.h"
+#include "ntoskernel.h"
+#include "log.h"
+#include "winexports.h"
+#include "util.h"
+
+HRESULT WINAPI WerRegisterMemoryBlock(PVOID pvAddress,
+ DWORD dwSize)
+{
+ DebugLog("%p, %d", pvAddress, dwSize);
+ return 0;
+}
+
+DECLARE_CRT_EXPORT("WerRegisterMemoryBlock", WerRegisterMemoryBlock);