mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 13:15:04 -06:00
9.34
This commit is contained in:
committed by
Kornel Lesiński
parent
83f8ddcc5b
commit
f08f4dcc3c
8
CPP/7zip/UI/FileManager/PluginLoader.h
Executable file → Normal file
8
CPP/7zip/UI/FileManager/PluginLoader.h
Executable file → Normal file
@@ -3,19 +3,17 @@
|
||||
#ifndef __PLUGIN_LOADER_H
|
||||
#define __PLUGIN_LOADER_H
|
||||
|
||||
#include "Windows/DLL.h"
|
||||
#include "../../../Windows/DLL.h"
|
||||
|
||||
#include "IFolder.h"
|
||||
|
||||
typedef UINT32 (WINAPI * CreateObjectPointer)(const GUID *clsID, const GUID *interfaceID, void **outObject);
|
||||
|
||||
class CPluginLibrary: public NWindows::NDLL::CLibrary
|
||||
{
|
||||
public:
|
||||
HRESULT CreateManager(REFGUID clsID, IFolderManager **manager)
|
||||
{
|
||||
CreateObjectPointer createObject = (CreateObjectPointer)GetProc("CreateObject");
|
||||
if (createObject == NULL)
|
||||
Func_CreateObject createObject = (Func_CreateObject)GetProc("CreateObject");
|
||||
if (!createObject)
|
||||
return GetLastError();
|
||||
return createObject(&clsID, &IID_IFolderManager, (void **)manager);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user