This commit is contained in:
Igor Pavlov
2014-11-23 00:00:00 +00:00
committed by Kornel Lesiński
parent 83f8ddcc5b
commit f08f4dcc3c
1158 changed files with 76451 additions and 35082 deletions

8
CPP/7zip/UI/FileManager/PluginLoader.h Executable file → Normal file
View 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);
}