BOOL FileExist(LPCTSTR lpszFileName){ HANDLE hFile = CreateFile(lpszFileName, 0, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); if(hFile != INVALID_HANDLE_VALUE) { CloseHandle(hFile); return TRUE; }
return FALSE;}
댓글 없음:
댓글 쓰기