summaryrefslogtreecommitdiffstats
path: root/xbmc/cores/DllLoader/dll.h
blob: 5a0b6057ceb5f8b93d6e93c66e90571b60716091 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 *  Copyright (C) 2005-2018 Team Kodi
 *  This file is part of Kodi - https://kodi.tv
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 *  See LICENSES/README.md for more information.
 */

#pragma once

#include "PlatformDefs.h"

extern "C" HMODULE __stdcall dllLoadLibraryExtended(const char* file, const char* sourcedll);
extern "C" HMODULE __stdcall dllLoadLibraryA(const char* file);
extern "C" HMODULE __stdcall dllLoadLibraryExExtended(const char* lpLibFileName, HANDLE hFile, DWORD dwFlags, const char* sourcedll);
extern "C" HMODULE __stdcall dllLoadLibraryExA(const char* lpLibFileName, HANDLE hFile, DWORD dwFlags);
extern "C" int __stdcall dllFreeLibrary(HINSTANCE hLibModule);
extern "C" intptr_t (*__stdcall dllGetProcAddress(HMODULE hModule, const char* function))(void);
extern "C" HMODULE WINAPI dllGetModuleHandleA(const char* lpModuleName);