/*************************************************************************** * Copyright (c) 2024 Microsoft Corporation * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ /**************************************************************************/ /** */ /** GUIX Component */ /** */ /** Binres Loader Management (Binres Loader) */ /** */ /**************************************************************************/ #define GX_SOURCE_CODE /* Include necessary system files. */ #include "gx_api.h" #include "gx_binres_loader.h" #include "gx_system.h" /**************************************************************************/ /* */ /* FUNCTION RELEASE */ /* */ /* _gxe_binres_language_table_load PORTABLE C */ /* 6.1 */ /* AUTHOR */ /* */ /* Kenneth Maxwell, Microsoft Corporation */ /* */ /* DESCRIPTION */ /* */ /* This function checks for errors in binres language table load */ /* function. */ /* */ /* INPUT */ /* */ /* root_address Root address of binary */ /* resource data */ /* returned_language_table Pointer to loaded language */ /* table */ /* */ /* OUTPUT */ /* */ /* status Completion status */ /* */ /* CALLS */ /* */ /* _gx_binres_language_table_load The actual binres language */ /* table load function */ /* */ /* CALLED BY */ /* */ /* Application Code */ /* */ /* RELEASE HISTORY */ /* */ /* DATE NAME DESCRIPTION */ /* */ /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */ /* 09-30-2020 Kenneth Maxwell Modified comment(s), */ /* resulting in version 6.1 */ /* */ /**************************************************************************/ #ifdef GX_BINARY_RESOURCE_SUPPORT #ifdef GX_ENABLE_DEPRECATED_STRING_API UINT _gxe_binres_language_table_load(GX_UBYTE *root_address, GX_UBYTE ****returned_language_table) { UINT status; if ((root_address == GX_NULL) || (returned_language_table == GX_NULL)) { return GX_PTR_ERROR; } if ((_gx_system_memory_allocator == GX_NULL) || (_gx_system_memory_free == GX_NULL)) { return GX_SYSTEM_MEMORY_ERROR; } status = _gx_binres_language_table_load(root_address, returned_language_table); /* Return completion status code. */ return(status); } #endif #endif /**************************************************************************/ /* */ /* FUNCTION RELEASE */ /* */ /* _gxe_binres_language_table_load_ext PORTABLE C */ /* 6.1 */ /* AUTHOR */ /* */ /* Kenneth Maxwell, Microsoft Corporation */ /* */ /* DESCRIPTION */ /* */ /* This function checks for errors in binres language table load */ /* function. */ /* */ /* INPUT */ /* */ /* root_address Root address of binary */ /* resource data */ /* returned_language_table Pointer to loaded language */ /* table */ /* */ /* OUTPUT */ /* */ /* status Completion status */ /* */ /* CALLS */ /* */ /* _gx_binres_language_table_load_ext The actual binres language */ /* table load function */ /* */ /* CALLED BY */ /* */ /* Application Code */ /* */ /* RELEASE HISTORY */ /* */ /* DATE NAME DESCRIPTION */ /* */ /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */ /* 09-30-2020 Kenneth Maxwell Modified comment(s), */ /* resulting in version 6.1 */ /* */ /**************************************************************************/ #ifdef GX_BINARY_RESOURCE_SUPPORT UINT _gxe_binres_language_table_load_ext(GX_UBYTE *root_address, GX_STRING ***returned_language_table) { UINT status; if ((root_address == GX_NULL) || (returned_language_table == GX_NULL)) { return GX_PTR_ERROR; } if ((_gx_system_memory_allocator == GX_NULL) || (_gx_system_memory_free == GX_NULL)) { return GX_SYSTEM_MEMORY_ERROR; } status = _gx_binres_language_table_load_ext(root_address, returned_language_table); /* Return completion status code. */ return(status); } #endif