Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryGetExport()

static bool System.Runtime.InteropServices.NativeLibrary.TryGetExport ( IntPtr handle,
string name,
out IntPtr address )
inlinestatic

Definition at line 104 of file NativeLibrary.cs.

105 {
106 if (handle == IntPtr.Zero)
107 {
108 throw new ArgumentNullException("handle");
109 }
110 if (name == null)
111 {
112 throw new ArgumentNullException("name");
113 }
114 address = GetSymbol(handle, name, throwOnError: false);
115 return address != IntPtr.Zero;
116 }
static IntPtr GetSymbol(IntPtr handle, string symbolName, bool throwOnError)

References System.Runtime.InteropServices.NativeLibrary.GetSymbol(), System.handle, and System.IntPtr.Zero.

Referenced by System.Net.Quic.Implementations.MsQuic.Internal.MsQuicApi.MsQuicApi(), and System.DateTime.GetGetSystemTimeAsFileTimeFnPtr().