LiFan
2024-06-25 dd1ed0f649448d9e9a82406e23c095d5518933a7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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;
    }
};