globalplatform
dyn_generic.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2005-2026, Karsten Ohme
3  * This file is part of GlobalPlatform.
4  *
5  * GlobalPlatform is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * GlobalPlatform is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with GlobalPlatform. If not, see <https://www.gnu.org/licenses/>.
17  *
18  * In addition, as a special exception, the copyright holders give
19  * permission to link the code of portions of this program with the
20  * OpenSSL library under certain conditions as described in each
21  * individual source file, and distribute linked combinations
22  * including the two.
23  * You must obey the GNU Lesser General Public License in all respects
24  * for all of the code used other than OpenSSL. If you modify
25  * file(s) with this exception, you may extend this exception to your
26  * version of the file(s), but you are not obligated to do so. If you
27  * do not wish to do so, delete this exception statement from your
28  * version.
29  */
30 
31 /*
32  * Based on a implementation from the Muscle MUSCLE SmartCard Development ( http://www.linuxnet.com ) by David Corcoran <corcoran@linuxnet.com>
33  */
34 
40 #ifndef __dyn_generic_h__
41 #define __dyn_generic_h__
42 
43 #ifdef __cplusplus
44 extern "C"
45 {
46 #endif
47 
48 #include "globalplatform/unicode.h"
49 #include "globalplatform/types.h"
50 #include "globalplatform/error.h"
51 #include "globalplatform/library.h"
52 
54 OPGP_NO_API
55 OPGP_ERROR_STATUS DYN_LoadLibrary(PVOID *libraryHandle, LPCTSTR libraryName, LPCTSTR version);
56 
58 OPGP_NO_API
60 
62 OPGP_NO_API
63 OPGP_ERROR_STATUS DYN_GetAddress(PVOID libraryHandle, PVOID *functionHandle, LPCTSTR functionName);
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif
OPGP_NO_API OPGP_ERROR_STATUS DYN_GetAddress(PVOID libraryHandle, PVOID *functionHandle, LPCTSTR functionName)
Gets the address of a function in a library.
OPGP_NO_API OPGP_ERROR_STATUS DYN_LoadLibrary(PVOID *libraryHandle, LPCTSTR libraryName, LPCTSTR version)
Loads a library.
OPGP_NO_API OPGP_ERROR_STATUS DYN_CloseLibrary(PVOID *libraryHandle)
Unloads a library.
Definition: error.h:58
void * PVOID
Pointer definition.
Definition: types.h:52