2018-12-29 00:57:06 +08:00
|
|
|
#include "common.h"
|
|
|
|
#include <filesystem>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
wchar_t path[MAX_PATH] = {};
|
|
|
|
GetModuleFileNameW(NULL, path, MAX_PATH);
|
|
|
|
*(wcsrchr(path, L'\\') + 1) = 0;
|
|
|
|
for (auto file : std::filesystem::directory_iterator(path))
|
|
|
|
if (file.path().extension() == L".dll") LoadLibraryW(file.path().c_str());
|
2019-02-11 10:46:39 +08:00
|
|
|
Sleep(10000);
|
2018-12-29 00:57:06 +08:00
|
|
|
}
|