summaryrefslogtreecommitdiff
path: root/src/vm/nativelibrarynative.h
blob: e22031cad65679ac3295a7f482c1258b70096d91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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__