wibo/dll/advapi32.cpp

24 lines
561 B
C++
Raw Normal View History

2022-06-13 00:20:18 +00:00
#include "common.h"
namespace advapi32 {
unsigned int WIN_FUNC RegOpenKeyExA(void *hKey, const char *lpSubKey, unsigned int ulOptions, void *samDesired, void **phkResult) {
2022-06-28 23:07:04 +00:00
DEBUG_LOG("RegOpenKeyExA(key=%p, subkey=%s, ...)\n", hKey, lpSubKey);
2022-06-13 00:20:18 +00:00
return 1; // screw them for now
}
}
static void *resolveByName(const char *name) {
2022-06-13 00:20:18 +00:00
if (strcmp(name, "RegOpenKeyExA") == 0) return (void *) advapi32::RegOpenKeyExA;
return nullptr;
2022-06-13 00:20:18 +00:00
}
wibo::Module lib_advapi32 = {
(const char *[]){
"advapi32",
"advapi32.dll",
nullptr,
},
resolveByName,
nullptr,
};