Skip to content

Instantly share code, notes, and snippets.

View masterofpwn's full-sized avatar
:shipit:
pwning, what else?

masterofpwn

:shipit:
pwning, what else?
View GitHub Profile
@masterofpwn
masterofpwn / clr_via_native.c
Created February 7, 2020 18:10 — forked from xpn/clr_via_native.c
A quick example showing loading CLR via native code
#include "stdafx.h"
int main()
{
ICLRMetaHost *metaHost = NULL;
IEnumUnknown *runtime = NULL;
ICLRRuntimeInfo *runtimeInfo = NULL;
ICLRRuntimeHost *runtimeHost = NULL;
IUnknown *enumRuntime = NULL;
LPWSTR frameworkName = NULL;