mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fixed STDCALL issues in Ex functions
svn path=/trunk/; revision=1176
This commit is contained in:
parent
64c33bb910
commit
d40e55b4e1
1 changed files with 160 additions and 101 deletions
|
@ -3,10 +3,6 @@
|
|||
|
||||
/* EXECUTIVE ROUTINES ******************************************************/
|
||||
|
||||
VOID
|
||||
ExReleaseResourceLite (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
VOID
|
||||
FASTCALL
|
||||
ExAcquireFastMutex (
|
||||
|
@ -18,39 +14,47 @@ ExAcquireFastMutexUnsafe (
|
|||
PFAST_MUTEX FastMutex
|
||||
);
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
ExAcquireResourceExclusive (
|
||||
PERESOURCE Resource,
|
||||
BOOLEAN Wait
|
||||
);
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
ExAcquireResourceExclusiveLite (
|
||||
PERESOURCE Resource,
|
||||
BOOLEAN Wait
|
||||
);
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
ExAcquireResourceSharedLite (
|
||||
PERESOURCE Resource,
|
||||
BOOLEAN Wait
|
||||
);
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
ExAcquireSharedStarveExclusive (
|
||||
PERESOURCE Resource,
|
||||
BOOLEAN Wait
|
||||
);
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
ExAcquireSharedWaitForExclusive (
|
||||
PERESOURCE Resource,
|
||||
BOOLEAN Wait
|
||||
);
|
||||
PVOID
|
||||
STDCALL
|
||||
ExAllocateFromNPagedLookasideList (
|
||||
PNPAGED_LOOKASIDE_LIST LookSide
|
||||
);
|
||||
PVOID
|
||||
STDCALL
|
||||
ExAllocateFromPagedLookasideList (
|
||||
PPAGED_LOOKASIDE_LIST LookSide
|
||||
);
|
||||
PVOID
|
||||
STDCALL
|
||||
ExAllocateFromZone (
|
||||
PZONE_HEADER Zone
|
||||
);
|
||||
|
@ -90,26 +94,32 @@ ExAllocatePoolWithTag (
|
|||
IN ULONG Tag
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExConvertExclusiveToSharedLite (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExDeleteNPagedLookasideList (
|
||||
PNPAGED_LOOKASIDE_LIST Lookaside
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExDeletePagedLookasideList (
|
||||
PPAGED_LOOKASIDE_LIST Lookaside
|
||||
);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ExDeleteResource (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ExDeleteResourceLite (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ExExtendZone (
|
||||
PZONE_HEADER Zone,
|
||||
PVOID Segment,
|
||||
|
@ -122,34 +132,41 @@ ExExtendZone (
|
|||
* block = block to free
|
||||
*/
|
||||
VOID
|
||||
STDCALL
|
||||
ExFreePool (
|
||||
PVOID block
|
||||
);
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
ExFreeToNPagedLookasideList (
|
||||
PNPAGED_LOOKASIDE_LIST Lookaside,
|
||||
PVOID Entry
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExFreeToPagedLookasideList (
|
||||
PPAGED_LOOKASIDE_LIST Lookaside,
|
||||
PVOID Entry
|
||||
);
|
||||
PVOID
|
||||
STDCALL
|
||||
ExFreeToZone (
|
||||
PZONE_HEADER Zone,
|
||||
PVOID Block
|
||||
);
|
||||
ERESOURCE_THREAD
|
||||
STDCALL
|
||||
ExGetCurrentResourceThread (
|
||||
VOID
|
||||
);
|
||||
ULONG
|
||||
STDCALL
|
||||
ExGetExclusiveWaiterCount (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
ULONG
|
||||
STDCALL
|
||||
ExGetSharedWaiterCount (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
|
@ -161,6 +178,7 @@ ExInitializeFastMutex (
|
|||
);
|
||||
/* ReactOS Specific: end */
|
||||
VOID
|
||||
STDCALL
|
||||
ExInitializeNPagedLookasideList (
|
||||
PNPAGED_LOOKASIDE_LIST Lookaside,
|
||||
PALLOCATE_FUNCTION Allocate,
|
||||
|
@ -171,6 +189,7 @@ ExInitializeNPagedLookasideList (
|
|||
USHORT Depth
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExInitializePagedLookasideList (
|
||||
PPAGED_LOOKASIDE_LIST Lookaside,
|
||||
PALLOCATE_FUNCTION Allocate,
|
||||
|
@ -181,24 +200,29 @@ ExInitializePagedLookasideList (
|
|||
USHORT Depth
|
||||
);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ExInitializeResource (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ExInitializeResourceLite (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExInitializeSListHead (
|
||||
PSLIST_HEADER SListHead
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExInitializeWorkItem (
|
||||
PWORK_QUEUE_ITEM Item,
|
||||
PWORKER_THREAD_ROUTINE Routine,
|
||||
PVOID Context
|
||||
);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ExInitializeZone (
|
||||
PZONE_HEADER Zone,
|
||||
ULONG BlockSize,
|
||||
|
@ -206,17 +230,99 @@ ExInitializeZone (
|
|||
ULONG InitialSegmentSize
|
||||
);
|
||||
LARGE_INTEGER
|
||||
STDCALL
|
||||
ExInterlockedAddLargeInteger (
|
||||
PLARGE_INTEGER Addend,
|
||||
LARGE_INTEGER Increment,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
ULONG
|
||||
STDCALL
|
||||
ExInterlockedAddUlong (
|
||||
PULONG Addend,
|
||||
ULONG Increment,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PVOID
|
||||
STDCALL
|
||||
ExInterlockedAllocateFromZone (
|
||||
PZONE_HEADER Zone,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
INTERLOCKED_RESULT
|
||||
STDCALL
|
||||
ExInterlockedDecrementLong (
|
||||
PLONG Addend,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
ULONG
|
||||
STDCALL
|
||||
ExInterlockedExchangeUlong (
|
||||
PULONG Target,
|
||||
ULONG Value,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
ExInterlockedExtendZone (
|
||||
PZONE_HEADER Zone,
|
||||
PVOID Segment,
|
||||
ULONG SegmentSize,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PVOID
|
||||
STDCALL
|
||||
ExInterlockedFreeToZone (
|
||||
PZONE_HEADER Zone,
|
||||
PVOID Block,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
INTERLOCKED_RESULT
|
||||
STDCALL
|
||||
ExInterlockedIncrementLong (
|
||||
PLONG Addend,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PLIST_ENTRY
|
||||
STDCALL
|
||||
ExInterlockedInsertHeadList (
|
||||
PLIST_ENTRY ListHead,
|
||||
PLIST_ENTRY ListEntry,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PLIST_ENTRY
|
||||
STDCALL
|
||||
ExInterlockedInsertTailList (
|
||||
PLIST_ENTRY ListHead,
|
||||
PLIST_ENTRY ListEntry,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PSINGLE_LIST_ENTRY
|
||||
STDCALL
|
||||
ExInterlockedPopEntryList (
|
||||
PSINGLE_LIST_ENTRY ListHead,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PSINGLE_LIST_ENTRY
|
||||
STDCALL
|
||||
ExInterlockedPopEntrySList (
|
||||
PSLIST_HEADER ListHead,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PSINGLE_LIST_ENTRY
|
||||
STDCALL
|
||||
ExInterlockedPushEntryList (
|
||||
PSINGLE_LIST_ENTRY ListHead,
|
||||
PSINGLE_LIST_ENTRY ListEntry,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PSINGLE_LIST_ENTRY
|
||||
STDCALL
|
||||
ExInterlockedPushEntrySList (
|
||||
PSLIST_HEADER ListHead,
|
||||
PSINGLE_LIST_ENTRY ListEntry,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
|
||||
VOID
|
||||
ExInterlockedRemoveEntryList (
|
||||
|
@ -224,29 +330,47 @@ ExInterlockedRemoveEntryList (
|
|||
PLIST_ENTRY Entry,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
VOID
|
||||
RemoveEntryFromList (
|
||||
PLIST_ENTRY ListHead,
|
||||
PLIST_ENTRY Entry
|
||||
);
|
||||
|
||||
PLIST_ENTRY
|
||||
STDCALL
|
||||
ExInterlockedRemoveHeadList (
|
||||
PLIST_ENTRY Head,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PLIST_ENTRY
|
||||
ExInterlockedInsertTailList (
|
||||
PLIST_ENTRY ListHead,
|
||||
PLIST_ENTRY ListEntry,
|
||||
PKSPIN_LOCK Lock
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
ExIsFullZone (
|
||||
PZONE_HEADER Zone
|
||||
);
|
||||
PLIST_ENTRY
|
||||
ExInterlockedInsertHeadList (
|
||||
PLIST_ENTRY ListHead,
|
||||
PLIST_ENTRY ListEntry,
|
||||
PKSPIN_LOCK Lock
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
ExIsObjectInFirstZoneSegment (
|
||||
PZONE_HEADER Zone,
|
||||
PVOID Object
|
||||
);
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
ExIsResourceAcquiredExclusiveLite (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
ULONG
|
||||
STDCALL
|
||||
ExIsResourceAcquiredSharedLite (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExLocalTimeToSystemTime (
|
||||
PLARGE_INTEGER LocalTime,
|
||||
PLARGE_INTEGER SystemTime
|
||||
);
|
||||
USHORT
|
||||
STDCALL
|
||||
ExQueryDepthSListHead (
|
||||
PSLIST_HEADER SListHead
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExQueueWorkItem (
|
||||
PWORK_QUEUE_ITEM WorkItem,
|
||||
WORK_QUEUE_TYPE QueueType
|
||||
|
@ -267,6 +391,7 @@ ExRaiseStatus (
|
|||
NTSTATUS Status
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExReinitializeResourceLite (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
|
@ -283,20 +408,29 @@ ExReleaseFastMutexUnsafe (
|
|||
PFAST_MUTEX Mutex
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExReleaseResource (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExReleaseResourceLite (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExReleaseResourceForThread (
|
||||
PERESOURCE Resource,
|
||||
PERESOURCE Resource,
|
||||
ERESOURCE_THREAD ResourceThreadId
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExReleaseResourceForThreadLite (
|
||||
PERESOURCE Resource,
|
||||
ERESOURCE_THREAD ResourceThreadId
|
||||
);
|
||||
VOID
|
||||
STDCALL
|
||||
ExSystemTimeToLocalTime (
|
||||
PLARGE_INTEGER SystemTime,
|
||||
PLARGE_INTEGER LocalTime
|
||||
|
@ -307,6 +441,7 @@ ExTryToAcquireFastMutex (
|
|||
PFAST_MUTEX FastMutex
|
||||
);
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
ExTryToAcquireResourceExclusiveLite (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
|
@ -356,61 +491,13 @@ FASTCALL
|
|||
InterlockedIncrement (
|
||||
PLONG Addend
|
||||
);
|
||||
/*---*/
|
||||
PVOID
|
||||
ExInterlockedAllocateFromZone (
|
||||
PZONE_HEADER Zone,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PVOID
|
||||
ExInterlockedFreeToZone (
|
||||
PZONE_HEADER Zone,
|
||||
PVOID Block,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
NTSTATUS
|
||||
ExInterlockedExtendZone (
|
||||
PZONE_HEADER Zone,
|
||||
PVOID Segment,
|
||||
ULONG SegmentSize,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PSINGLE_LIST_ENTRY
|
||||
ExInterlockedPopEntryList (
|
||||
PSINGLE_LIST_ENTRY ListHead,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PSINGLE_LIST_ENTRY
|
||||
ExInterlockedPushEntryList (
|
||||
PSINGLE_LIST_ENTRY ListHead,
|
||||
PSINGLE_LIST_ENTRY ListEntry,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PSINGLE_LIST_ENTRY
|
||||
ExInterlockedPushEntrySList (
|
||||
PSLIST_HEADER ListHead,
|
||||
PSINGLE_LIST_ENTRY ListEntry,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
PSINGLE_LIST_ENTRY
|
||||
ExInterlockedPopEntrySList (
|
||||
PSLIST_HEADER ListHead,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
BOOLEAN
|
||||
ExIsFullZone (
|
||||
PZONE_HEADER Zone
|
||||
);
|
||||
BOOLEAN
|
||||
ExIsObjectInFirstZoneSegment (
|
||||
PZONE_HEADER Zone,
|
||||
PVOID Object
|
||||
);
|
||||
|
||||
VOID
|
||||
ExLocalTimeToSystemTime (
|
||||
PLARGE_INTEGER LocalTime,
|
||||
PLARGE_INTEGER SystemTime
|
||||
RemoveEntryFromList (
|
||||
PLIST_ENTRY ListHead,
|
||||
PLIST_ENTRY Entry
|
||||
);
|
||||
/*---*/
|
||||
|
||||
typedef
|
||||
unsigned int
|
||||
|
@ -423,33 +510,5 @@ ExHookException (
|
|||
exception_hook fn,
|
||||
unsigned int exp
|
||||
);
|
||||
INTERLOCKED_RESULT
|
||||
ExInterlockedDecrementLong (
|
||||
PLONG Addend,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
ULONG
|
||||
ExInterlockedExchangeUlong (
|
||||
PULONG Target,
|
||||
ULONG Value,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
INTERLOCKED_RESULT
|
||||
ExInterlockedIncrementLong (
|
||||
PLONG Addend,
|
||||
PKSPIN_LOCK Lock
|
||||
);
|
||||
BOOLEAN
|
||||
ExIsResourceAcquiredExclusiveLite (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
ULONG
|
||||
ExIsResourceAcquiredSharedLite (
|
||||
PERESOURCE Resource
|
||||
);
|
||||
USHORT
|
||||
ExQueryDepthSListHead (
|
||||
PSLIST_HEADER SListHead
|
||||
);
|
||||
|
||||
#endif /* ndef _NTOS_EXFUNCS_H */
|
||||
|
|
Loading…
Reference in a new issue