mirror of
https://github.com/encounter/wibo.git
synced 2026-03-30 11:42:31 -07:00
24 lines
384 B
C++
24 lines
384 B
C++
|
|
#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,
|
||
|
|
};
|