2 * System resources loading
4 * Copyright 1995 Alexandre Julliard
13 extern const wrc_resource32_t * const sysres_En_ResTable[];
14 extern const wrc_resource32_t * const sysres_Es_ResTable[];
15 extern const wrc_resource32_t * const sysres_De_ResTable[];
16 extern const wrc_resource32_t * const sysres_No_ResTable[];
17 extern const wrc_resource32_t * const sysres_Fr_ResTable[];
18 extern const wrc_resource32_t * const sysres_Fi_ResTable[];
19 extern const wrc_resource32_t * const sysres_Da_ResTable[];
20 extern const wrc_resource32_t * const sysres_Cz_ResTable[];
21 extern const wrc_resource32_t * const sysres_Eo_ResTable[];
22 extern const wrc_resource32_t * const sysres_It_ResTable[];
23 extern const wrc_resource32_t * const sysres_Ko_ResTable[];
24 extern const wrc_resource32_t * const sysres_Hu_ResTable[];
25 extern const wrc_resource32_t * const sysres_Pl_ResTable[];
26 extern const wrc_resource32_t * const sysres_Po_ResTable[];
27 extern const wrc_resource32_t * const sysres_Sw_ResTable[];
28 extern const wrc_resource32_t * const sysres_Ca_ResTable[];
29 extern const wrc_resource32_t * const sysres_Nl_ResTable[];
31 static const wrc_resource32_t * const * SYSRES_Resources[] =
33 sysres_En_ResTable, /* LANG_En */
34 sysres_Es_ResTable, /* LANG_Es */
35 sysres_De_ResTable, /* LANG_De */
36 sysres_No_ResTable, /* LANG_No */
37 sysres_Fr_ResTable, /* LANG_Fr */
38 sysres_Fi_ResTable, /* LANG_Fi */
39 sysres_Da_ResTable, /* LANG_Da */
40 sysres_Cz_ResTable, /* LANG_Cz */
41 sysres_Eo_ResTable, /* LANG_Eo */
42 sysres_It_ResTable, /* LANG_It */
43 sysres_Ko_ResTable, /* LANG_Ko */
44 sysres_Hu_ResTable, /* LANG_Hu */
45 sysres_Pl_ResTable, /* LANG_Pl */
46 sysres_Po_ResTable, /* LANG_Po */
47 sysres_Sw_ResTable, /* LANG_Sw */
48 sysres_Ca_ResTable, /* LANG_Ca */
49 sysres_Nl_ResTable /* LANG_Nl */
53 /***********************************************************************
54 * SYSRES_GetResourcePtr
56 * Return a pointer to a system resource.
58 LPCVOID SYSRES_GetResPtr( SYSTEM_RESOURCE id )
60 return SYSRES_Resources[Options.language][id]->data;
64 /***********************************************************************
67 * Create a global memory block for a system resource.
69 HGLOBAL16 SYSRES_LoadResource( SYSTEM_RESOURCE id )
71 const wrc_resource32_t *resPtr;
73 resPtr = SYSRES_Resources[Options.language][id];
74 return GLOBAL_CreateBlock( GMEM_FIXED, resPtr->data, resPtr->datasize,
75 GetCurrentPDB(), FALSE, FALSE, TRUE, NULL );
79 /***********************************************************************
82 * Free a global memory block for a system resource.
84 void SYSRES_FreeResource( HGLOBAL16 handle )
86 GLOBAL_FreeBlock( handle );