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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-10 03:07:23 +00:00
|
|
|
static void *resolveByName(const char *name) {
|
2022-06-28 21:08:23 +00:00
|
|
|
if (strcmp(name, "GetFileVersionInfoSizeA") == 0) return (void *) version::GetFileVersionInfoSizeA;
|
2023-09-10 03:07:23 +00:00
|
|
|
return nullptr;
|
2022-06-28 21:08:23 +00:00
|
|
|
}
|
2023-09-10 03:07:23 +00:00
|
|
|
|
|
|
|
wibo::Module lib_version = {
|
|
|
|
(const char *[]){
|
|
|
|
"version",
|
|
|
|
"version.dll",
|
|
|
|
nullptr,
|
|
|
|
},
|
|
|
|
resolveByName,
|
|
|
|
nullptr,
|
|
|
|
};
|