ReactOS
0.4.16-dev-751-g45ed1a9
Functions
delay.c File Reference
#include "
precomp.h
"
Include dependency graph for delay.c:
Go to the source code of this file.
Functions
INT
CommandDelay
(
LPTSTR
param
)
Function Documentation
◆
CommandDelay()
INT
CommandDelay
(
LPTSTR
param
)
Definition at line
17
of file
delay.c
.
18
{
19
DWORD
val
;
20
DWORD
mul
=1000;
21
22
if
(
_tcsncmp
(
param
,
_T
(
"/?"
), 2) == 0)
23
{
24
ConOutResPaging
(
TRUE
,
STRING_DELAY_HELP
);
25
return
0;
26
}
27
28
nErrorLevel
= 0;
29
30
if
(*
param
==0)
31
{
32
error_req_param_missing
();
33
return
1;
34
}
35
36
if
(
_tcsnicmp
(
param
,
_T
(
"/m"
),2) == 0)
37
{
38
mul
= 1;
39
param
+= 2;
40
}
41
42
val
=
_ttoi
(
param
);
43
Sleep
(
val
*
mul
);
44
45
return
0;
46
}
nErrorLevel
INT nErrorLevel
Definition:
cmd.c:158
error_req_param_missing
VOID error_req_param_missing(VOID)
Definition:
error.c:110
ConOutResPaging
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
Definition:
console.c:178
STRING_DELAY_HELP
#define STRING_DELAY_HELP
Definition:
resource.h:105
TRUE
#define TRUE
Definition:
types.h:120
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
val
GLuint GLfloat * val
Definition:
glext.h:7180
param
GLfloat param
Definition:
glext.h:5796
_tcsncmp
#define _tcsncmp
Definition:
tchar.h:1428
mul
#define mul(aa, bb)
Definition:
mvAesAlg.c:25
Sleep
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
Definition:
synch.c:790
_T
#define _T(x)
Definition:
vfdio.h:22
_ttoi
#define _ttoi
Definition:
xmlstorage.h:195
_tcsnicmp
#define _tcsnicmp
Definition:
xmlstorage.h:207
base
shell
cmd
delay.c
Generated on Sun Feb 16 2025 06:19:35 for ReactOS by
1.9.6