#pragma once #include "win32/win.hpp" class xobject { public: void * GetFuncPtr(const wchar_t* dll, const char * name) { void * fnAttachEvent = nullptr; void * hModule = LoadLibraryW(dll); if(hModule)fnAttachEvent = GetProcAddressW(hModule,name); return fnAttachEvent; } };