Moved DCX_* constants to winuser.h.
[wine/multimedia.git] / programs / wcmd / wcmd.h
blob1b55e8d745dd12bad5b6c799fbb197d2ad7c31c3
1 /*
2 * WCMD - Wine-compatible command line interface.
4 * (C) 1999 D A Pickles
5 */
8 #define IDI_ICON1 1
9 #include <windows.h>
10 #ifndef RC_INVOKED
11 #include <string.h>
12 #include <stdlib.h>
13 #include <stdarg.h>
14 #include <stdio.h>
15 #include <ctype.h>
17 #ifdef WINELIB
18 #include <winbase.h>
19 #include <wincon.h>
20 #endif /* !WINELIB */
22 void WCMD_batch (char *, char *, int);
23 void WCMD_change_tty (void);
24 void WCMD_clear_screen (void);
25 void WCMD_copy (void);
26 void WCMD_create_dir (void);
27 void WCMD_delete (int recurse);
28 void WCMD_directory (void);
29 void WCMD_echo (char *);
30 void WCMD_for (char *);
31 void WCMD_give_help (char *command);
32 void WCMD_goto (void);
33 void WCMD_if (char *);
34 void WCMD_move (void);
35 void WCMD_output (char *format, ...);
36 void WCMD_output_asis (char *message);
37 void WCMD_parse (char *s, char *q, char *p1, char *p2);
38 void WCMD_pause (void);
39 void WCMD_print_error (void);
40 void WCMD_process_command (char *command);
41 void WCMD_remove_dir (void);
42 void WCMD_rename (void);
43 void WCMD_run_program (char *command);
44 void WCMD_setshow_attrib (void);
45 void WCMD_setshow_date (void);
46 void WCMD_setshow_default (void);
47 void WCMD_setshow_env (char *command);
48 void WCMD_setshow_path (void);
49 void WCMD_setshow_prompt (void);
50 void WCMD_setshow_time (void);
51 void WCMD_shift (void);
52 void WCMD_show_prompt (void);
53 void WCMD_type (void);
54 void WCMD_verify (char *command);
55 void WCMD_version (void);
56 int WCMD_volume (int mode, char *command);
58 char *WCMD_fgets (char *s, int n, HANDLE stream);
59 char *WCMD_parameter (char *s, int n, char **where);
60 char *WCMD_strtrim_leading_spaces (char *string);
61 void WCMD_strtrim_trailing_spaces (char *string);
63 /* Data structure to hold context when executing batch files */
65 typedef struct {
66 char *command; /* The command which invoked the batch file */
67 HANDLE h; /* Handle to the open batch file */
68 int shift_count; /* Number of SHIFT commands executed */
69 void *prev_context; /* Pointer to the previous context block */
70 } BATCH_CONTEXT;
72 #endif /* !RC_INVOKED */
75 * Serial nos of builtin commands. These constants must be in step with
76 * the list of strings defined in WCMD.C, and WCMD_EXIT *must* always be
77 * the last one.
79 * Yes it *would* be nice to use an enumeration here, but the Resource
80 * Compiler won't accept resource IDs from enumerations :-(
83 #define WCMD_ATTRIB 0
84 #define WCMD_CALL 1
85 #define WCMD_CD 2
86 #define WCMD_CHDIR 3
87 #define WCMD_CLS 4
88 #define WCMD_COPY 5
89 #define WCMD_CTTY 6
90 #define WCMD_DATE 7
91 #define WCMD_DEL 8
92 #define WCMD_DIR 9
93 #define WCMD_ECHO 10
94 #define WCMD_ERASE 11
95 #define WCMD_FOR 12
96 #define WCMD_GOTO 13
97 #define WCMD_HELP 14
98 #define WCMD_IF 15
99 #define WCMD_LABEL 16
100 #define WCMD_MD 17
101 #define WCMD_MKDIR 18
102 #define WCMD_MOVE 19
103 #define WCMD_PATH 20
104 #define WCMD_PAUSE 21
105 #define WCMD_PROMPT 22
106 #define WCMD_REM 23
107 #define WCMD_REN 24
108 #define WCMD_RENAME 25
109 #define WCMD_RD 26
110 #define WCMD_RMDIR 27
111 #define WCMD_SET 28
112 #define WCMD_SHIFT 29
113 #define WCMD_TIME 30
114 #define WCMD_TYPE 31
115 #define WCMD_VERIFY 32
116 #define WCMD_VER 33
117 #define WCMD_VOL 34
118 #define WCMD_EXIT 35