1 #include <msp/core/systemerror.h>
3 #include "handle_private.h"
8 void sys_set_blocking(Handle &, bool)
12 unsigned sys_read(Handle &handle, char *buf, unsigned size)
15 if(ReadFile(*handle, buf, size, &ret, 0)==0)
16 throw system_error("ReadFile");
21 unsigned sys_write(Handle &handle, const char *buf, unsigned size)
24 if(WriteFile(*handle, buf, size, &ret, 0)==0)
25 throw system_error("WriteFile");
30 void sys_close(Handle &handle)
35 *handle = INVALID_HANDLE_VALUE;