Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
dll.cpp File Reference
#include "dll.h"
#include "DllLoaderContainer.h"
#include "filesystem/SpecialProtocol.h"
#include "utils/StringUtils.h"
#include "utils/log.h"
#include <climits>

Macros

#define DEFAULT_DLLPATH   "special://xbmc/system/players/mplayer/codecs/"
 
#define HIGH_WORD(a)
 
#define LOW_WORD(a)
 
#define DONT_RESOLVE_DLL_REFERENCES   0x00000001
 
#define LOAD_LIBRARY_AS_DATAFILE   0x00000002
 
#define LOAD_WITH_ALTERED_SEARCH_PATH   0x00000008
 
#define LOAD_IGNORE_CODE_AUTHZ_LEVEL   0x00000010
 

Functions

char * getpath (char *buf, const char *full)
 
HMODULE __stdcall dllLoadLibraryExtended (const char *lib_file, const char *sourcedll)
 
HMODULE __stdcall dllLoadLibraryA (const char *file)
 
HMODULE __stdcall dllLoadLibraryExExtended (const char *lpLibFileName, HANDLE hFile, DWORD dwFlags, const char *sourcedll)
 
HMODULE __stdcall dllLoadLibraryExA (const char *lpLibFileName, HANDLE hFile, DWORD dwFlags)
 
int __stdcall dllFreeLibrary (HINSTANCE hLibModule)
 
HMODULE WINAPI dllGetModuleHandleA (const char *lpModuleName)
 

Macro Definition Documentation

◆ DEFAULT_DLLPATH

#define DEFAULT_DLLPATH   "special://xbmc/system/players/mplayer/codecs/"

◆ DONT_RESOLVE_DLL_REFERENCES

#define DONT_RESOLVE_DLL_REFERENCES   0x00000001

◆ HIGH_WORD

#define HIGH_WORD ( a)
Value:
((uintptr_t)(a) >> 16)

◆ LOAD_IGNORE_CODE_AUTHZ_LEVEL

#define LOAD_IGNORE_CODE_AUTHZ_LEVEL   0x00000010

◆ LOAD_LIBRARY_AS_DATAFILE

#define LOAD_LIBRARY_AS_DATAFILE   0x00000002

◆ LOAD_WITH_ALTERED_SEARCH_PATH

#define LOAD_WITH_ALTERED_SEARCH_PATH   0x00000008

◆ LOW_WORD

#define LOW_WORD ( a)
Value:
((unsigned short)(((uintptr_t)(a)) & MAXWORD))
#define MAXWORD
Definition posix/PlatformDefs.h:70

Function Documentation

◆ dllFreeLibrary()

int __stdcall dllFreeLibrary ( HINSTANCE hLibModule)

◆ dllGetModuleHandleA()

HMODULE WINAPI dllGetModuleHandleA ( const char * lpModuleName)

◆ dllLoadLibraryA()

HMODULE __stdcall dllLoadLibraryA ( const char * file)

◆ dllLoadLibraryExA()

HMODULE __stdcall dllLoadLibraryExA ( const char * lpLibFileName,
HANDLE hFile,
DWORD dwFlags )

◆ dllLoadLibraryExExtended()

HMODULE __stdcall dllLoadLibraryExExtended ( const char * lpLibFileName,
HANDLE hFile,
DWORD dwFlags,
const char * sourcedll )

◆ dllLoadLibraryExtended()

HMODULE __stdcall dllLoadLibraryExtended ( const char * lib_file,
const char * sourcedll )

◆ getpath()

char * getpath ( char * buf,
const char * full )