wibo/dll/version.cpp

28 lines
579 B
C++
Raw Permalink 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);
2023-10-22 08:11:00 +00:00
if (outZero != NULL) {
*outZero = 0;
}
2022-06-28 21:08:23 +00:00
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,
};