Alexander Scott-Johns alexander.scott.johns@googlemail.com writes:
- if (file == INVALID_HANDLE_VALUE)
- {
if (GetLastError() == ERROR_SHARING_VIOLATION)
{
WCHAR title[128];
LoadStringW(WININET_hModule, IDS_CACHE_IN_USE, message, sizeof(message)/sizeof(*message));
LoadStringW(WININET_hModule, IDS_WARNING, title, sizeof(title)/sizeof(*title));
MessageBoxW(NULL, message, title, MB_OK);
}
I don't think you want to show message boxes, particularly not for such harmless errors.