-
Notifications
You must be signed in to change notification settings - Fork 6
/
a_form_error.c
75 lines (70 loc) · 3.58 KB
/
a_form_error.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#include "gem_aesP.h"
/** displays a pre-defined error alert box to the user.
*
* @param error_code specifies a MS-DOS error code as follows:
* - #FERR_FILENOTFOUND : File Not Found
* The application can not find
* the folder or file that you
* tried to access.
* - #FERR_PATHNOTFOUND : Path Not Found
* The application cannot find
* the folder or file that you
* tried to access.
* - #FERR_NOHANDLES : No More File Handles
* The application does not
* have room to open another
* document. To make room, close
* any open document that you do
* not need.
* - #FERR_ACCESSDENIED : Access Denied
* An item with this name
* already exists in the
* directory, or this item is
* set to read-only status.
* - #FERR_LOWMEM : Insufficient Memory
* There is not enough memory
* for the application you just
* tried to run.
* - #FERR_BADENVIRON : Invalid Environment
* There is not enough memory
* for the application you just
* tried to run.
* - #FERR_BADFORMAT : Invalid Format
* There is not enough memory
* for the application you just
* tried to run.
* - #FERR_BADDRIVE : Invalid Drive Specification
* The drive you specified does
* not exist.
* - #FERR_DELETEDIR : Attempt To Delete Working
* Directory
* You cannot delete the folder
* in which you are working.
* - #FERR_NOFILES : No More Files
* The application can not find
* the folder or file that you
* tried to access.
* @param global_aes global AES array
*
* @return the exit button clicked as in
* mt_form_alert(). It is, however, insignifigant as all of the
* error alerts have only one button.
*
* @since All AES versions.
*
* @sa mt_form_alert()
*
* @note The GEMDOS error number can be translated into the code expected
* in \a error_code by subtracting 31 from the absolute value of the
* GEMDOS error code.
* @note Not every GEMDOS error code has a matching alert box.
*
*/
short
mt_form_error(short error_code, short *global_aes)
{
AES_PARAMS(53,1,1,0,0);
aes_intin[0] = error_code;
AES_TRAP(aes_params);
return aes_intout[0];
}