xj qian
2024-06-26 93698754484a8228a4b861c5d2a062870c68fe5f
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;
    }
};