From e1542ed05f3f8c273206bb9ead8d39fea87430bb Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 7 Feb 2024 17:19:24 -0500 Subject: Add ImportTypeLibraryTypeByGuid API and dialog --- binaryview.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'binaryview.cpp') diff --git a/binaryview.cpp b/binaryview.cpp index 600b46ac..aa275d4a 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -4161,6 +4161,15 @@ Ref BinaryView::ImportTypeLibraryObject(Ref& lib, const Quali } +Ref BinaryView::ImportTypeLibraryTypeByGuid(const string& guid) +{ + BNType* result = BNBinaryViewImportTypeLibraryTypeByGuid(m_object, guid.c_str()); + if (!result) + return nullptr; + return new Type(result); +} + + void BinaryView::ExportTypeToTypeLibrary(TypeLibrary* lib, const QualifiedName& name, Type* type) { BNQualifiedName apiName = name.GetAPIObject(); -- cgit v1.3.1