Ignore:
Timestamp:
Sep 28, 2012, 6:59:28 PM (13 years ago)
Author:
dmik
Message:

testapp: Add GetFileInformationByHandle test for directories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testapp/console/file/file.c

    r21999 r22026  
    3939    HANDLE hFile = CreateFile(szFile, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
    4040                              FILE_ATTRIBUTE_NORMAL, NULL);
    41     if (hFile)
     41    if (hFile != INVALID_HANDLE_VALUE)
    4242    {
     43        printf("szFile %s\n", szFile);
    4344        printf("hFile %08lX\n", hFile);
    4445        BY_HANDLE_FILE_INFORMATION info;
     
    5051        }
    5152    }
     53    else
     54    {
     55        printf("Error %d opening file '%s'\n", GetLastError(), szFile);
     56    }
    5257
    5358    return 0;
Note: See TracChangeset for help on using the changeset viewer.