14#undef NdisInterlockedAddUlong
81#undef NdisInterlockedInsertHeadList
95#undef NdisInterlockedInsertTailList
110#undef NdisInterlockedRemoveHeadList
208 if ( FileHandleObject->
Mapped )
249 if ( !FullFileName.
Buffer )
257 if ( !FileHandleObject )
307 if( FileHandleObject ) {
309 FileHandleObject =
NULL;
372 *pSystemUpTime = TickCount.
LowPart;
378#undef NdisInterlockedDecrement
397#undef NdisInterlockedIncrement
416#undef NdisInterlockedPopEntrySList
436#undef NdisInterlockedPushEntrySList
528 UCHAR PartialCancelId;
534 return PartialCancelId;
#define InterlockedIncrement
#define InterlockedDecrement
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define NT_SUCCESS(StatCode)
static void cleanup(void)
#define NDIS_DbgPrint(_t_, _x_)
VOID EXPORT NdisInterlockedAddLargeInteger(IN PLARGE_INTEGER Addend, IN LARGE_INTEGER Increment, IN PNDIS_SPIN_LOCK SpinLock)
VOID EXPORT NdisGetCurrentProcessorCounts(OUT PULONG pIdleCount, OUT PULONG pKernelAndUser, OUT PULONG pIndex)
LONG EXPORT NdisCompareAnsiString(IN PNDIS_ANSI_STRING String1, IN PNDIS_ANSI_STRING String2, BOOLEAN CaseInSensitive)
FORCEINLINE PNDIS_HANDLE_OBJECT NDIS_HANDLE_TO_POBJECT(NDIS_HANDLE handle)
VOID EXPORT NdisOpenFile(OUT PNDIS_STATUS Status, OUT PNDIS_HANDLE FileHandle, OUT PUINT FileLength, IN PNDIS_STRING FileName, IN NDIS_PHYSICAL_ADDRESS HighestAcceptableAddress)
static const WCHAR NDIS_FILE_FOLDER[]
FORCEINLINE NDIS_HANDLE NDIS_POBJECT_TO_HANDLE(PNDIS_HANDLE_OBJECT obj)
VOID EXPORT NdisGetCurrentProcessorCpuUsage(PULONG pCpuUsage)
UINT EXPORT NdisGetVersion(VOID)
NDIS_STATUS EXPORT NdisScheduleWorkItem(IN PNDIS_WORK_ITEM pWorkItem)
VOID EXPORT NdisMapFile(OUT PNDIS_STATUS Status, OUT PVOID *MappedBuffer, IN NDIS_HANDLE FileHandle)
LONG EXPORT NdisCompareUnicodeString(IN PNDIS_STRING String1, IN PNDIS_STRING String2, IN BOOLEAN CaseInSensitive)
struct _NDIS_HANDLE_OBJECT * PNDIS_HANDLE_OBJECT
ULONG EXPORT NdisGetSharedDataAlignment(VOID)
VOID EXPORT NdisCloseFile(IN NDIS_HANDLE FileHandle)
VOID EXPORT NdisUnmapFile(IN NDIS_HANDLE FileHandle)
UCHAR EXPORT NdisGeneratePartialCancelId(VOID)
CCHAR EXPORT NdisSystemProcessorCount(VOID)
VOID EXPORT NdisGetSystemUpTime(OUT PULONG pSystemUpTime)
struct _NDIS_HANDLE_OBJECT NDIS_HANDLE_OBJECT
VOID NTAPI ndisProcWorkItemHandler(PVOID pContext)
ULONG RtlCompareUnicodeString(PUNICODE_STRING s1, PUNICODE_STRING s2, BOOLEAN UpCase)
#define ExAllocatePool(type, size)
IN OUT PLONG IN OUT PLONG Addend IN OUT PLONG IN LONG Increment
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE FileHandle
#define FILE_SYNCHRONOUS_IO_NONALERT
#define OBJ_KERNEL_HANDLE
#define OBJ_CASE_INSENSITIVE
ULONG NTAPI ExInterlockedAddUlong(IN OUT PULONG Addend, IN ULONG Increment, IN OUT PKSPIN_LOCK Lock)
PLIST_ENTRY NTAPI ExInterlockedInsertHeadList(IN OUT PLIST_ENTRY ListHead, IN OUT PLIST_ENTRY ListEntry, IN OUT PKSPIN_LOCK Lock)
PLIST_ENTRY NTAPI ExInterlockedInsertTailList(IN OUT PLIST_ENTRY ListHead, IN OUT PLIST_ENTRY ListEntry, IN OUT PKSPIN_LOCK Lock)
LARGE_INTEGER NTAPI ExInterlockedAddLargeInteger(IN OUT PLARGE_INTEGER Addend, IN LARGE_INTEGER Increment, IN OUT PKSPIN_LOCK Lock)
PLIST_ENTRY NTAPI ExInterlockedRemoveHeadList(IN OUT PLIST_ENTRY ListHead, IN OUT PKSPIN_LOCK Lock)
#define memmove(s1, s2, n)
static OUT PIO_STATUS_BLOCK IoStatusBlock
#define InitializeObjectAttributes(p, n, a, r, s)
#define NdisInterlockedIncrement(Addend)
_Out_ PULONG _Out_ PULONG pIndex
#define NdisInterlockedRemoveHeadList(_ListHead, _SpinLock)
_Out_ PULONG pKernelAndUser
#define NdisInterlockedInsertTailList(_ListHead, _ListEntry, _SpinLock)
#define NDIS_STATUS_FAILURE
struct _NDIS_WORK_ITEM * PNDIS_WORK_ITEM
_Out_ PNDIS_HANDLE _Out_ PUINT FileLength
#define NdisInterlockedAddUlong(_Addend, _Increment, _SpinLock)
#define NDIS_STATUS_SUCCESS
#define NDIS_STATUS_ALREADY_MAPPED
#define NdisInterlockedPushEntrySList(SListHead, SListEntry, Lock)
#define NdisInterlockedDecrement(Addend)
_Out_ PVOID * MappedBuffer
_Out_ PNDIS_HANDLE _Out_ PUINT _In_ PNDIS_STRING _In_ NDIS_PHYSICAL_ADDRESS HighestAcceptableAddress
#define NdisInterlockedInsertHeadList(_ListHead, _ListEntry, _SpinLock)
#define NDIS_STATUS_RESOURCES
#define NdisInterlockedPopEntrySList(SListHead, Lock)
VOID NTAPI ExGetCurrentProcessorCounts(PULONG IdleTime, PULONG KernelAndUserTime, PULONG ProcessorNumber)
VOID NTAPI ExGetCurrentProcessorCpuUsage(PULONG CpuUsage)
NTSYSAPI NTSTATUS NTAPI ZwClose(_In_ HANDLE Handle)
_In_ const STRING * String2
_In_ const STRING _In_ BOOLEAN CaseInSensitive
NTSYSAPI NTSTATUS NTAPI RtlAppendUnicodeStringToString(PUNICODE_STRING Destination, PUNICODE_STRING Source)
NTSYSAPI LONG NTAPI RtlCompareString(PSTRING String1, PSTRING String2, BOOLEAN CaseInSensitive)
ULONG NTAPI KeGetRecommendedSharedDataAlignment(VOID)
ULONG NTAPI KeQueryTimeIncrement(VOID)
#define KeQueryTickCount(CurrentCount)
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFSPINLOCK * SpinLock
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWAITLOCK * Lock
VOID NTAPI ExQueueWorkItem(IN PWORK_QUEUE_ITEM WorkItem, IN WORK_QUEUE_TYPE QueueType)
#define ExInterlockedPushEntrySList(SListHead, SListEntry, Lock)
#define ExInitializeWorkItem(Item, Routine, Context)
#define ExInterlockedPopEntrySList(SListHead, Lock)
struct _WORK_QUEUE_ITEM * PWORK_QUEUE_ITEM