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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-10 03:07:23 +00:00
|
|
|
static void *resolveByName(const char *name) {
|
2022-06-13 00:20:18 +00:00
|
|
|
if (strcmp(name, "RegOpenKeyExA") == 0) return (void *) advapi32::RegOpenKeyExA;
|
2023-09-10 03:07:23 +00:00
|
|
|
return nullptr;
|
2022-06-13 00:20:18 +00:00
|
|
|
}
|
|
|
|
|
2023-09-10 03:07:23 +00:00
|
|
|
wibo::Module lib_advapi32 = {
|
|
|
|
(const char *[]){
|
|
|
|
"advapi32",
|
|
|
|
"advapi32.dll",
|
|
|
|
nullptr,
|
|
|
|
},
|
|
|
|
resolveByName,
|
|
|
|
nullptr,
|
|
|
|
};
|