-
Notifications
You must be signed in to change notification settings - Fork 2
/
uDiskEjectConst.pas
88 lines (72 loc) · 4.98 KB
/
uDiskEjectConst.pas
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
76
77
78
79
80
81
82
83
84
85
86
87
{
******************************************************
USB Disk Ejector
Copyright (c) 2006, 2007, 2008 Ben Gorman
Http://quick.mixnmojo.com
******************************************************
}
{
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
}
unit uDiskEjectConst;
interface
const
str_No_Drive: string = 'No disks found.';
str_Temp_Folder_Write_Error: string = 'Could not write to windows temp dir!' + #13 + 'The program will now exit';
str_Minimize: string = ' The program is still running! Click on the icon to restore the program.';
str_Question: string = '/?' + #13 + 'Displays this message.' + #13#13 +
'/NOSAVE' + #13 + 'Options are not saved and any existing saved options are ignored' + #13#13 +
'/SILENT' + #13 + 'Stops balloon messages from appearing when the program is run in GUI mode.' + #13#13 +
'/SHOWEJECT' + #13 + 'Shows the standard ''now safe to remove'' message when a drive is ejected. This message is disabled by default.' + #13#13 +
'/REMOVETHIS' + #13 + 'Ejects the drive that the program is running from.' + #13 + 'Eg if the program is run from a usb stick on drive G then drive G would be ejected.' + #13#13 +
'/REMOVELETTER' + #13 + 'Ejects the specified drive letter.' + #13#13 +
'/REMOVENAME' + #13 + 'Ejects the drive with the specified name.' + #13 + 'Partial name matching is possible if a wildcard (*) is used. Eg "/REMOVENAME *SANDISK" would eject a drive that had Sandisk in its name.' + #13#13 +
'/CLOSEAPPS' + #13 + 'If there are any applications running from the drive, ask them to close. If any applications refuse to close then the eject will fail. This switch is considered relatively safe and should mean that no unsaved data is lost.' + #13#13 +
'/CLOSEAPPSFORCE' + #13 + 'If there are any applications running from the drive, force them to close. This will mean that any unsaved data in those programs will be lost. This has the same effect as ending a task/process.'
;
str_App_Version: string = '1.2.0 Beta 2';
str_Remove_Error_Unknown_Error = 'The disk could not be ejected - an unknown error was encountered.' + #13#13 + 'Please report this.';
str_Remove_Error_Drive_Not_Found = 'The disk could not be ejected - the corresponding drive letter could not be found.';
str_Remove_Error_Name_Not_Found = 'The disk could not be ejected - the corresponding drive name could not be found.';
str_Remove_Error_Disk_In_Use = 'The disk could not be ejected because it is in use.' + #13 + 'Close any programs that might be using the disk and try again.';
str_Remove_Error_No_Card_Media = 'No memory card was found in the specified drive.';
str_Remove_Error_Winapi_Error = 'The disk could not be ejected - a winapi error was encountered.' + #13#13 + 'Please report this.';
str_Remove_Successful = 'The disk was ejected successfully!';
int_After_Eject_Do_Nothing = 0;
int_After_Eject_Do_Close = 1;
int_After_Eject_Do_Minimize = 2;
//Eject Error Codes
REMOVE_ERROR_NONE = 0;
REMOVE_ERROR_UNKNOWN_ERROR = 1;
REMOVE_ERROR_DRIVE_NOT_FOUND = 2;
REMOVE_ERROR_DISK_IN_USE = 3;
REMOVE_ERROR_NO_CARD_MEDIA = 4;
REMOVE_ERROR_WINAPI_ERROR = 5;
//Main form
str_Main_Caption = 'Safely Remove Disks';
str_Main_Bottom_Popup = 'More >>>';
str_Main_Tree_Header = 'Double click or press enter to safely remove a disk';
str_Tree_Hint = 'Double click or press enter to remove a disk';
str_Main_Popup_About = 'About';
str_Main_Popup_Options = 'Options';
str_Main_Popup_Eject = 'Eject';
str_Main_Popup_Exit = 'Exit';
//Options form
str_Hotkey_Restore_Window = 'Restore program window';
str_Hotkey_Eject_Letter = 'Eject drive letter';
str_Hotkey_Eject_Name = 'Eject drive name';
str_Hotkey_NoDrive_Name = 'No drive name given! Select or type a drive name and try again.';
str_Hotkey = 'Hotkey: ';
str_Hotkey_Remove_Error = 'Error - could not remove hotkey!';
implementation
end.