wibo/dll/version.cpp

26 lines
549 B
C++
Raw Normal View History

2022-06-28 21:08:23 +00:00
#include "common.h"
namespace version {
unsigned int WIN_FUNC GetFileVersionInfoSizeA(const char* lptstrFilename, unsigned int* outZero) {
2022-06-28 23:07:04 +00:00
DEBUG_LOG("GetFileVersionInfoSizeA %s\n", lptstrFilename);
2022-06-28 21:08:23 +00:00
*outZero = 0;
wibo::lastError = 0;
return 0;
}
}
static void *resolveByName(const char *name) {
2022-06-28 21:08:23 +00:00
if (strcmp(name, "GetFileVersionInfoSizeA") == 0) return (void *) version::GetFileVersionInfoSizeA;
return nullptr;
2022-06-28 21:08:23 +00:00
}
wibo::Module lib_version = {
(const char *[]){
"version",
"version.dll",
nullptr,
},
resolveByName,
nullptr,
};