mirror of
https://github.com/reactos/reactos.git
synced 2025-07-01 01:21:22 +00:00

The idea then would be to have the following behaviour (when specifying the following options in the kernel command line): /DEBUGPORT=COMi --> load KDCOM.DLL and use COMi port (i == 1,2,3,4) if possible. /DEBUGPORT=FOO --> load KDFOO.DLL (useful for KDUSB.DLL, KD1394.DLL, KDBAZIS.DLL for VirtualKD, etc...) /DEBUGPORT=ROSDBG:[COMi|SCREEN|FILE|GDB|...] --> load KDROSDBG.DLL which contains the ROS kernel debugger, and use COMi or SCREEN or... as output port. svn path=/branches/kd++/; revision=58883
48 lines
610 B
C
48 lines
610 B
C
/*
|
|
* DELAY.C - internal command.
|
|
*
|
|
* clone from 4nt delay command
|
|
*
|
|
* 30 Aug 1999
|
|
* started - Paolo Pantaleo <paolopan@freemail.it>
|
|
*
|
|
*
|
|
*/
|
|
|
|
#include "precomp.h"
|
|
|
|
#ifdef INCLUDE_CMD_DELAY
|
|
|
|
|
|
INT CommandDelay (LPTSTR param)
|
|
{
|
|
DWORD val;
|
|
DWORD mul=1000;
|
|
|
|
if (_tcsncmp (param, _T("/?"), 2) == 0)
|
|
{
|
|
ConOutResPaging(TRUE,STRING_DELAY_HELP);
|
|
return 0;
|
|
}
|
|
|
|
nErrorLevel = 0;
|
|
|
|
if (*param==0)
|
|
{
|
|
error_req_param_missing ();
|
|
return 1;
|
|
}
|
|
|
|
if (_tcsnicmp(param,_T("/m"),2) == 0)
|
|
{
|
|
mul = 1;
|
|
param += 2;
|
|
}
|
|
|
|
val = _ttoi(param);
|
|
Sleep(val * mul);
|
|
|
|
return 0;
|
|
}
|
|
|
|
#endif /* INCLUDE_CMD_DELAY */
|