wibo/dll/lmgr.cpp

39 lines
675 B
C++
Raw Permalink Normal View History

2022-06-28 23:07:04 +00:00
#include "common.h"
2022-06-29 15:33:41 +00:00
namespace lmgr {
int WIN_ENTRY lp_checkout(int a, int b, const char* c, const char* d, int e, const char* f, int* out) {
2022-06-28 23:07:04 +00:00
DEBUG_LOG("lp_checkout %d %d %s %s %d %s\n", a, b, c, d, e, f);
*out = 1234;
return 0;
}
int WIN_ENTRY lp_checkin() {
2022-06-28 23:07:04 +00:00
DEBUG_LOG("lp_checkin\n");
return 0;
}
}
static void *resolveByOrdinal(uint16_t ordinal) {
2022-06-28 23:07:04 +00:00
switch (ordinal) {
case 189:
2022-06-29 15:33:41 +00:00
return (void*)lmgr::lp_checkin;
2022-06-28 23:07:04 +00:00
case 190:
2022-06-29 15:33:41 +00:00
return (void*)lmgr::lp_checkout;
2022-06-28 23:07:04 +00:00
}
return 0;
}
wibo::Module lib_lmgr = {
(const char *[]){
"lmgr11",
"lmgr11.dll",
"lmgr326b",
"lmgr326b.dll",
"lmgr8c",
"lmgr8c.dll",
nullptr,
},
nullptr,
resolveByOrdinal,
};