2 * Copyright 2008 Francois Gouget for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 /* Note: We will probably have to duplicate everything ultimately :-( */
26 /* FIXME: #include <ntdef.h> */
28 /* FIXME: #include <bugcodes.h> */
29 /* FIXME: #include <ntiologc.h> */
32 typedef enum _BUS_DATA_TYPE
34 ConfigurationSpaceUndefined
= -1,
47 } BUS_DATA_TYPE
, *PBUS_DATA_TYPE
;
49 typedef struct _CONFIGURATION_INFORMATION
58 BOOLEAN AtDiskPrimaryAddressClaimed
;
59 BOOLEAN AtDiskSecondaryAddressClaimed
;
61 ULONG MediumChangerCount
;
62 } CONFIGURATION_INFORMATION
, *PCONFIGURATION_INFORMATION
;
64 typedef enum _CONFIGURATION_TYPE
68 FloatingPointProcessor
,
105 RealModeIrqRoutingTable
,
106 RealModePCIEnumeration
,
108 } CONFIGURATION_TYPE
, *PCONFIGURATION_TYPE
;
110 typedef struct _IMAGE_INFO
117 ULONG ImageAddressingMode
: 8;
118 ULONG SystemModeImage
: 1;
119 ULONG ImageMappedToAllPids
: 1;
120 ULONG ExtendedInfoPresent
: 1;
127 ULONG ImageSectionNumber
;
128 } IMAGE_INFO
, *PIMAGE_INFO
;
130 typedef struct _FILE_VALID_DATA_LENGTH_INFORMATION
132 LARGE_INTEGER ValidDataLength
;
133 } FILE_VALID_DATA_LENGTH_INFORMATION
, *PFILE_VALID_DATA_LENGTH_INFORMATION
;
135 typedef VOID (WINAPI
*PDRIVER_REINITIALIZE
)(PDRIVER_OBJECT
,PVOID
,ULONG
);
136 typedef VOID (WINAPI
*PLOAD_IMAGE_NOTIFY_ROUTINE
)(PUNICODE_STRING
,HANDLE
,PIMAGE_INFO
);
137 typedef NTSTATUS (WINAPI
*PIO_QUERY_DEVICE_ROUTINE
)(PVOID
,PUNICODE_STRING
,INTERFACE_TYPE
,ULONG
,
138 PKEY_VALUE_FULL_INFORMATION
*,CONFIGURATION_TYPE
,ULONG
,PKEY_VALUE_FULL_INFORMATION
*);
140 NTSTATUS WINAPI
IoQueryDeviceDescription(PINTERFACE_TYPE
,PULONG
,PCONFIGURATION_TYPE
,PULONG
,
141 PCONFIGURATION_TYPE
,PULONG
,PIO_QUERY_DEVICE_ROUTINE
,PVOID
);
142 void WINAPI
IoRegisterDriverReinitialization(PDRIVER_OBJECT
,PDRIVER_REINITIALIZE
,PVOID
);
143 NTSTATUS WINAPI
IoRegisterShutdownNotification(PDEVICE_OBJECT
);
144 NTSTATUS WINAPI
PsSetLoadImageNotifyRoutine(PLOAD_IMAGE_NOTIFY_ROUTINE
);