Updated years in version info.
[reactos.git] / rosapps / 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 <ekohl@abo.rhein-zeitung.de>)
17 * Added help text ("beep /?").
18 * Unicode ready!
19 *
20 * 20-Jan-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
21 * Redirection ready!
22 */
23
24 #include "config.h"
25
26 #ifdef INCLUDE_CMD_BEEP
27
28 #include <windows.h>
29 #include <tchar.h>
30 #include <string.h>
31
32 #include "cmd.h"
33 #include "batch.h"
34
35
36 INT cmd_beep (LPTSTR cmd, LPTSTR param)
37 {
38 if (_tcsncmp (param, _T("/?"), 2) == 0)
39 {
40 ConOutPuts (_T("Beep the speaker.\n\nBEEP"));
41 return 0;
42 }
43
44 #if 0
45 /* check if run in batch mode */
46 if (bc == NULL)
47 return 1;
48 #endif
49 #ifdef __REACTOS__
50 Beep (440, 50);
51 #else
52 MessageBeep (-1);
53 #endif
54
55 return 0;
56 }
57 #endif