/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Installer/Bootstrapper/ComModule.h
43 строки
1 KB
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
#pragma once #include <string> #include <vector> #include "format_string.h" struct ComModule { private: typedef HRESULT (STDAPICALLTYPE *PFNREGISTERTYPELIB)(ITypeLib *, LPCOLESTR /* const szFullPath */, LPCOLESTR /* const szHelpDir */); static PFNREGISTERTYPELIB registerTypeLibFunc; static bool regPerUser; public: ComModule(); static bool Init(bool perUser); struct Interface { Interface(const char* name, const GUID& guid, bool isConnectionPoint); Interface(const char* name, const char* guid, bool isConnectionPoint):name(name),guid(guid),isConnectionPoint(isConnectionPoint) {} bool isConnectionPoint; std::string name; std::string guid; }; typedef std::vector<Interface> Interfaces; std::string appName; std::wstring fileName; std::wstring clsid; Interfaces interfaces; std::string typeLib; std::string typeLibVersion; std::wstring appID; std::string progID; std::string versionIndependentProgID; std::wstring name; std::wstring moduleName; bool isDll; bool is64Bits; void registerModule(CRegKey &classesKey, std::wstring versionDir, simple_logger<wchar_t> &logger); void unregisterModule(HKEY ckey, bool isPerUser, simple_logger<wchar_t> &logger); };