xj qian
2024-06-27 c844e836a9d9d9af8329fee621b8f15e0429f6dd
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;
    }
};