Sebastian Kuschel reports that pfd_closing can be called for a socket
[u/mdw/putty] / windows / windefs.c
CommitLineData
5a9eb105 1/*
2 * windefs.c: default settings that are specific to Windows.
3 */
4
5a9eb105 5#include "putty.h"
6
7440fd44 7#include <commctrl.h>
8
ae62eaeb 9FontSpec *platform_default_fontspec(const char *name)
9a30e26b 10{
ae62eaeb 11 if (!strcmp(name, "Font"))
12 return fontspec_new("Courier New", 0, 10, ANSI_CHARSET);
13 else
14 return fontspec_new("", 0, 0, 0);
9a30e26b 15}
16
962468d4 17Filename *platform_default_filename(const char *name)
9a30e26b 18{
9a30e26b 19 if (!strcmp(name, "LogFileName"))
962468d4 20 return filename_from_str("putty.log");
9a30e26b 21 else
962468d4 22 return filename_from_str("");
9a30e26b 23}
24
c85623f9 25char *platform_default_s(const char *name)
5a9eb105 26{
7374c779 27 if (!strcmp(name, "SerialLine"))
28 return dupstr("COM1");
5a9eb105 29 return NULL;
30}
31
c85623f9 32int platform_default_i(const char *name, int def)
5a9eb105 33{
5a9eb105 34 return def;
35}