1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00
putty-source/windows/utils
Simon Tatham f8e1a2b3a9 Windows: rewrite request_file() to support Unicode.
This centralises into windows/utils/request_file.c all of the code
that deals with the OPENFILENAME structure, and decides centrally
whether to use the Unicode or ANSI version of that structure and its
associated APIs. Now the output of any request_file function is our
own 'Filename' abstract type, instead of a raw char or wchar_t buffer,
which means that _any_ file dialog can produce a full Unicode filename
if the user wants to select one - and yet, in the w32old build, they
all uniformly fall back to the ANSI version, which is the only one
that works at all pre-NT.

A side effect: I've turned the FILTER_FOO_FILES family of definitions
from platform-specific #defines into a reasonably sensible enum. This
didn't affect the GTK side of things , because I'd never got round to
figuring out how to filter a file dialog down to a subset of files in
GTK, and still haven't. So I've just moved the existing FIXME comment
from platform.h to dialog.c.
2024-12-13 19:38:48 +00:00
..
agent_mutex_name.c Windows Pageant: make atomic client/server decision. 2022-01-03 12:21:39 +00:00
agent_named_pipe_name.c Move agent_named_pipe_name into its own source file. 2022-01-03 12:12:05 +00:00
arm_arch_queries.c Add some missing #includes. 2022-09-03 11:59:12 +01:00
aux_match_opt.c New abstraction for command-line arguments. 2024-09-26 11:30:07 +01:00
centre_window.c Windows: utility function to centre a window. 2022-04-25 14:10:16 +01:00
cmdline_arg.c Add and use cmdline_arg_to_filename(). 2024-09-26 11:30:07 +01:00
cryptoapi.c Merge connshare socket naming fix from 'pre-0.75'. 2021-05-02 08:19:28 +01:00
defaults.c Add platform-independent fontspec_new_default() function. 2023-02-18 14:10:21 +00:00
dll_hijacking_protection.c
dputs.c Windows dputs: use WriteFile to avoid stdio buffering. 2021-09-30 19:00:11 +01:00
escape_registry_key.c
filename.c Windows: add filename_to_wstr(). 2024-12-13 19:24:41 +00:00
fontspec.c Add platform-independent fontspec_new_default() function. 2023-02-18 14:10:21 +00:00
get_system_dir.c Factor out Windows utility function get_system_dir(). 2021-05-08 17:18:17 +01:00
get_username.c
getdlgitemtext_alloc.c New Windows utility function: GetDlgItemTextW_alloc. 2023-05-29 15:31:43 +01:00
gui-timing.c Windows: move GUI timer handling into a utils module. 2022-09-13 11:26:57 +01:00
interprocess_mutex.c Windows Pageant: turn 'has_security' into a global function. 2022-03-12 21:05:07 +00:00
is_console_handle.c
load_system32_dll.c Factor out Windows utility function get_system_dir(). 2021-05-08 17:18:17 +01:00
ltime.c
make_spr_sw_abort_winerror.c Richer data type for interactive prompt results. 2021-12-28 18:08:31 +00:00
makedlgitemborderless.c
message_box.c dup_mb_to_wc, dup_wc_to_mb: remove the 'flags' parameter. 2024-09-24 09:42:58 +01:00
minefield.c Add some missing #includes. 2022-09-03 11:59:12 +01:00
open_for_write_would_lose_data.c Some support for wide-character filenames in Windows. 2023-05-29 15:41:50 +01:00
pgp_fingerprints_msgbox.c Fix double line-wrapping in the -pgpfp message box. 2024-09-26 11:30:07 +01:00
platform_get_x_display.c Add some missing #includes. 2022-09-03 11:59:12 +01:00
registry.c windows/utils/registry.c: allow opening reg keys RO. 2022-09-14 16:09:37 +01:00
request_file.c Windows: rewrite request_file() to support Unicode. 2024-12-13 19:38:48 +00:00
screenshot.c Add and use cmdline_arg_to_filename(). 2024-09-26 11:30:07 +01:00
security.c Formatting: standardise on "func(\n", not "func\n(". 2022-08-03 20:48:46 +01:00
shinydialogbox.c Thread-local support for more Windows toolchains. 2022-09-02 16:11:05 +01:00
split_into_argv_w.c Add a Unicode version of split_into_argv(). 2023-03-16 17:33:49 +00:00
split_into_argv.c Document the split_into_argv functions better. 2024-09-26 11:30:07 +01:00
strtoumax.c
version.c Make init_winver() idempotent. 2022-03-12 18:51:21 +00:00
win_strerror.c