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
38 typedef enum _BUS_DATA_TYPE
{
39 ConfigurationSpaceUndefined
= -1,
51 SgiInternalConfiguration
,
53 } BUS_DATA_TYPE
, *PBUS_DATA_TYPE
;
58 ExReleaseResourceForThreadLite(
59 /*IN*/ PERESOURCE Resource
,
60 /*IN*/ ERESOURCE_THREAD ResourceThreadId
);
66 /*IN*/ PDEVICE_OBJECT DeviceObject
,
67 /*IN*/ ULONG SectorSize
,
68 /*IN*/ BOOLEAN ReturnRecognizedPartitions
,
69 /*OUT*/ struct _DRIVE_LAYOUT_INFORMATION
**PartitionBuffer
);
74 IoSetPartitionInformation(
75 /*IN*/ PDEVICE_OBJECT DeviceObject
,
76 /*IN*/ ULONG SectorSize
,
77 /*IN*/ ULONG PartitionNumber
,
78 /*IN*/ ULONG PartitionType
);
83 IoWritePartitionTable(
84 /*IN*/ PDEVICE_OBJECT DeviceObject
,
85 /*IN*/ ULONG SectorSize
,
86 /*IN*/ ULONG SectorsPerTrack
,
87 /*IN*/ ULONG NumberOfHeads
,
88 /*IN*/ struct _DRIVE_LAYOUT_INFORMATION
*PartitionBuffer
);
91 * PVOID MmGetSystemAddressForMdl(
94 #define MmGetSystemAddressForMdl(Mdl) \
95 (((Mdl)->MdlFlags & (MDL_MAPPED_TO_SYSTEM_VA | \
96 MDL_SOURCE_IS_NONPAGED_POOL)) ? \
97 ((Mdl)->MappedSystemVa) : \
98 (MmMapLockedPages((Mdl), KernelMode)))
106 #endif /* __WIN2K_H */