#include "putty.h"
#include "psftp.h"
+#include "ssh.h"
#include "int64.h"
char *get_ttymode(void *frontend, const char *mode) { return NULL; }
return ret;
}
+void platform_get_x11_auth(struct X11Display *display, const Config *cfg)
+{
+ /* Do nothing, therefore no auth. */
+}
+const int platform_uses_x11_unix_by_default = TRUE;
+
/* ----------------------------------------------------------------------
* File access abstraction.
*/
int read_from_file(RFile *f, void *buffer, int length)
{
- int ret, read;
+ int ret;
+ DWORD read;
ret = ReadFile(f->h, buffer, length, &read, NULL);
if (!ret)
return -1; /* error */
int write_to_file(WFile *f, void *buffer, int length)
{
- int ret, written;
+ int ret;
+ DWORD written;
ret = WriteFile(f->h, buffer, length, &written, NULL);
if (!ret)
return -1; /* error */
else
otherindex = -1;
- n = MsgWaitForMultipleObjects(nallhandles, handles, FALSE, ticks,
- QS_POSTMESSAGE);
+ n = WaitForMultipleObjects(nallhandles, handles, FALSE, ticks);
if ((unsigned)(n - WAIT_OBJECT_0) < (unsigned)nhandles) {
handle_got_event(handles[n - WAIT_OBJECT_0]);