wibo/dll/mscoree.cpp

24 lines
384 B
C++
Raw Permalink Normal View History

#include "common.h"
namespace mscoree {
void WIN_FUNC CorExitProcess(int exitCode) {
exit(exitCode);
}
}
static void *resolveByName(const char *name) {
if (strcmp(name, "CorExitProcess") == 0) return (void *) mscoree::CorExitProcess;
return nullptr;
}
wibo::Module lib_mscoree = {
(const char *[]){
"mscoree",
"mscoree.dll",
nullptr,
},
resolveByName,
nullptr,
};