Go to the documentation of this file.
22 #ifndef OPGP_LOADFILE_H
23 #define OPGP_LOADFILE_H
59 PBYTE securityDomainAID,
60 DWORD securityDomainAIDLength,
BYTE loadFileDataBlockHash[20],
61 DWORD nonVolatileCodeSpaceLimit,
DWORD volatileDataSpaceLimit,
62 DWORD nonVolatileDataSpaceLimit,
PBYTE loadData,
unsigned long * PDWORD
A Microsoft LPDWORD/Muscle pointer to a DWORD.
Definition: types.h:50
unsigned char * PBYTE
A Microsoft/Muscle LPBYTE, pointer to unsigned char.
Definition: types.h:48
unsigned char BYTE
A Microsoft/Muscle BYTE definition.
Definition: types.h:51
OPGP_NO_API OPGP_ERROR_STATUS read_load_file_data_block_signature(PBYTE buf, PDWORD bufLength, GP211_DAP_BLOCK loadFileDataBlockSignature)
Reads a DAP block and parses it to the buffer buf.
Definition: loadfile.c:749
OPGP_NO_API OPGP_ERROR_STATUS read_executable_load_file_parameters(OPGP_STRING loadFileName, OPGP_LOAD_FILE_PARAMETERS *loadFileParams)
Can read CAP and IJC files (concatenated extracted CAP files).
Definition: loadfile.c:405
Definition: globalplatform.h:339
unsigned long DWORD
A Microsoft/Muscle DWORD definition.
Definition: types.h:52
OPGP_NO_API OPGP_ERROR_STATUS read_executable_load_file_parameters_from_buffer(PBYTE loadFileBuf, DWORD loadFileBufSize, OPGP_LOAD_FILE_PARAMETERS *loadFileParams)
Reads Executable Load File parameters from a buffer.
Definition: loadfile.c:500
OPGP_NO_API OPGP_ERROR_STATUS handle_load_file(OPGP_CSTRING fileName, PBYTE loadFileBuf, PDWORD loadFileBufSize)
Handles a CAP or IJC file and copies the Executable Load File contents.
Definition: loadfile.c:42
const typedef char * OPGP_CSTRING
A Microsoft/Muscle LPCTSTR.
Definition: types.h:47
OPGP_NO_API OPGP_ERROR_STATUS get_load_data(PBYTE executableLoadFileAID, DWORD executableLoadFileAIDLength, PBYTE securityDomainAID, DWORD securityDomainAIDLength, BYTE loadFileDataBlockHash[20], DWORD nonVolatileCodeSpaceLimit, DWORD volatileDataSpaceLimit, DWORD nonVolatileDataSpaceLimit, PBYTE loadData, PDWORD loadDataLength)
Gets the data for a GP211_install_for_load() command.
Definition: loadfile.c:656
char * OPGP_STRING
A Microsoft/Muscle LPTSTR.
Definition: types.h:46
Definition: security.h:269
OPGP_NO_API OPGP_ERROR_STATUS extract_cap_file(OPGP_CSTRING fileName, PBYTE loadFileBuf, PDWORD loadFileBufSize)
Extracts a CAP file.
Definition: loadfile.c:121
OPGP_NO_API OPGP_ERROR_STATUS cap_to_ijc(OPGP_CSTRING capFileName, OPGP_STRING ijcFileName)
Converts a CAP file to an IJC file (Executable Load File).
Definition: loadfile.c:445