Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
dll.cpp File Reference
#include "dll.h"
#include "DllLoader.h"
#include "DllLoaderContainer.h"
#include "dll_tracker.h"
#include "dll_util.h"
#include <climits>
#include "filesystem/SpecialProtocol.h"
#include "utils/log.h"

Macros

#define DEFAULT_DLLPATH   "special://xbmc/system/players/mplayer/codecs/"
 
#define HIGH_WORD(a)   ((uintptr_t)(a) >> 16)
 
#define LOW_WORD(a)   ((unsigned short)(((uintptr_t)(a)) & MAXWORD))
 
#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)
 

Variables

intptr_t(*)(void__stdcall (HMODULE hModule, const char *function)
 

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)    ((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)    ((unsigned short)(((uintptr_t)(a)) & MAXWORD))

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 
)

Variable Documentation

◆ __stdcall

intptr_t(*)(void) __stdcall(HMODULE hModule, const char *function) ( HMODULE  hModule,
const char *  function 
)