summaryrefslogtreecommitdiff
path: root/src/vm/nativelibrarynative.h
diff options
context:
space:
mode:
authorSwaroop Sridhar <Swaroop.Sridhar@microsoft.com>2019-01-05 16:40:59 -0800
committerJan Kotas <jkotas@microsoft.com>2019-01-05 16:40:59 -0800
commit110835b1b818b333f27ab76db3f223a03027698a (patch)
tree72b080215d0ade7e583ba2e1560e21548d54fedb /src/vm/nativelibrarynative.h
parentdcf9f36c21022b8fce374559ec5fea8d11a0852b (diff)
downloadcoreclr-110835b1b818b333f27ab76db3f223a03027698a.tar.gz
coreclr-110835b1b818b333f27ab76db3f223a03027698a.tar.bz2
coreclr-110835b1b818b333f27ab76db3f223a03027698a.zip
Move Native Library APIs to NativeLibrary class (#21821)
Move APIs that manipulate native libraries from System.Runtime.InteropServices.Marshal class to the new System.Runtime.InteropServices.NativeLibrary class. In API review: #32015, The LoadLibrary APIs were originally Approved to live in System.Runtime.InteropServices.Marshal class. However, recently the decision was changed such that the APIs are in a new NativeLibrary class.
Diffstat (limited to 'src/vm/nativelibrarynative.h')
-rw-r--r--src/vm/nativelibrarynative.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/vm/nativelibrarynative.h b/src/vm/nativelibrarynative.h
new file mode 100644
index 0000000000..e22031cad6
--- /dev/null
+++ b/src/vm/nativelibrarynative.h
@@ -0,0 +1,26 @@
+// 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.
+//
+// File: NativeLibraryNative.h
+//
+//
+// QCall's for the NativeLibrary class
+//
+
+#ifndef __NATIVELIBRARYNATIVE_H__
+#define __NATIVELIBRARYNATIVE_H__
+
+class NativeLibraryNative
+{
+public:
+ static INT_PTR QCALLTYPE LoadFromPath(LPCWSTR path, BOOL throwOnError);
+ static INT_PTR QCALLTYPE LoadByName(LPCWSTR name, QCall::AssemblyHandle callingAssembly,
+ BOOL hasDllImportSearchPathFlag, DWORD dllImportSearchPathFlag,
+ BOOL throwOnError);
+ static void QCALLTYPE FreeLib(INT_PTR handle);
+ static INT_PTR QCALLTYPE GetSymbol(INT_PTR handle, LPCWSTR symbolName, BOOL throwOnError);
+
+};
+
+#endif // __NATIVELIBRARYNATIVE_H__