Changeset 22026 for trunk/testapp/console/file/file.c
- Timestamp:
- Sep 28, 2012, 6:59:28 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testapp/console/file/file.c
r21999 r22026 39 39 HANDLE hFile = CreateFile(szFile, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 40 40 FILE_ATTRIBUTE_NORMAL, NULL); 41 if (hFile )41 if (hFile != INVALID_HANDLE_VALUE) 42 42 { 43 printf("szFile %s\n", szFile); 43 44 printf("hFile %08lX\n", hFile); 44 45 BY_HANDLE_FILE_INFORMATION info; … … 50 51 } 51 52 } 53 else 54 { 55 printf("Error %d opening file '%s'\n", GetLastError(), szFile); 56 } 52 57 53 58 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.