mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-24 17:34:13 +08:00
12 lines
303 B
C++
12 lines
303 B
C++
|
#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());
|
||
|
}
|