                       &nNumberOfBytesWritten, &ovlOverlapped) {
             throw IOError(windows: GetLastError(), reason: "WriteFile")
         }
-        return .processed(CInt(nNumberOfBytesWritten))
+        return .processed(size_t(nNumberOfBytesWritten))
     }
 
     @discardableResult

internal typealias sockaddr_un = SOCKADDR_UN
internal typealias sockaddr_storage = SOCKADDR_STORAGE

extension Shutdown {
    internal var cValue: CInt {
        switch self {

    }

    @inline(never)
    static func sendfile(socket s: NIOBSDSocket.Handle, fd: CInt, offset: off_t,
                         len nNumberOfBytesToWrite: off_t)
            throws -> IOResult<Int> {
        let hFile: HANDLE = HANDLE(bitPattern: ucrt._get_osfhandle(fd))!
        if hFile == INVALID_HANDLE_VALUE {
            throw IOError(errnoCode: EBADF, reason: "_get_osfhandle")
