Windows NT ( 2)



         

- 9


GetOverlappedResult(hSrcFile, &ovRead,

&dwBytesRead, FALSE);

//

if(fConversionType == OEM_TO_ANSI)

OemToCharBuff(cBuf, cBuf, dwBytesRead);

else if(fConversionType == ANSI_TO_OEM)

CharToOemBuff(cBuf, cBuf, dwBytesRead);

// ,

//

//

ovRead.Offset += dwBytesRead;

//

bResult = WriteFile(hDstFile, cBuf, dwBytesRead,

&dwBytesWritten, &ovWrite);

// ,

if(!bResult)

{

switch (dwError = GetLastError())

{

//

case ERROR_IO_PENDING:

{

// ,

//

//

//

// IdleWork();

//

//

GetOverlappedResult(hDstFile, &ovWrite,

&dwBytesWritten, TRUE);

if(!bResult)

{

switch (dwError = GetLastError())

{

default:

break;

}

}

}

default:

break;

}

}

// ,

//

//

ovWrite.Offset += dwBytesWritten;

}

}

// -----------------------------------------------------

// Oem2Char

// -----------------------------------------------------

//

//

// -----------------------------------------------------

#elif FILEOP == MEMORYMAPPED_IO