DkmClrModuleInstance.GetMetaDataBytesPtr(UInt32) Method

Definition

Get a pointer to the raw metadata bytes for the given module.

NOTE: This pointer value will become invalid if/when the module is a) unloaded or b) modified. To detect these scenarios: a) Add a data item to the module instance or AppDomain. The pointer will be invalid after the OnClose method is called (when the module instance or AppDomain is unloaded). b) Implement IDkmClrModuleModifiedNotification.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

public:
 IntPtr GetMetaDataBytesPtr([Runtime::InteropServices::Out] System::UInt32 % Size);
public IntPtr GetMetaDataBytesPtr (out uint Size);
member this.GetMetaDataBytesPtr : uint32 -> nativeint
Public Function GetMetaDataBytesPtr (ByRef Size As UInteger) As IntPtr

Parameters

Size
UInt32

[Out] The size of the metadata buffer.

Returns

IntPtr

nativeint

[Out] A pointer to the metadata buffer.

Applies to