| 1340 | */ |
| 1341 | #ifdef TEST_MODULE |
| 1342 | static DWORD |
| 1343 | GetPrivateProfileSectionNames(LPSTR buffer, DWORD size, LPCSTR filename) |
| 1344 | { |
| 1345 | DWORD ret = 0; |
| 1346 | |
| 1347 | if (trace(2)) |
| 1348 | htrc("GPPSN: filename=%s\n", filename); |
| 1349 | |
| 1350 | EnterCriticalSection(&PROFILE_CritSect); |
| 1351 | |
| 1352 | if (PROFILE_Open(filename)) |
| 1353 | ret = PROFILE_GetSectionNames(buffer, size); |
| 1354 | |
| 1355 | LeaveCriticalSection(&PROFILE_CritSect); |
| 1356 | return ret; |
| 1357 | } // end of GetPrivateProfileSectionNames |
| 1358 | |
| 1359 | |
| 1360 | /************************************************************************ |
no test coverage detected