Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Cracked5pider committed Sep 8, 2022
0 parents commit 5757607
Show file tree
Hide file tree
Showing 47 changed files with 71,609 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.associations": {
"kaynldr.h": "c"
}
}
23 changes: 23 additions & 0 deletions InvokeAssembly/CMakeLists.txt
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} )
27 changes: 27 additions & 0 deletions InvokeAssembly/include/DModule.h
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();
Loading

0 comments on commit 5757607

Please sign in to comment.