#ifndef HEADER_CURL_TOOL_DOSWIN_H1#define HEADER_CURL_TOOL_DOSWIN_H2/***************************************************************************3* _ _ ____ _4* Project ___| | | | _ \| |5* / __| | | | |_) | |6* | (__| |_| | _ <| |___7* \___|\___/|_| \_\_____|8*9* Copyright (C) Daniel Stenberg, <[email protected]>, et al.10*11* This software is licensed as described in the file COPYING, which12* you should have received as part of this distribution. The terms13* are also available at https://curl.se/docs/copyright.html.14*15* You may opt to use, copy, modify, merge, publish, distribute and/or sell16* copies of the Software, and permit persons to whom the Software is17* furnished to do so, under the terms of the COPYING file.18*19* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY20* KIND, either express or implied.21*22* SPDX-License-Identifier: curl23*24***************************************************************************/25#include "tool_setup.h"2627#if defined(_WIN32) || defined(MSDOS)2829#define SANITIZE_ALLOW_PATH (1<<1) /* Allow path separators and colons */30#define SANITIZE_ALLOW_RESERVED (1<<2) /* Allow reserved device names */3132typedef enum {33SANITIZE_ERR_OK = 0, /* 0 - OK */34SANITIZE_ERR_INVALID_PATH, /* 1 - the path is invalid */35SANITIZE_ERR_BAD_ARGUMENT, /* 2 - bad function parameter */36SANITIZE_ERR_OUT_OF_MEMORY, /* 3 - out of memory */37SANITIZE_ERR_LAST /* never use! */38} SANITIZEcode;3940SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name,41int flags);4243#ifdef __DJGPP__44char **__crt0_glob_function(char *arg);45#endif4647#ifdef _WIN324849#if !defined(CURL_WINDOWS_UWP) && !defined(UNDER_CE) && \50!defined(CURL_DISABLE_CA_SEARCH) && !defined(CURL_CA_SEARCH_SAFE)51CURLcode FindWin32CACert(struct OperationConfig *config,52const TCHAR *bundle_file);53#endif54struct curl_slist *GetLoadedModulePaths(void);55CURLcode win32_init(void);5657#endif /* _WIN32 */5859#endif /* _WIN32 || MSDOS */6061#endif /* HEADER_CURL_TOOL_DOSWIN_H */626364