c
if (nXDst == 0 || nYDst == 0 || dstBytesPerPixel == 0 || nDstStep == 0) {
    // Handle error: invalid input values
    return FALSE;
}
const BYTE* pDstStart = &pDstData[nXDst * dstBytesPerPixel + nYDst * nDstStep];
