Go to the source code of this file.
◆ cgetchar()
Definition at line 243 of file util.c.
244{
248
249 do
250 {
254 {
257 {
259 {
261 break;
262 }
263 }
267 {
268
269 }
270 else
271 {
272 break;
273 }
274 }
275 }
277
278#ifndef _UNICODE
280#else
282#endif
283}
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
union _KEY_EVENT_RECORD::@3530 uChar
#define LEFT_CTRL_PRESSED
#define RIGHT_CTRL_PRESSED
◆ ConFormatMessage()
Definition at line 216 of file util.c.
217{
220
225 MessageId,
227 &arg_ptr);
229
232}
#define STRING_CONSOLE_ERROR
void ConResPrintf(FILE *fp, UINT nID,...)
INT ConMsgPrintfV(IN PCON_STREAM Stream, IN DWORD dwFlags, IN LPCVOID lpSource OPTIONAL, IN DWORD dwMessageId, IN DWORD dwLanguageId, IN va_list *Arguments OPTIONAL)
#define LANG_USER_DEFAULT
#define FORMAT_MESSAGE_FROM_SYSTEM
◆ ConInString()
Definition at line 173 of file util.c.
174{
178
181
182#ifdef _UNICODE
184#else
185 pBuf = lpInput;
186#endif
190
192
194
195#ifdef _UNICODE
198#endif
199 for (
p = lpInput; *
p;
p++)
200 {
202 {
204 break;
205 }
206 }
207
209}
#define ReadFile(a, b, c, d, e)
#define MultiByteToWideChar
static DWORD DWORD * dwLength
BOOL WINAPI GetConsoleMode(HANDLE hConsoleHandle, LPDWORD lpMode)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode)
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleCP(void)
#define ENABLE_ECHO_INPUT
#define ENABLE_LINE_INPUT
#define ENABLE_PROCESSED_INPUT
Referenced by FilePromptYNA().
◆ ConOutChar()
Definition at line 234 of file util.c.
235{
237}
INT __stdcall ConWrite(IN PCON_STREAM Stream, IN PCTCH szStr, IN DWORD len)
Referenced by Batch(), CheckCtrlBreak(), ClearCommandLine(), cmd_pause(), cmd_set(), cmd_ver(), CommandEcho(), DumpCommand(), EchoCommand(), ExecuteCommandWithEcho(), Initialize(), PagePrompt(), PrintCommandList(), PrintPrompt(), ReadCommand(), and ReadLine().
◆ FilePromptYNA()
Definition at line 111 of file util.c.
112{
114
115
116
119
120 if (resID != 0)
122
123
125
128 ;
129
131
138#if 0
139 else if (*
p ==
_T(
'\03'))
141#endif
142
144
145
146#if 0
149
150 do
151 {
153 cKey =
_totlower(ir.Event.KeyEvent.uChar.AsciiChar);
155 cKey = 0;
156 }
157 while ((ir.Event.KeyEvent.wVirtualKeyCode ==
VK_SHIFT) ||
158 (ir.Event.KeyEvent.wVirtualKeyCode ==
VK_MENU) ||
159 (ir.Event.KeyEvent.wVirtualKeyCode ==
VK_CONTROL));
160
163
164 if ((ir.Event.KeyEvent.wVirtualKeyCode ==
VK_ESCAPE) ||
165 ((ir.Event.KeyEvent.wVirtualKeyCode ==
_T(
'C')) &&
168
170#endif
171}
#define STRING_COPY_OPTION
VOID ConInString(LPTSTR lpInput, DWORD dwLength)
VOID AddBreakHandler(VOID)
VOID RemoveBreakHandler(VOID)
VOID ConInKey(PINPUT_RECORD lpBuffer)
#define ConOutResPrintf(uID,...)
◆ GetPathCase()
Definition at line 53 of file util.c.
54{
59
62
64 {
66 {
69 continue;
70 }
71
72
73
74 if (
_tcslen(TempPath) == 2 && TempPath[1] ==
_T(
':'))
75 {
79 }
80 else
81 {
84 {
86 return;
87 }
89 _tcscat(OutPath, FindFileData.cFileName);
92 }
93 }
94}
PRTL_UNICODE_STRING_BUFFER Path
#define INVALID_HANDLE_VALUE
BOOL WINAPI FindClose(HANDLE hFindFile)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by replace(), and SetRootPath().
◆ GetRootPath()
Definition at line 21 of file util.c.
25{
26 if (InPath[0] && InPath[1] ==
_T(
':'))
27 {
29
30 if ((InPath[0] >=
_T(
'0')) && (InPath[0] <=
_T(
'9')))
31 {
32 t = (InPath[0] -
_T(
'0')) + 28;
33 }
34 else if ((InPath[0] >=
_T(
'a')) && (InPath[0] <=
_T(
'z')))
35 {
36 t = (InPath[0] -
_T(
'a')) + 1;
37 }
38 else if ((InPath[0] >=
_T(
'A')) && (InPath[0] <=
_T(
'Z')))
39 {
40 t = (InPath[0] -
_T(
'A')) + 1;
41 }
42
44 }
45
46
48}
#define GetCurrentDirectory
◆ IsExistingDirectory()
Definition at line 105 of file util.c.
106{
109}
#define FILE_ATTRIBUTE_DIRECTORY
#define INVALID_FILE_ATTRIBUTES
#define GetFileAttributes
◆ IsExistingFile()
◆ msg_pause()
Definition at line 211 of file util.c.
212{
214}
#define STRING_ERROR_D_PAUSEMSG
#define ConOutResPuts(uID)
◆ bCtrlBreak