Some header fixes

svn path=/trunk/; revision=24454
This commit is contained in:
Thomas Bluemel 2006-10-08 20:28:03 +00:00
parent 1047de88bf
commit 73c2dc5053
10 changed files with 1229 additions and 1222 deletions

View file

@ -4256,19 +4256,19 @@ typedef VOID DDKAPI
IN PUCHAR Packet, IN PUCHAR Packet,
IN ULONG PacketSize); IN ULONG PacketSize);
typedef VOID DDKFASTAPI typedef VOID FASTCALL
(*NDIS_M_DEQUEUE_WORK_ITEM)( (*NDIS_M_DEQUEUE_WORK_ITEM)(
IN PNDIS_MINIPORT_BLOCK Miniport, IN PNDIS_MINIPORT_BLOCK Miniport,
IN NDIS_WORK_ITEM_TYPE WorkItemType, IN NDIS_WORK_ITEM_TYPE WorkItemType,
OUT PVOID *WorkItemContext); OUT PVOID *WorkItemContext);
typedef NDIS_STATUS DDKFASTAPI typedef NDIS_STATUS FASTCALL
(*NDIS_M_QUEUE_NEW_WORK_ITEM)( (*NDIS_M_QUEUE_NEW_WORK_ITEM)(
IN PNDIS_MINIPORT_BLOCK Miniport, IN PNDIS_MINIPORT_BLOCK Miniport,
IN NDIS_WORK_ITEM_TYPE WorkItemType, IN NDIS_WORK_ITEM_TYPE WorkItemType,
IN PVOID WorkItemContext); IN PVOID WorkItemContext);
typedef NDIS_STATUS DDKFASTAPI typedef NDIS_STATUS FASTCALL
(*NDIS_M_QUEUE_WORK_ITEM)( (*NDIS_M_QUEUE_WORK_ITEM)(
IN PNDIS_MINIPORT_BLOCK Miniport, IN PNDIS_MINIPORT_BLOCK Miniport,
IN NDIS_WORK_ITEM_TYPE WorkItemType, IN NDIS_WORK_ITEM_TYPE WorkItemType,
@ -4295,7 +4295,7 @@ typedef VOID DDKAPI
(*NDIS_M_SEND_RESOURCES_HANDLER)( (*NDIS_M_SEND_RESOURCES_HANDLER)(
IN NDIS_HANDLE MiniportAdapterHandle); IN NDIS_HANDLE MiniportAdapterHandle);
typedef BOOLEAN DDKFASTAPI typedef BOOLEAN FASTCALL
(*NDIS_M_START_SENDS)( (*NDIS_M_START_SENDS)(
IN PNDIS_MINIPORT_BLOCK Miniport); IN PNDIS_MINIPORT_BLOCK Miniport);

View file

@ -28,7 +28,12 @@
#pragma GCC system_header #pragma GCC system_header
#endif #endif
#ifdef _NTOSKRNL_
/* HACKHACKHACK!!! We shouldn't include this header from ntoskrnl! */
#define NTKERNELAPI #define NTKERNELAPI
#else
#define NTKERNELAPI DECLSPEC_IMPORT
#endif
#include "ntddk.h" #include "ntddk.h"
@ -2371,7 +2376,7 @@ FsRtlCopyWrite (
IN PDEVICE_OBJECT DeviceObject IN PDEVICE_OBJECT DeviceObject
); );
NTKERNELAPI NTSYSAPI
PVOID PVOID
NTAPI NTAPI
RtlCreateHeap ( RtlCreateHeap (
@ -2412,7 +2417,7 @@ FsRtlDeregisterUncProvider (
IN HANDLE Handle IN HANDLE Handle
); );
NTKERNELAPI NTSYSAPI
PVOID PVOID
NTAPI NTAPI
RtlDestroyHeap( RtlDestroyHeap(
@ -3274,16 +3279,6 @@ KeInsertQueue (
IN PLIST_ENTRY Entry IN PLIST_ENTRY Entry
); );
NTKERNELAPI
BOOLEAN
NTAPI
KeInsertQueueApc (
IN PKAPC Apc,
IN PVOID SystemArgument1,
IN PVOID SystemArgument2,
IN KPRIORITY PriorityBoost
);
NTKERNELAPI NTKERNELAPI
LONG LONG
NTAPI NTAPI

View file

@ -44,7 +44,7 @@ typedef struct _PROCESSOR_IDLE_TIMES {
} PROCESSOR_IDLE_TIMES, *PPROCESSOR_IDLE_TIMES; } PROCESSOR_IDLE_TIMES, *PPROCESSOR_IDLE_TIMES;
typedef BOOLEAN typedef BOOLEAN
(DDKFASTAPI*PPROCESSOR_IDLE_HANDLER)( (FASTCALL*PPROCESSOR_IDLE_HANDLER)(
IN OUT PPROCESSOR_IDLE_TIMES IdleTimes); IN OUT PPROCESSOR_IDLE_TIMES IdleTimes);
typedef struct _PROCESSOR_IDLE_HANDLER_INFO { typedef struct _PROCESSOR_IDLE_HANDLER_INFO {
@ -53,11 +53,11 @@ typedef struct _PROCESSOR_IDLE_HANDLER_INFO {
} PROCESSOR_IDLE_HANDLER_INFO, *PPROCESSOR_IDLE_HANDLER_INFO; } PROCESSOR_IDLE_HANDLER_INFO, *PPROCESSOR_IDLE_HANDLER_INFO;
typedef VOID typedef VOID
(DDKFASTAPI*PSET_PROCESSOR_THROTTLE)( (FASTCALL*PSET_PROCESSOR_THROTTLE)(
IN UCHAR Throttle); IN UCHAR Throttle);
typedef NTSTATUS typedef NTSTATUS
(DDKFASTAPI*PSET_PROCESSOR_THROTTLE2)( (FASTCALL*PSET_PROCESSOR_THROTTLE2)(
IN UCHAR Throttle); IN UCHAR Throttle);
#define MAX_IDLE_HANDLERS 3 #define MAX_IDLE_HANDLERS 3
@ -82,11 +82,11 @@ typedef enum _POWER_STATE_HANDLER_TYPE {
} POWER_STATE_HANDLER_TYPE, *PPOWER_STATE_HANDLER_TYPE; } POWER_STATE_HANDLER_TYPE, *PPOWER_STATE_HANDLER_TYPE;
typedef NTSTATUS typedef NTSTATUS
(DDKAPI*PENTER_STATE_SYSTEM_HANDLER)( (NTAPI*PENTER_STATE_SYSTEM_HANDLER)(
IN PVOID SystemContext); IN PVOID SystemContext);
typedef NTSTATUS typedef NTSTATUS
(DDKAPI*PENTER_STATE_HANDLER)( (NTAPI*PENTER_STATE_HANDLER)(
IN PVOID Context, IN PVOID Context,
IN PENTER_STATE_SYSTEM_HANDLER SystemHandler OPTIONAL, IN PENTER_STATE_SYSTEM_HANDLER SystemHandler OPTIONAL,
IN PVOID SystemContext, IN PVOID SystemContext,
@ -102,7 +102,7 @@ typedef struct _POWER_STATE_HANDLER {
} POWER_STATE_HANDLER, *PPOWER_STATE_HANDLER; } POWER_STATE_HANDLER, *PPOWER_STATE_HANDLER;
typedef NTSTATUS typedef NTSTATUS
(STDCALL*PENTER_STATE_NOTIFY_HANDLER)( (NTAPI*PENTER_STATE_NOTIFY_HANDLER)(
IN POWER_STATE_HANDLER_TYPE State, IN POWER_STATE_HANDLER_TYPE State,
IN PVOID Context, IN PVOID Context,
IN BOOLEAN Entering); IN BOOLEAN Entering);
@ -112,7 +112,7 @@ typedef struct _POWER_STATE_NOTIFY_HANDLER {
PVOID Context; PVOID Context;
} POWER_STATE_NOTIFY_HANDLER, *PPOWER_STATE_NOTIFY_HANDLER; } POWER_STATE_NOTIFY_HANDLER, *PPOWER_STATE_NOTIFY_HANDLER;
NTOSAPI NTSYSCALLAPI
NTSTATUS NTSTATUS
DDKAPI DDKAPI
NtPowerInformation( NtPowerInformation(
@ -154,58 +154,58 @@ typedef struct _PROCESSOR_STATE_HANDLER2 {
PROCESSOR_PERF_LEVEL PerfLevel[1]; PROCESSOR_PERF_LEVEL PerfLevel[1];
} PROCESSOR_STATE_HANDLER2, *PPROCESSOR_STATE_HANDLER2; } PROCESSOR_STATE_HANDLER2, *PPROCESSOR_STATE_HANDLER2;
NTOSAPI NTSYSCALLAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
NtSetThreadExecutionState( NtSetThreadExecutionState(
IN EXECUTION_STATE esFlags, IN EXECUTION_STATE esFlags,
OUT EXECUTION_STATE *PreviousFlags); OUT EXECUTION_STATE *PreviousFlags);
NTOSAPI NTSYSCALLAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
NtRequestWakeupLatency( NtRequestWakeupLatency(
IN LATENCY_TIME latency); IN LATENCY_TIME latency);
NTOSAPI NTSYSCALLAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
NtInitiatePowerAction( NtInitiatePowerAction(
IN POWER_ACTION SystemAction, IN POWER_ACTION SystemAction,
IN SYSTEM_POWER_STATE MinSystemState, IN SYSTEM_POWER_STATE MinSystemState,
IN ULONG Flags, IN ULONG Flags,
IN BOOLEAN Asynchronous); IN BOOLEAN Asynchronous);
NTOSAPI NTSYSCALLAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
NtSetSystemPowerState( NtSetSystemPowerState(
IN POWER_ACTION SystemAction, IN POWER_ACTION SystemAction,
IN SYSTEM_POWER_STATE MinSystemState, IN SYSTEM_POWER_STATE MinSystemState,
IN ULONG Flags); IN ULONG Flags);
NTOSAPI NTSYSCALLAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
NtGetDevicePowerState( NtGetDevicePowerState(
IN HANDLE Device, IN HANDLE Device,
OUT DEVICE_POWER_STATE *State); OUT DEVICE_POWER_STATE *State);
NTOSAPI NTSYSCALLAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
NtCancelDeviceWakeupRequest( NtCancelDeviceWakeupRequest(
IN HANDLE Device); IN HANDLE Device);
NTOSAPI NTSYSCALLAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
NtIsSystemResumeAutomatic( NtIsSystemResumeAutomatic(
VOID); VOID);
NTOSAPI NTSYSCALLAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
NtRequestDeviceWakeup( NtRequestDeviceWakeup(
IN HANDLE Device); IN HANDLE Device);

View file

@ -1013,20 +1013,20 @@ VideoPortInt10(
VPAPI VPAPI
LONG LONG
DDKFASTAPI FASTCALL
VideoPortInterlockedDecrement( VideoPortInterlockedDecrement(
IN PLONG Addend); IN PLONG Addend);
VPAPI VPAPI
LONG LONG
DDKFASTAPI FASTCALL
VideoPortInterlockedExchange( VideoPortInterlockedExchange(
IN OUT PLONG Target, IN OUT PLONG Target,
IN LONG Value); IN LONG Value);
VPAPI VPAPI
LONG LONG
DDKFASTAPI FASTCALL
VideoPortInterlockedIncrement( VideoPortInterlockedIncrement(
IN PLONG Addend); IN PLONG Addend);

View file

@ -52,34 +52,34 @@ typedef enum _BUS_DATA_TYPE {
#pragma pack(pop) #pragma pack(pop)
NTOSAPI NTKERNELAPI
VOID VOID
DDKAPI DDKAPI
ExReleaseResourceForThreadLite( ExReleaseResourceForThreadLite(
IN PERESOURCE Resource, IN PERESOURCE Resource,
IN ERESOURCE_THREAD ResourceThreadId); IN ERESOURCE_THREAD ResourceThreadId);
NTOSAPI NTKERNELAPI
NTSTATUS NTSTATUS
DDKFASTAPI FASTCALL
IoReadPartitionTable( IoReadPartitionTable(
IN PDEVICE_OBJECT DeviceObject, IN PDEVICE_OBJECT DeviceObject,
IN ULONG SectorSize, IN ULONG SectorSize,
IN BOOLEAN ReturnRecognizedPartitions, IN BOOLEAN ReturnRecognizedPartitions,
OUT struct _DRIVE_LAYOUT_INFORMATION **PartitionBuffer); OUT struct _DRIVE_LAYOUT_INFORMATION **PartitionBuffer);
NTOSAPI NTKERNELAPI
NTSTATUS NTSTATUS
DDKFASTAPI FASTCALL
IoSetPartitionInformation( IoSetPartitionInformation(
IN PDEVICE_OBJECT DeviceObject, IN PDEVICE_OBJECT DeviceObject,
IN ULONG SectorSize, IN ULONG SectorSize,
IN ULONG PartitionNumber, IN ULONG PartitionNumber,
IN ULONG PartitionType); IN ULONG PartitionType);
NTOSAPI NTKERNELAPI
NTSTATUS NTSTATUS
DDKFASTAPI FASTCALL
IoWritePartitionTable( IoWritePartitionTable(
IN PDEVICE_OBJECT DeviceObject, IN PDEVICE_OBJECT DeviceObject,
IN ULONG SectorSize, IN ULONG SectorSize,

File diff suppressed because it is too large Load diff

View file

@ -52,9 +52,9 @@ ExAllocateFromZone(
return (PVOID) Zone->FreeList.Next; return (PVOID) Zone->FreeList.Next;
} }
NTOSAPI NTKERNELAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
ExExtendZone( ExExtendZone(
IN PZONE_HEADER Zone, IN PZONE_HEADER Zone,
IN PVOID Segment, IN PVOID Segment,
@ -70,9 +70,9 @@ ExFreeToZone(
return ((PSINGLE_LIST_ENTRY) Block)->Next; return ((PSINGLE_LIST_ENTRY) Block)->Next;
} }
NTOSAPI NTKERNELAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
ExInitializeZone( ExInitializeZone(
IN PZONE_HEADER Zone, IN PZONE_HEADER Zone,
IN ULONG BlockSize, IN ULONG BlockSize,
@ -89,18 +89,18 @@ ExInitializeZone(
Lock) \ Lock) \
((PVOID) ExInterlockedPopEntryList(&Zone->FreeList, Lock)) ((PVOID) ExInterlockedPopEntryList(&Zone->FreeList, Lock))
NTOSAPI NTKERNELAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
ExInterlockedExtendZone( ExInterlockedExtendZone(
IN PZONE_HEADER Zone, IN PZONE_HEADER Zone,
IN PVOID Segment, IN PVOID Segment,
IN ULONG SegmentSize, IN ULONG SegmentSize,
IN PKSPIN_LOCK Lock); IN PKSPIN_LOCK Lock);
NTOSAPI NTKERNELAPI
PVOID PVOID
DDKAPI NTAPI
ExInterlockedFreeToZone( ExInterlockedFreeToZone(
IN PZONE_HEADER Zone, IN PZONE_HEADER Zone,
IN PVOID Block, IN PVOID Block,
@ -130,23 +130,23 @@ ExInterlockedFreeToZone(
#define ExIsFullZone(Zone) \ #define ExIsFullZone(Zone) \
((Zone)->FreeList.Next == (PSINGLE_LIST_ENTRY) NULL) ((Zone)->FreeList.Next == (PSINGLE_LIST_ENTRY) NULL)
NTOSAPI NTKERNELAPI
VOID VOID
DDKAPI NTAPI
ExQueueWorkItem( ExQueueWorkItem(
IN PWORK_QUEUE_ITEM WorkItem, IN PWORK_QUEUE_ITEM WorkItem,
IN WORK_QUEUE_TYPE QueueType); IN WORK_QUEUE_TYPE QueueType);
NTOSAPI NTKERNELAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
ExIsObjectInFirstZoneSegment( ExIsObjectInFirstZoneSegment(
IN PZONE_HEADER Zone, IN PZONE_HEADER Zone,
IN PVOID Object); IN PVOID Object);
NTOSAPI NTKERNELAPI
VOID VOID
DDKAPI NTAPI
ExReleaseResource( ExReleaseResource(
IN PERESOURCE Resource); IN PERESOURCE Resource);
@ -160,37 +160,37 @@ ExReleaseResource(
#define ExIsResourceAcquired ExIsResourceAcquiredSharedLite #define ExIsResourceAcquired ExIsResourceAcquiredSharedLite
#define ExReleaseResourceForThread ExReleaseResourceForThreadLite #define ExReleaseResourceForThread ExReleaseResourceForThreadLite
NTOSAPI NTKERNELAPI
INTERLOCKED_RESULT INTERLOCKED_RESULT
DDKAPI NTAPI
ExInterlockedDecrementLong( ExInterlockedDecrementLong(
IN PLONG Addend, IN PLONG Addend,
IN PKSPIN_LOCK Lock); IN PKSPIN_LOCK Lock);
NTOSAPI NTKERNELAPI
ULONG ULONG
DDKAPI NTAPI
ExInterlockedExchangeUlong( ExInterlockedExchangeUlong(
IN PULONG Target, IN PULONG Target,
IN ULONG Value, IN ULONG Value,
IN PKSPIN_LOCK Lock); IN PKSPIN_LOCK Lock);
NTOSAPI NTKERNELAPI
INTERLOCKED_RESULT INTERLOCKED_RESULT
DDKAPI NTAPI
ExInterlockedIncrementLong( ExInterlockedIncrementLong(
IN PLONG Addend, IN PLONG Addend,
IN PKSPIN_LOCK Lock); IN PKSPIN_LOCK Lock);
NTHALAPI NTHALAPI
VOID VOID
DDKAPI NTAPI
HalAcquireDisplayOwnership( HalAcquireDisplayOwnership(
IN PHAL_RESET_DISPLAY_PARAMETERS ResetDisplayParameters); IN PHAL_RESET_DISPLAY_PARAMETERS ResetDisplayParameters);
NTHALAPI NTHALAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
HalAllocateAdapterChannel( HalAllocateAdapterChannel(
IN PADAPTER_OBJECT AdapterObject, IN PADAPTER_OBJECT AdapterObject,
IN PWAIT_CONTEXT_BLOCK Wcb, IN PWAIT_CONTEXT_BLOCK Wcb,
@ -199,7 +199,7 @@ HalAllocateAdapterChannel(
NTHALAPI NTHALAPI
PVOID PVOID
DDKAPI NTAPI
HalAllocateCommonBuffer( HalAllocateCommonBuffer(
IN PADAPTER_OBJECT AdapterObject, IN PADAPTER_OBJECT AdapterObject,
IN ULONG Length, IN ULONG Length,
@ -208,7 +208,7 @@ HalAllocateCommonBuffer(
NTHALAPI NTHALAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
HalAssignSlotResources( HalAssignSlotResources(
IN PUNICODE_STRING RegistryPath, IN PUNICODE_STRING RegistryPath,
IN PUNICODE_STRING DriverClassName, IN PUNICODE_STRING DriverClassName,
@ -221,7 +221,7 @@ HalAssignSlotResources(
NTHALAPI NTHALAPI
VOID VOID
DDKAPI NTAPI
HalFreeCommonBuffer( HalFreeCommonBuffer(
IN PADAPTER_OBJECT AdapterObject, IN PADAPTER_OBJECT AdapterObject,
IN ULONG Length, IN ULONG Length,
@ -231,14 +231,14 @@ HalFreeCommonBuffer(
NTHALAPI NTHALAPI
PADAPTER_OBJECT PADAPTER_OBJECT
DDKAPI NTAPI
HalGetAdapter( HalGetAdapter(
IN PDEVICE_DESCRIPTION DeviceDescription, IN PDEVICE_DESCRIPTION DeviceDescription,
IN OUT PULONG NumberOfMapRegisters); IN OUT PULONG NumberOfMapRegisters);
NTHALAPI NTHALAPI
ULONG ULONG
DDKAPI NTAPI
HalGetBusData( HalGetBusData(
IN BUS_DATA_TYPE BusDataType, IN BUS_DATA_TYPE BusDataType,
IN ULONG BusNumber, IN ULONG BusNumber,
@ -248,7 +248,7 @@ HalGetBusData(
NTHALAPI NTHALAPI
ULONG ULONG
DDKAPI NTAPI
HalGetBusDataByOffset( HalGetBusDataByOffset(
IN BUS_DATA_TYPE BusDataType, IN BUS_DATA_TYPE BusDataType,
IN ULONG BusNumber, IN ULONG BusNumber,
@ -259,13 +259,13 @@ HalGetBusDataByOffset(
NTHALAPI NTHALAPI
ULONG ULONG
DDKAPI NTAPI
HalGetDmaAlignmentRequirement( HalGetDmaAlignmentRequirement(
VOID); VOID);
NTHALAPI NTHALAPI
ULONG ULONG
DDKAPI NTAPI
HalGetInterruptVector( HalGetInterruptVector(
IN INTERFACE_TYPE InterfaceType, IN INTERFACE_TYPE InterfaceType,
IN ULONG BusNumber, IN ULONG BusNumber,
@ -276,13 +276,13 @@ HalGetInterruptVector(
NTHALAPI NTHALAPI
ULONG ULONG
DDKAPI NTAPI
HalReadDmaCounter( HalReadDmaCounter(
IN PADAPTER_OBJECT AdapterObject); IN PADAPTER_OBJECT AdapterObject);
NTHALAPI NTHALAPI
ULONG ULONG
DDKAPI NTAPI
HalSetBusData( HalSetBusData(
IN BUS_DATA_TYPE BusDataType, IN BUS_DATA_TYPE BusDataType,
IN ULONG BusNumber, IN ULONG BusNumber,
@ -292,7 +292,7 @@ HalSetBusData(
NTHALAPI NTHALAPI
ULONG ULONG
DDKAPI NTAPI
HalSetBusDataByOffset( HalSetBusDataByOffset(
IN BUS_DATA_TYPE BusDataType, IN BUS_DATA_TYPE BusDataType,
IN ULONG BusNumber, IN ULONG BusNumber,
@ -303,7 +303,7 @@ HalSetBusDataByOffset(
NTHALAPI NTHALAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
HalTranslateBusAddress( HalTranslateBusAddress(
IN INTERFACE_TYPE InterfaceType, IN INTERFACE_TYPE InterfaceType,
IN ULONG BusNumber, IN ULONG BusNumber,
@ -311,9 +311,9 @@ HalTranslateBusAddress(
IN OUT PULONG AddressSpace, IN OUT PULONG AddressSpace,
OUT PPHYSICAL_ADDRESS TranslatedAddress); OUT PPHYSICAL_ADDRESS TranslatedAddress);
NTOSAPI NTKERNELAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
IoAllocateAdapterChannel( IoAllocateAdapterChannel(
IN PADAPTER_OBJECT AdapterObject, IN PADAPTER_OBJECT AdapterObject,
IN PDEVICE_OBJECT DeviceObject, IN PDEVICE_OBJECT DeviceObject,
@ -321,9 +321,9 @@ IoAllocateAdapterChannel(
IN PDRIVER_CONTROL ExecutionRoutine, IN PDRIVER_CONTROL ExecutionRoutine,
IN PVOID Context); IN PVOID Context);
NTOSAPI NTKERNELAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
IoAssignResources( IoAssignResources(
IN PUNICODE_STRING RegistryPath, IN PUNICODE_STRING RegistryPath,
IN PUNICODE_STRING DriverClassName OPTIONAL, IN PUNICODE_STRING DriverClassName OPTIONAL,
@ -332,16 +332,16 @@ IoAssignResources(
IN PIO_RESOURCE_REQUIREMENTS_LIST RequestedResources, IN PIO_RESOURCE_REQUIREMENTS_LIST RequestedResources,
IN OUT PCM_RESOURCE_LIST *AllocatedResources); IN OUT PCM_RESOURCE_LIST *AllocatedResources);
NTOSAPI NTKERNELAPI
NTSTATUS NTSTATUS
DDKAPI NTAPI
IoAttachDeviceByPointer( IoAttachDeviceByPointer(
IN PDEVICE_OBJECT SourceDevice, IN PDEVICE_OBJECT SourceDevice,
IN PDEVICE_OBJECT TargetDevice); IN PDEVICE_OBJECT TargetDevice);
NTHALAPI NTHALAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
IoFlushAdapterBuffers( IoFlushAdapterBuffers(
IN PADAPTER_OBJECT AdapterObject, IN PADAPTER_OBJECT AdapterObject,
IN PMDL Mdl, IN PMDL Mdl,
@ -352,13 +352,13 @@ IoFlushAdapterBuffers(
NTHALAPI NTHALAPI
VOID VOID
DDKAPI NTAPI
IoFreeAdapterChannel( IoFreeAdapterChannel(
IN PADAPTER_OBJECT AdapterObject); IN PADAPTER_OBJECT AdapterObject);
NTHALAPI NTHALAPI
VOID VOID
DDKAPI NTAPI
IoFreeMapRegisters( IoFreeMapRegisters(
IN PADAPTER_OBJECT AdapterObject, IN PADAPTER_OBJECT AdapterObject,
IN PVOID MapRegisterBase, IN PVOID MapRegisterBase,
@ -366,7 +366,7 @@ IoFreeMapRegisters(
NTHALAPI NTHALAPI
PHYSICAL_ADDRESS PHYSICAL_ADDRESS
DDKAPI NTAPI
IoMapTransfer( IoMapTransfer(
IN PADAPTER_OBJECT AdapterObject, IN PADAPTER_OBJECT AdapterObject,
IN PMDL Mdl, IN PMDL Mdl,
@ -375,196 +375,196 @@ IoMapTransfer(
IN OUT PULONG Length, IN OUT PULONG Length,
IN BOOLEAN WriteToDevice); IN BOOLEAN WriteToDevice);
NTOSAPI NTKERNELAPI
PMDL PMDL
DDKAPI NTAPI
MmCreateMdl( MmCreateMdl(
IN PMDL MemoryDescriptorList OPTIONAL, IN PMDL MemoryDescriptorList OPTIONAL,
IN PVOID Base, IN PVOID Base,
IN SIZE_T Length); IN SIZE_T Length);
NTOSAPI NTKERNELAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
MmIsNonPagedSystemAddressValid( MmIsNonPagedSystemAddressValid(
IN PVOID VirtualAddress); IN PVOID VirtualAddress);
NTOSAPI NTSYSAPI
LARGE_INTEGER LARGE_INTEGER
DDKAPI NTAPI
RtlEnlargedIntegerMultiply( RtlEnlargedIntegerMultiply(
IN LONG Multiplicand, IN LONG Multiplicand,
IN LONG Multiplier); IN LONG Multiplier);
NTOSAPI NTSYSAPI
ULONG ULONG
DDKAPI NTAPI
RtlEnlargedUnsignedDivide( RtlEnlargedUnsignedDivide(
IN ULARGE_INTEGER Dividend, IN ULARGE_INTEGER Dividend,
IN ULONG Divisor, IN ULONG Divisor,
IN OUT PULONG Remainder); IN OUT PULONG Remainder);
NTOSAPI NTSYSAPI
LARGE_INTEGER LARGE_INTEGER
DDKAPI NTAPI
RtlEnlargedUnsignedMultiply( RtlEnlargedUnsignedMultiply(
IN ULONG Multiplicand, IN ULONG Multiplicand,
IN ULONG Multiplier); IN ULONG Multiplier);
NTOSAPI NTSYSAPI
LARGE_INTEGER LARGE_INTEGER
DDKAPI NTAPI
RtlExtendedIntegerMultiply( RtlExtendedIntegerMultiply(
IN LARGE_INTEGER Multiplicand, IN LARGE_INTEGER Multiplicand,
IN LONG Multiplier); IN LONG Multiplier);
NTOSAPI NTSYSAPI
LARGE_INTEGER LARGE_INTEGER
DDKAPI NTAPI
RtlExtendedLargeIntegerDivide( RtlExtendedLargeIntegerDivide(
IN LARGE_INTEGER Dividend, IN LARGE_INTEGER Dividend,
IN ULONG Divisor, IN ULONG Divisor,
IN OUT PULONG Remainder); IN OUT PULONG Remainder);
NTOSAPI NTSYSAPI
LARGE_INTEGER LARGE_INTEGER
DDKAPI NTAPI
RtlExtendedMagicDivide( RtlExtendedMagicDivide(
IN LARGE_INTEGER Dividend, IN LARGE_INTEGER Dividend,
IN LARGE_INTEGER MagicDivisor, IN LARGE_INTEGER MagicDivisor,
IN CCHAR ShiftCount); IN CCHAR ShiftCount);
NTOSAPI NTSYSAPI
LARGE_INTEGER LARGE_INTEGER
DDKAPI NTAPI
RtlLargeIntegerAdd( RtlLargeIntegerAdd(
IN LARGE_INTEGER Addend1, IN LARGE_INTEGER Addend1,
IN LARGE_INTEGER Addend2); IN LARGE_INTEGER Addend2);
NTOSAPI NTSYSAPI
VOID VOID
DDKAPI NTAPI
RtlLargeIntegerAnd( RtlLargeIntegerAnd(
IN OUT LARGE_INTEGER Result, IN OUT LARGE_INTEGER Result,
IN LARGE_INTEGER Source, IN LARGE_INTEGER Source,
IN LARGE_INTEGER Mask); IN LARGE_INTEGER Mask);
NTOSAPI NTSYSAPI
LARGE_INTEGER LARGE_INTEGER
DDKAPI NTAPI
RtlLargeIntegerArithmeticShift( RtlLargeIntegerArithmeticShift(
IN LARGE_INTEGER LargeInteger, IN LARGE_INTEGER LargeInteger,
IN CCHAR ShiftCount); IN CCHAR ShiftCount);
NTOSAPI NTSYSAPI
LARGE_INTEGER LARGE_INTEGER
DDKAPI NTAPI
RtlLargeIntegerDivide( RtlLargeIntegerDivide(
IN LARGE_INTEGER Dividend, IN LARGE_INTEGER Dividend,
IN LARGE_INTEGER Divisor, IN LARGE_INTEGER Divisor,
IN OUT PLARGE_INTEGER Remainder); IN OUT PLARGE_INTEGER Remainder);
NTOSAPI NTSYSAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
RtlLargeIntegerEqualTo( RtlLargeIntegerEqualTo(
IN LARGE_INTEGER Operand1, IN LARGE_INTEGER Operand1,
IN LARGE_INTEGER Operand2); IN LARGE_INTEGER Operand2);
NTOSAPI NTSYSAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
RtlLargeIntegerEqualToZero( RtlLargeIntegerEqualToZero(
IN LARGE_INTEGER Operand); IN LARGE_INTEGER Operand);
NTOSAPI NTSYSAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
RtlLargeIntegerGreaterOrEqualToZero( RtlLargeIntegerGreaterOrEqualToZero(
IN LARGE_INTEGER Operand); IN LARGE_INTEGER Operand);
NTOSAPI NTSYSAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
RtlLargeIntegerGreaterThan( RtlLargeIntegerGreaterThan(
IN LARGE_INTEGER Operand1, IN LARGE_INTEGER Operand1,
IN LARGE_INTEGER Operand2); IN LARGE_INTEGER Operand2);
NTOSAPI NTSYSAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
RtlLargeIntegerGreaterThanOrEqualTo( RtlLargeIntegerGreaterThanOrEqualTo(
IN LARGE_INTEGER Operand1, IN LARGE_INTEGER Operand1,
IN LARGE_INTEGER Operand2); IN LARGE_INTEGER Operand2);
NTOSAPI NTSYSAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
RtlLargeIntegerGreaterThanZero( RtlLargeIntegerGreaterThanZero(
IN LARGE_INTEGER Operand); IN LARGE_INTEGER Operand);
NTOSAPI NTSYSAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
RtlLargeIntegerLessOrEqualToZero( RtlLargeIntegerLessOrEqualToZero(
IN LARGE_INTEGER Operand); IN LARGE_INTEGER Operand);
NTOSAPI NTSYSAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
RtlLargeIntegerLessThan( RtlLargeIntegerLessThan(
IN LARGE_INTEGER Operand1, IN LARGE_INTEGER Operand1,
IN LARGE_INTEGER Operand2); IN LARGE_INTEGER Operand2);
NTOSAPI NTSYSAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
RtlLargeIntegerLessThanOrEqualTo( RtlLargeIntegerLessThanOrEqualTo(
IN LARGE_INTEGER Operand1, IN LARGE_INTEGER Operand1,
IN LARGE_INTEGER Operand2); IN LARGE_INTEGER Operand2);
NTOSAPI NTSYSAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
RtlLargeIntegerLessThanZero( RtlLargeIntegerLessThanZero(
IN LARGE_INTEGER Operand); IN LARGE_INTEGER Operand);
NTOSAPI NTSYSAPI
LARGE_INTEGER LARGE_INTEGER
DDKAPI NTAPI
RtlLargeIntegerNegate( RtlLargeIntegerNegate(
IN LARGE_INTEGER Subtrahend); IN LARGE_INTEGER Subtrahend);
NTOSAPI NTSYSAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
RtlLargeIntegerNotEqualTo( RtlLargeIntegerNotEqualTo(
IN LARGE_INTEGER Operand1, IN LARGE_INTEGER Operand1,
IN LARGE_INTEGER Operand2); IN LARGE_INTEGER Operand2);
NTOSAPI NTSYSAPI
BOOLEAN BOOLEAN
DDKAPI NTAPI
RtlLargeIntegerNotEqualToZero( RtlLargeIntegerNotEqualToZero(
IN LARGE_INTEGER Operand); IN LARGE_INTEGER Operand);
NTOSAPI NTSYSAPI
LARGE_INTEGER LARGE_INTEGER
DDKAPI NTAPI
RtlLargeIntegerShiftLeft( RtlLargeIntegerShiftLeft(
IN LARGE_INTEGER LargeInteger, IN LARGE_INTEGER LargeInteger,
IN CCHAR ShiftCount); IN CCHAR ShiftCount);
NTOSAPI NTSYSAPI
LARGE_INTEGER LARGE_INTEGER
DDKAPI NTAPI
RtlLargeIntegerShiftRight( RtlLargeIntegerShiftRight(
IN LARGE_INTEGER LargeInteger, IN LARGE_INTEGER LargeInteger,
IN CCHAR ShiftCount); IN CCHAR ShiftCount);
NTOSAPI NTSYSAPI
LARGE_INTEGER LARGE_INTEGER
DDKAPI NTAPI
RtlLargeIntegerSubtract( RtlLargeIntegerSubtract(
IN LARGE_INTEGER Minuend, IN LARGE_INTEGER Minuend,
IN LARGE_INTEGER Subtrahend); IN LARGE_INTEGER Subtrahend);
@ -587,21 +587,21 @@ RtlLargeIntegerSubtract(
#ifdef _X86_ #ifdef _X86_
NTOSAPI NTKERNELAPI
INTERLOCKED_RESULT INTERLOCKED_RESULT
DDKFASTAPI FASTCALL
Exfi386InterlockedIncrementLong( Exfi386InterlockedIncrementLong(
IN PLONG Addend); IN PLONG Addend);
NTOSAPI NTKERNELAPI
INTERLOCKED_RESULT INTERLOCKED_RESULT
DDKFASTAPI FASTCALL
Exfi386InterlockedDecrementLong( Exfi386InterlockedDecrementLong(
IN PLONG Addend); IN PLONG Addend);
NTOSAPI NTKERNELAPI
ULONG ULONG
DDKFASTAPI FASTCALL
Exfi386InterlockedExchangeUlong( Exfi386InterlockedExchangeUlong(
IN PULONG Target, IN PULONG Target,
IN ULONG Value); IN ULONG Value);

View file

@ -43,6 +43,15 @@ KeInitializeApc(
IN PVOID Context IN PVOID Context
); );
BOOLEAN
NTAPI
KeInsertQueueApc(
IN PKAPC Apc,
IN PVOID SystemArgument1,
IN PVOID SystemArgument2,
IN KPRIORITY PriorityBoost
);
VOID VOID
NTAPI NTAPI
KiDeliverApc( KiDeliverApc(

View file

@ -52,6 +52,7 @@ ObCreateObject(
OUT PVOID *Object OUT PVOID *Object
); );
NTKERNELAPI
NTSTATUS NTSTATUS
NTAPI NTAPI
ObCreateObjectType( ObCreateObjectType(
@ -68,6 +69,7 @@ ObGetObjectPointerCount(
IN PVOID Object IN PVOID Object
); );
NTKERNELAPI
NTSTATUS NTSTATUS
NTAPI NTAPI
ObOpenObjectByName( ObOpenObjectByName(

View file

@ -7,7 +7,7 @@
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com) * PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
*/ */
#define NTOSAPI #define _NTOSKRNL_
#include <ntddk.h> #include <ntddk.h>
#include <reactos/rossym.h> #include <reactos/rossym.h>
#include "rossympriv.h" #include "rossympriv.h"