Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
3
Добавлен:
28.06.2014
Размер:
3.86 Кб
Скачать
/////////////////////////////////////////////////////////////////////////
// //
// Defines of constants for INSTDRV //
// JSC Active 1998-99 //
/////////////////////////////////////////////////////////////////////////

#define IDB_BITMAP3 3
#define IDB_BITMAP2 2
#define MB_ (MB_OK + MB_TASKMODAL + MB_ICONEXCLAMATION)

#define NT_DRIVERRESTART_TIMEOUT 10000

#define COMMAND_UNINST 0x01
#define COMMAND_EXIT 0x02
#define COMMAND_REBOOT 0x04

#define MIN_TIMEOUT 0.001
#define MAX_TIMEOUT 600.0

#define MIN_IRQL 0
#define MAX_IRQL 26

#define RET_OK 2
#define RET_CANCEL 3

typedef struct _TLPTinformation
{
DWORD RegKey;
DWORD Method;
WORD Base;
BYTE Irql;
char FriendlyName[100];
} TLPTinfo;

typedef struct _TDriverState
{
unsigned Present;
unsigned RebootNeeded;
unsigned Age;
} TDriverState;

#define DRIVER_AGE_OLDER 0
#define DRIVER_AGE_EQUAL 1
#define DRIVER_AGE_NEWER 2

//------------------------------------------------------------
//--------------- Controls constants -------------------------
//------------------------------------------------------------

#define IDI_ICON1 1

#define IDD_CONFIG 1
#define IDD_MSG 2
#define IDD_CONFIG_NT 3
#define IDD_ADVANCED 4

//............
// Here is some rules about constants:
// all constants is three-digit:
// number of dialog
// type of control
// number of control in type
// Control types is:
// Text 0
// Check 1
// Radio 2
// Edit 3
// Button 4
// Bitmap 5
// List 8
// Frame 9

//
// Because Config & Config_NT dialogs is mainly the same, they has same dialog number = 2
//


#define IDC_STATICTEXT1 101
#define IDINSTALL 141
#define IDREMOVE 142
#define IDCONFIG 143
#define IDEXIT 144
#define IDC_STATICTEXT2 102

//........................................
#define IDC_STATICFRAME1 291
#define IDC_STATICFRAME2 292


#define IDC_STATICTEXT_FR_NAME 200

#define IDC_LISTBOX1 281
#define IDC_STATICTEXT_USE 201
#define IDC_RADIOBUTTON_YES 221
#define IDC_RADIOBUTTON_NO 222
#define IDC_STATICTEXT_METHODS 202

#define IDC_CHECK_AUTO 211
#define IDC_CHECK_STEAL 212
#define IDC_CHECK_ACQUIRE 213
#define IDC_CHECK_CS 214
#define IDC_CHECK_MASK 215
#define IDC_CHECK_CLI 216
#define IDC_EDIT_IRQL 231

#define IDC_CHECK_IRQL 217
#define IDC_CHECK_ALLOC 218

#define IDC_STATICTEXT3 203
#define IDC_EDIT1 232
#define IDC_STATICTEXT4 204

#define IDC_BUTTON_CANCEL 241
#define IDC_BUTTON_OK 242
#define IDC_BUTTON_ADVANCED 243

#define IDC_GROUPBOX1 491
#define IDC_GROUPBOX2 492
#define IDC_RADIOBUTTON1 421
#define IDC_RADIOBUTTON2 422
#define IDC_RADIOBUTTON3 423
#define IDC_RADIOBUTTON4 424
#define IDC_RADIOBUTTON5 425
#define IDC_RADIOBUTTON6 426
#define IDC_RADIOBUTTON7 427

#define IDC_CHECKBOX_AUTO 411
#define IDC_STATICBITMAP_DOWN 450

#define IDC_STATICBITMAP1 251
#define IDC_STATICBITMAP2 452
#define IDC_STATICBITMAP3 453
#define IDC_STATICBITMAP4 454
#define IDC_STATICBITMAP5 455
#define IDC_STATICBITMAP6 456
#define IDC_STATICBITMAP7 457

#define IDC_STATICTEXT_WARN 403


Соседние файлы в папке INST.DLL