Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit de27abb

Browse files
yizhang82janvorli
authored andcommitted
Add Marshal.GetExceptionPointers (#11125)
* Add Marshal.GetExceptionPointers * Remove SecurityCritical
1 parent 9304d24 commit de27abb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,9 @@ public static void PrelinkAll(Type c)
823823
}
824824
}
825825

826+
[MethodImplAttribute(MethodImplOptions.InternalCall)]
827+
public static extern /* struct _EXCEPTION_POINTERS* */ IntPtr GetExceptionPointers();
828+
826829
[MethodImplAttribute(MethodImplOptions.InternalCall)]
827830
public static extern int GetExceptionCode();
828831

src/vm/ecalllist.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,7 @@ FCFuncStart(gInteropMarshalFuncs)
946946
FCFuncElement("DestroyStructure", MarshalNative::DestroyStructure)
947947
FCFuncElement("UnsafeAddrOfPinnedArrayElement", MarshalNative::FCUnsafeAddrOfPinnedArrayElement)
948948
FCFuncElement("GetExceptionCode", ExceptionNative::GetExceptionCode)
949+
FCFuncElement("GetExceptionPointers", ExceptionNative::GetExceptionPointers)
949950
QCFuncElement("GetHINSTANCE", COMModule::GetHINSTANCE)
950951

951952
FCFuncElement("OffsetOfHelper", MarshalNative::OffsetOfHelper)

0 commit comments

Comments
 (0)