ReactOS 0.4.16-dev-306-g647d351
replace.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Replace Command
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: Main header
5 * COPYRIGHT: Copyright Samuel Erdtman (samuel@erdtman.se)
6 * COPYRIGHT: Copyright 2024 Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
7 */
8
9#pragma once
10
11#define WIN32_LEAN_AND_MEAN
12#include <windows.h>
13#include <tchar.h>
14#include <stdlib.h>
15#include <conutils.h>
16#include "resource.h"
17
18#define RC_STRING_MAX_SIZE 3072
19
20#define PROMPT_NO 0
21#define PROMPT_YES 1
22#define PROMPT_ALL 2
23#define PROMPT_BREAK 3
24
25/* 16k = max buffer size */
26#define BUFF_SIZE 16384
27
28#define ConOutResPuts(uID) \
29 ConResPuts(StdOut, (uID))
30
31#define ConOutResPrintf(uID, ...) \
32 ConResPrintf(StdOut, (uID), ##__VA_ARGS__)
33
34#define ConOutFormatMessage(MessageId, ...) \
35 ConFormatMessage(StdOut, (MessageId), ##__VA_ARGS__)
36
37/* util.c */
41VOID GetPathCase(TCHAR * Path, TCHAR * OutPath);
47
48INT
50 IN LPCTSTR InPath,
51 OUT LPTSTR OutPath,
52 IN INT size);
53
54extern BOOL bCtrlBreak;
PRTL_UNICODE_STRING_BUFFER Path
#define __cdecl
Definition: accygwin.h:79
static DWORD DWORD * dwLength
Definition: fusion.c:86
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLsizeiptr size
Definition: glext.h:5919
const GLubyte * c
Definition: glext.h:8905
static IStream Stream
Definition: htmldoc.c:1115
unsigned int UINT
Definition: ndis.h:50
VOID ConOutChar(TCHAR c)
Definition: util.c:233
VOID __cdecl ConFormatMessage(PCON_STREAM Stream, DWORD MessageId,...)
Definition: util.c:215
BOOL IsExistingDirectory(IN LPCTSTR pszPath)
Definition: util.c:104
BOOL IsExistingFile(IN LPCTSTR pszPath)
Definition: util.c:98
INT GetRootPath(IN LPCTSTR InPath, OUT LPTSTR OutPath, IN INT size)
Definition: util.c:21
TCHAR cgetchar(VOID)
Definition: util.c:242
VOID msg_pause(VOID)
Definition: util.c:210
VOID ConInString(LPTSTR lpInput, DWORD dwLength)
Definition: util.c:172
INT FilePromptYNA(UINT resID)
Definition: util.c:110
BOOL bCtrlBreak
Definition: util.c:11
VOID GetPathCase(TCHAR *Path, TCHAR *OutPath)
Definition: util.c:53
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
char TCHAR
Definition: xmlstorage.h:189
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
CHAR * LPTSTR
Definition: xmlstorage.h:192