2023-09-12 22:44:56 +09:00
|
|
|
#include "common.h"
|
2025-10-05 17:46:16 -06:00
|
|
|
#include "context.h"
|
|
|
|
|
#include "modules.h"
|
2023-09-12 22:44:56 +09:00
|
|
|
|
|
|
|
|
namespace mscoree {
|
2025-09-29 20:07:19 -06:00
|
|
|
|
|
|
|
|
void WIN_FUNC CorExitProcess(int exitCode) {
|
2025-10-05 14:32:06 -06:00
|
|
|
HOST_CONTEXT_GUARD();
|
2025-09-29 20:07:19 -06:00
|
|
|
DEBUG_LOG("CorExitProcess(%i)\n", exitCode);
|
|
|
|
|
exit(exitCode);
|
2023-09-12 22:44:56 +09:00
|
|
|
}
|
|
|
|
|
|
2025-09-29 20:07:19 -06:00
|
|
|
} // namespace mscoree
|
2023-09-12 22:44:56 +09:00
|
|
|
|
|
|
|
|
static void *resolveByName(const char *name) {
|
2025-09-29 20:07:19 -06:00
|
|
|
if (strcmp(name, "CorExitProcess") == 0)
|
|
|
|
|
return (void *)mscoree::CorExitProcess;
|
2023-09-12 22:44:56 +09:00
|
|
|
return nullptr;
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-07 14:12:07 -06:00
|
|
|
extern const wibo::ModuleStub lib_mscoree = {
|
2023-09-12 22:44:56 +09:00
|
|
|
(const char *[]){
|
|
|
|
|
"mscoree",
|
|
|
|
|
nullptr,
|
|
|
|
|
},
|
|
|
|
|
resolveByName,
|
|
|
|
|
nullptr,
|
|
|
|
|
};
|