wibo/advapi32.cpp
Simon Lindholm 82c05df74e more
2022-06-29 01:07:04 +02:00

15 lines
431 B
C++

#include "common.h"
namespace advapi32 {
unsigned int WIN_FUNC RegOpenKeyExA(void *hKey, const char *lpSubKey, unsigned int ulOptions, void *samDesired, void **phkResult) {
DEBUG_LOG("RegOpenKeyExA(key=%p, subkey=%s, ...)\n", hKey, lpSubKey);
return 1; // screw them for now
}
}
void *wibo::resolveAdvApi32(const char *name) {
if (strcmp(name, "RegOpenKeyExA") == 0) return (void *) advapi32::RegOpenKeyExA;
return 0;
}