-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5757607
Showing
47 changed files
with
71,609 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"files.associations": { | ||
"kaynldr.h": "c" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
cmake_minimum_required( VERSION 3.19 ) | ||
project( InvokeAssembly C ) | ||
|
||
set( PROJECT_NAME InvokeAssembly ) | ||
|
||
# set compiler settings | ||
set( CMAKE_C_STANDARD 11 ) | ||
set( CMAKE_C_COMPILER x86_64-w64-mingw32-gcc ) | ||
|
||
# adding demon sources | ||
include_directories( include ) | ||
|
||
set( COMMON_SOURCE | ||
src/Win32.c | ||
src/KaynLdr.c | ||
src/DllMain.c | ||
src/Parser.c | ||
src/InvokeAssembly.c | ||
) | ||
|
||
|
||
# add compiled demons | ||
add_executable( ${PROJECT_NAME} ${COMMON_SOURCE} ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
#include <windows.h> | ||
#include <KaynLdr.h> | ||
#include <stdio.h> | ||
|
||
typedef struct _INSTANCE { | ||
|
||
struct { | ||
|
||
WIN32_FUNC( printf ) | ||
WINBASEAPI HRESULT ( WINAPI *CLRCreateInstance ) ( REFCLSID clsid, REFIID riid, LPVOID* ppInterface ); | ||
|
||
} Win32; | ||
|
||
struct { | ||
|
||
PVOID Msvcrt; | ||
PVOID Mscoree; | ||
|
||
} Modules; | ||
|
||
} INSTANCE, *PINSTANCE; | ||
|
||
extern INSTANCE Instance; | ||
|
||
VOID ModuleInit(); | ||
VOID ModuleMain(); |
Oops, something went wrong.