summaryrefslogtreecommitdiff
path: root/src/inc/tlbutils.h
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2016-11-23 10:09:09 (GMT)
committerJiyoung Yun <jy910.yun@samsung.com>2016-11-23 10:09:09 (GMT)
commit4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch)
tree98110734c91668dfdbb126fcc0e15ddbd93738ca /src/inc/tlbutils.h
parentfa45f57ed55137c75ac870356a1b8f76c84b229c (diff)
downloadcoreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'src/inc/tlbutils.h')
-rw-r--r--src/inc/tlbutils.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/inc/tlbutils.h b/src/inc/tlbutils.h
new file mode 100644
index 0000000..54a2745
--- /dev/null
+++ b/src/inc/tlbutils.h
@@ -0,0 +1,52 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+//
+// Utilities used to help manipulating typelibs
+//
+
+
+#ifndef _TLBUTILS_H
+#define _TLBUTILS_H
+
+#ifndef FEATURE_COMINTEROP_TLB_SUPPORT
+#error FEATURE_COMINTEROP_TLB_SUPPORT is required for this file
+#endif // FEATURE_COMINTEROP_TLB_SUPPORT
+
+#include "windows.h"
+#include "utilcode.h"
+
+struct StdConvertibleItfInfo
+{
+ LPUTF8 m_strMngTypeName;
+ GUID * m_pNativeTypeIID;
+ LPUTF8 m_strCustomMarshalerTypeName;
+ LPUTF8 m_strCookie;
+};
+
+// This method returns the custom marshaler info to convert the native interface
+// to its managed equivalent. Or null if the interface is not a standard convertible interface.
+const StdConvertibleItfInfo *GetConvertionInfoFromNativeIID(REFGUID rGuidNativeItf);
+
+// This function determines the namespace name for a TypeLib.
+HRESULT GetNamespaceNameForTypeLib( // S_OK or error.
+ ITypeLib *pITLB, // [IN] The TypeLib.
+ BSTR *pwzNamespace); // [OUT] Put the namespace name here.
+
+// This function determines the namespace.name for a TypeInfo. If no namespace
+// is provided, it is retrieved from the containing library.
+HRESULT GetManagedNameForTypeInfo( // S_OK or error.
+ ITypeInfo *pITI, // [IN] The TypeInfo.
+ LPCWSTR wzNamespace, // [IN, OPTIONAL] Default namespace name.
+ LPCWSTR wzAsmName, // [IN, OPTIONAL] Assembly name.
+ BSTR *pwzName); // [OUT] Put the name here.
+
+#endif // _TLBUTILS_H
+
+
+
+
+
+
+