blob: ee7c8b6cc85fc7a56961975c696fbef94549a016 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// 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.
//
// WinRtHelpers.h
//
//
// Helpers to fetch the first WinRT Type def from metadata import
//
// ======================================================================================
#pragma once
#ifdef FEATURE_COMINTEROP
// --------------------------------------------------------------------------------------
// Return the first public WinRT type's namespace and typename - the names have the lifetime of the MetaData scope.
HRESULT GetFirstWinRTTypeDef(
IMDInternalImport * pMDInternalImport,
LPCSTR * pszNameSpace, // Tight to the lifetime of pssFakeNameSpaceAllocationBuffer when the WinMD file is empty
LPCSTR * pszTypeName,
LPCWSTR wszAssemblyPath, // Used for creating fake binding type name in case the WinMD file is empty
SString * pssFakeNameSpaceAllocationBuffer); // Used as allocation buffer for fake namespace
HRESULT GetBindableWinRTName(
IMDInternalImport * pMDInternalImport,
IAssemblyName * pIAssemblyName);
#endif //FEATURE_COMINTEROP
|