|
Last change
on this file since 1804 was 1488, checked in by Gregg Young, 16 years ago |
|
Fixed commands so reordering them in commands.dat no longer changes their ID or hot key assignment; added 20 new hot keys; the environment information is now used when executing a command; some code clean up in command.c; added CheckExecutibleFlags to systemf.c the eliminate repetative code in assoc.c, command.c & cmdline.c
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
|
File size:
955 bytes
|
| Line | |
|---|
| 1 |
|
|---|
| 2 | /***********************************************************************
|
|---|
| 3 |
|
|---|
| 4 | $Id: command.h 1488 2009-12-21 23:42:55Z gyoung $
|
|---|
| 5 |
|
|---|
| 6 | Custom commands
|
|---|
| 7 |
|
|---|
| 8 | Copyright (c) 1993-98 M. Kimes
|
|---|
| 9 | Copyright (c) 2008 Steven H. Levine
|
|---|
| 10 |
|
|---|
| 11 | 01 Mar 08 GKY Move from fm3dll.h to here
|
|---|
| 12 | 22 Jun 08 GKY Moved free_commands here for fortify checking
|
|---|
| 13 | 21 Dec 09 GKY Fix the environment so it can be saved, deleted and used consistently.
|
|---|
| 14 |
|
|---|
| 15 | ***********************************************************************/
|
|---|
| 16 |
|
|---|
| 17 | #if !defined(COMMAND_H)
|
|---|
| 18 | #define COMMAND_H
|
|---|
| 19 |
|
|---|
| 20 | #if !defined(OS2_INCLUDED)
|
|---|
| 21 | #include <os2.h>
|
|---|
| 22 | #endif
|
|---|
| 23 |
|
|---|
| 24 | VOID RunCommand(HWND hwnd, INT cx);
|
|---|
| 25 | VOID EditCommands(HWND hwnd);
|
|---|
| 26 | CHAR *command_title(INT cx);
|
|---|
| 27 | VOID load_commands(VOID);
|
|---|
| 28 | VOID free_commands(VOID);
|
|---|
| 29 |
|
|---|
| 30 | typedef struct LINKCMDS
|
|---|
| 31 | {
|
|---|
| 32 | PSZ pszCmdLine;
|
|---|
| 33 | CHAR *title;
|
|---|
| 34 | CHAR *env;
|
|---|
| 35 | ULONG flags;
|
|---|
| 36 | ULONG ID;
|
|---|
| 37 | ULONG HotKeyID;
|
|---|
| 38 | struct LINKCMDS *next;
|
|---|
| 39 | struct LINKCMDS *prev;
|
|---|
| 40 | }
|
|---|
| 41 | LINKCMDS;
|
|---|
| 42 |
|
|---|
| 43 | // Data declarations
|
|---|
| 44 | extern BOOL cmdloaded;
|
|---|
| 45 | extern LINKCMDS *cmdhead;
|
|---|
| 46 |
|
|---|
| 47 | #endif // COMMAND_H
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.