Changeset 1879 for trunk/src/kernel32/resource.cpp
- Timestamp:
- Nov 29, 1999, 9:43:02 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/resource.cpp
r1872 r1879 1 /* $Id: resource.cpp,v 1.1 0 1999-11-29 00:04:05 birdExp $ */1 /* $Id: resource.cpp,v 1.11 1999-11-29 20:43:01 sandervl Exp $ */ 2 2 3 3 /* … … 163 163 } 164 164 165 /***************************************************************************** 166 * Name : BOOL WIN32API EnumResourceLanguagesA 167 * Purpose : The EnumResourceLanguagesA function searches a module for each 168 * resource of the specified type and name and passes the language 169 * of each resource it locates to a defined callback function 170 * Parameters: HMODULE hModule resource-module handle 171 * LPCTSTR lpType pointer to resource type 172 * LPCTSTR lpName, pointer to resource name 173 * ENUMRESLANGPROC lpEnumFunc pointer to callback function 174 * LONG lParam application-defined parameter 175 * Variables : 176 * Result : If the function succeeds, the return value is nonzero. 177 * If the function fails, the return value is zero. 178 * Remark : The EnumResourceLanguages function continues to enumerate 179 * resource languages until the callback function returns FALSE 180 * or all resource languages have been enumerated. 181 * Status : UNTESTED STUB 182 * 183 * Author : Markus Montkowski [Tha, 1998/05/21 17:46] 184 *****************************************************************************/ 185 186 BOOL WIN32API EnumResourceLanguagesA(HMODULE hModule, LPCSTR lpType, 187 LPCSTR lpName, 188 ENUMRESLANGPROCA lpEnumFunc, 189 LONG lParam) 190 { 191 192 dprintf(("KERNEL32:EnumResourceLanguagesA(%08x,%08x,%08x,%08x,%08x)\n not implemented", 193 hModule, lpType, lpName, lpEnumFunc, lParam 194 )); 195 196 return (FALSE); 197 } 198 199 /***************************************************************************** 200 * Name : BOOL WIN32API EnumResourceLanguagesW 201 * Purpose : The EnumResourceLanguagesW function searches a module for each 202 * resource of the specified type and name and passes the language 203 * of each resource it locates to a defined callback function 204 * Parameters: HMODULE hModule resource-module handle 205 * LPCTSTR lpType pointer to resource type 206 * LPCTSTR lpName, pointer to resource name 207 * ENUMRESLANGPROC lpEnumFunc pointer to callback function 208 * LONG lParam application-defined parameter 209 * Variables : 210 * Result : If the function succeeds, the return value is nonzero. 211 * If the function fails, the return value is zero. 212 * Remark : The EnumResourceLanguages function continues to enumerate 213 * resource languages until the callback function returns FALSE 214 * or all resource languages have been enumerated. 215 * Status : UNTESTED STUB 216 * 217 * Author : Markus Montkowski [Tha, 1998/05/21 17:46] 218 *****************************************************************************/ 219 220 BOOL WIN32API EnumResourceLanguagesW(HMODULE hModule, LPCWSTR lpType, 221 LPCWSTR lpName, 222 ENUMRESLANGPROCW lpEnumFunc, 223 LONG lParam) 224 { 225 226 dprintf(("KERNEL32:EnumResourceLanguagesW(%08x,%08x,%08x,%08x,%08x)\n not implemented", 227 hModule, lpType, lpName, lpEnumFunc, lParam 228 )); 229 230 return (FALSE); 231 } 232 233 234 235 /***************************************************************************** 236 * Name : BOOL WIN32API EnumResourceTypesA 237 * Purpose : The EnumResourceTypesA function searches a module for resources 238 * and passes each resource type it finds to an application-defined 239 * callback function 240 * Parameters: HMODULE hModule, resource-module handle 241 * ENUMRESTYPEPROC lpEnumFunc pointer to callback function 242 * LONG lParam application-defined parameter 243 * Variables : 244 * Result : If the function succeeds, the return value is nonzero. 245 * If the function fails, the return value is zero 246 * Remark : 247 * Status : UNTESTED STUB 248 * 249 * Author : Markus Montkowski [Tha, 1998/05/21 17:46] 250 *****************************************************************************/ 251 252 BOOL WIN32API EnumResourceTypesA(HMODULE hModule, 253 ENUMRESTYPEPROCA lpEnumFunc, LONG lParam) 254 { 255 Win32ImageBase *pModule; 256 257 dprintf(("KERNEL32:EnumResourceTypesA(%08x,%08x,%08x)\n", 258 hModule, lpEnumFunc, lParam)); 259 260 pModule = Win32ImageBase::findModule(hModule); 261 if (pModule == NULL) 262 { 263 SetLastError(ERROR_RESOURCE_DATA_NOT_FOUND); 264 return FALSE; 265 } 266 267 return pModule->enumResourceTypesA(hModule, lpEnumFunc, lParam); 268 } 269 270 /***************************************************************************** 271 * Name : BOOL WIN32API EnumResourceTypesW 272 * Purpose : The EnumResourceTypesW function searches a module for resources 273 * and passes each resource type it finds to an application-defined 274 * callback function 275 * Parameters: HMODULE hModule, resource-module handle 276 * ENUMRESTYPEPROC lpEnumFunc pointer to callback function 277 * LONG lParam application-defined parameter 278 * Variables : 279 * Result : If the function succeeds, the return value is nonzero. 280 * If the function fails, the return value is zero 281 * Remark : 282 * Status : UNTESTED STUB 283 * 284 * Author : Markus Montkowski [Tha, 1998/05/21 17:46] 285 *****************************************************************************/ 286 287 BOOL WIN32API EnumResourceTypesW(HMODULE hModule, 288 ENUMRESTYPEPROCW lpEnumFunc, LONG lParam) 289 { 290 Win32ImageBase *pModule; 291 292 dprintf(("KERNEL32:EnumResourceTypesW(%08x,%08x,%08x)\n", 293 hModule, lpEnumFunc, lParam)); 294 295 pModule = Win32ImageBase::findModule(hModule); 296 if (pModule == NULL) 297 { 298 SetLastError(ERROR_RESOURCE_DATA_NOT_FOUND); 299 return FALSE; 300 } 301 302 return pModule->enumResourceTypesW(hModule, lpEnumFunc, lParam); 303 }
Note:
See TracChangeset
for help on using the changeset viewer.