2
* cdenable.h - cdenable.vxd definitions
4
* Basilisk II (C) 1997-2005 Christian Bauer
6
* Windows platform specific code copyright (C) Lauri Pesonen
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
// max read requests, if larger -> STATUS_INVALID_PARAMETER
24
#define CDENABLE_MAX_TRANSFER_SIZE (0x10000)
27
// A structure representing the instance information associated with
28
// a particular device
29
typedef struct _DEVICE_EXTENSION
33
} DEVICE_EXTENSION, *PDEVICE_EXTENSION;
36
// Define the various device type values. Note that values used by Microsoft
37
// Corporation are in the range 0-32767, and 32768-65535 are reserved for use
39
#define FILE_DEVICE_CDENABLE 0x00008301
42
// Target NT version, internal version
43
#define CDENABLE_CURRENT_VERSION 0x04000100
46
// Macro definition for defining IOCTL and FSCTL function control codes. Note
47
// that function codes 0-2047 are reserved for Microsoft Corporation, and
48
// 2048-4095 are reserved for customers.
49
#define CDENABLE_IOCTL_READ 0x830
50
#define CDENABLE_IOCTL_GET_VERSION 0x831
53
#define IOCTL_CDENABLE_READ CTL_CODE(FILE_DEVICE_CDENABLE, \
54
CDENABLE_IOCTL_READ, \
57
#define IOCTL_CDENABLE_GET_VERSION CTL_CODE(FILE_DEVICE_CDENABLE, \
58
CDENABLE_IOCTL_GET_VERSION, \