You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
519 B
28 lines
519 B
#pragma once
|
|
|
|
#include "SevenZipException.h"
|
|
#include "CompressionFormat.h"
|
|
|
|
namespace SevenZip
|
|
{
|
|
class SevenZipLibrary
|
|
{
|
|
private:
|
|
|
|
typedef UINT32 (WINAPI * CreateObjectFunc)( const GUID* clsID, const GUID* interfaceID, void** outObject );
|
|
|
|
HMODULE m_dll;
|
|
CreateObjectFunc m_func;
|
|
|
|
public:
|
|
|
|
SevenZipLibrary();
|
|
~SevenZipLibrary();
|
|
|
|
bool Load();
|
|
bool Load( const TString& libraryPath );
|
|
void Free();
|
|
|
|
bool CreateObject( const GUID& clsID, const GUID& interfaceID, void** outObject ) const;
|
|
};
|
|
}
|
|
|