wibo/user32.cpp

15 lines
385 B
C++
Raw Normal View History

2022-06-28 21:08:23 +00:00
#include "common.h"
namespace user32 {
int WIN_FUNC LoadStringA(void* hInstance, unsigned int uID, char* lpBuffer, int cchBufferMax) {
printf("LoadStringA %p %d %d\n", hInstance, uID, cchBufferMax);
2022-06-28 22:28:09 +00:00
strcpy(lpBuffer, "hello");
return 5;
2022-06-28 21:08:23 +00:00
}
}
void *wibo::resolveUser32(const char *name) {
if (strcmp(name, "LoadStringA") == 0) return (void *) user32::LoadStringA;
return 0;
}