diff options
Diffstat (limited to 'src/md/runtime/mdinternaldisp.h')
-rw-r--r-- | src/md/runtime/mdinternaldisp.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/md/runtime/mdinternaldisp.h b/src/md/runtime/mdinternaldisp.h new file mode 100644 index 0000000000..689e1f498e --- /dev/null +++ b/src/md/runtime/mdinternaldisp.h @@ -0,0 +1,44 @@ +// 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. +//***************************************************************************** +// MDInternalDispenser.h +// + +// +// Contains utility code for MD directory +// +//***************************************************************************** +#ifndef __MDInternalDispenser__h__ +#define __MDInternalDispenser__h__ + +#ifdef FEATURE_METADATA_INTERNAL_APIS + +#include "mdinternalro.h" + + +enum MDFileFormat +{ + MDFormat_ReadOnly = 0, + MDFormat_ReadWrite = 1, + MDFormat_ICR = 2, + MDFormat_Invalid = 3 +}; + + +HRESULT CheckFileFormat(LPVOID pData, ULONG cbData, MDFileFormat *pFormat); +STDAPI GetMDInternalInterface( + LPVOID pData, // [IN] Buffer with the metadata. + ULONG cbData, // [IN] Size of the data in the buffer. + DWORD flags, // [IN] MDInternal_OpenForRead or MDInternal_OpenForENC + REFIID riid, // [in] The interface desired. + void **ppIUnk); // [out] Return interface on success. + +HRESULT GetAssemblyMDInternalImportHelper(HCORMODULE hModule, + REFIID riid, + MDInternalImportFlags flags, + IUnknown **ppIUnk); + +#endif //FEATURE_METADATA_INTERNAL_APIS + +#endif // __MDInternalDispenser__h__ |