[NET]
[reactos.git] / reactos / base / shell / cmd / beep.c
1 /*
2 * BEEP.C - beep internal command.
3 *
4 *
5 * History:
6 *
7 * 16 Jul 1998 (Hans B Pufal)
8 * started.
9 *
10 * 16 Jul 1998 (John P Price)
11 * Separated commands into individual files.
12 *
13 * 27-Jul-1998 (John P Price <linux-guru@gcfl.net>)
14 * added config.h include
15 *
16 * 14-Jan-1999 (Eric Kohl)
17 * Added help text ("beep /?").
18 * Unicode ready!
19 *
20 * 20-Jan-1999 (Eric Kohl)
21 * Redirection ready!
22 *
23 * 02-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
24 * Remove all hardcoded strings in En.rc
25 */
26
27 #include "precomp.h"
28
29 #ifdef INCLUDE_CMD_BEEP
30
31
32 INT cmd_beep (LPTSTR param)
33 {
34 if (_tcsncmp (param, _T("/?"), 2) == 0)
35 {
36 ConOutResPaging(TRUE,STRING_BEEP_HELP);
37 return 0;
38 }
39
40 #if 0
41 /* check if run in batch mode */
42 if (bc == NULL)
43 return 1;
44 #endif
45 MessageBeep (-1);
46
47 return 0;
48 }
49 #endif