4 * Definitions only used in Windows 2000 and earlier versions
6 * This file is part of the w32api package.
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
11 * THIS SOFTWARE IS NOT COPYRIGHTED
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
16 * This code is distributed in the hope that it will be useful but
17 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18 * DISCLAIMED. This includes but is not limited to warranties of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27 #pragma GCC system_header
36 typedef enum _BUS_DATA_TYPE
{
37 ConfigurationSpaceUndefined
= -1,
49 SgiInternalConfiguration
,
51 } BUS_DATA_TYPE
, *PBUS_DATA_TYPE
;
56 ExReleaseResourceForThreadLite(
57 IN PERESOURCE Resource
,
58 IN ERESOURCE_THREAD ResourceThreadId
);
64 IN PDEVICE_OBJECT DeviceObject
,
66 IN BOOLEAN ReturnRecognizedPartitions
,
67 OUT
struct _DRIVE_LAYOUT_INFORMATION
**PartitionBuffer
);
72 IoSetPartitionInformation(
73 IN PDEVICE_OBJECT DeviceObject
,
75 IN ULONG PartitionNumber
,
76 IN ULONG PartitionType
);
81 IoWritePartitionTable(
82 IN PDEVICE_OBJECT DeviceObject
,
84 IN ULONG SectorsPerTrack
,
85 IN ULONG NumberOfHeads
,
86 IN
struct _DRIVE_LAYOUT_INFORMATION
*PartitionBuffer
);
89 * PVOID MmGetSystemAddressForMdl(
92 #define MmGetSystemAddressForMdl(Mdl) \
93 (((Mdl)->MdlFlags & (MDL_MAPPED_TO_SYSTEM_VA | \
94 MDL_SOURCE_IS_NONPAGED_POOL)) ? \
95 ((Mdl)->MappedSystemVa) : \
96 (MmMapLockedPages((Mdl), KernelMode)))
104 #endif /* __WIN2K_H */