1 |
/*
|
2 |
* cdenable.h - cdenable.vxd definitions
|
3 |
*
|
4 |
* Basilisk II (C) 1997-2005 Christian Bauer
|
5 |
*
|
6 |
* Windows platform specific code copyright (C) Lauri Pesonen
|
7 |
*
|
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.
|
12 |
*
|
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.
|
17 |
*
|
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
|
21 |
*/
|
22 |
|
23 |
// max read requests, if larger -> STATUS_INVALID_PARAMETER
|
24 |
#define CDENABLE_MAX_TRANSFER_SIZE (0x10000)
|
25 |
|
26 |
|
27 |
// A structure representing the instance information associated with
|
28 |
// a particular device
|
29 |
typedef struct _DEVICE_EXTENSION
|
30 |
{
|
31 |
// not needed.
|
32 |
ULONG StateVariable;
|
33 |
} DEVICE_EXTENSION, *PDEVICE_EXTENSION;
|
34 |
|
35 |
|
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
|
38 |
// by customers.
|
39 |
#define FILE_DEVICE_CDENABLE 0x00008301
|
40 |
|
41 |
|
42 |
// Target NT version, internal version
|
43 |
#define CDENABLE_CURRENT_VERSION 0x04000100
|
44 |
|
45 |
|
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
|
51 |
|
52 |
|
53 |
#define IOCTL_CDENABLE_READ CTL_CODE(FILE_DEVICE_CDENABLE, \
|
54 |
CDENABLE_IOCTL_READ, \
|
55 |
METHOD_BUFFERED, \
|
56 |
FILE_ANY_ACCESS)
|
57 |
#define IOCTL_CDENABLE_GET_VERSION CTL_CODE(FILE_DEVICE_CDENABLE, \
|
58 |
CDENABLE_IOCTL_GET_VERSION, \
|
59 |
METHOD_BUFFERED, \
|
60 |
FILE_ANY_ACCESS)
|