亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wdm.h

?? DDK 開發程序面美觀
?? H
?? 第 1 頁 / 共 5 頁
字號:
/*++ BUILD Version: 0110    // Increment this if a change has global effects

Copyright (c) 1990-1999  Microsoft Corporation

Module Name:

    wdm.h

Abstract:

    This module defines the WDM types, constants, and functions that are
    exposed to device drivers.

Revision History:

--*/

#ifndef _WDMDDK_
#define _WDMDDK_
#define _NTDDK_

#define NT_INCLUDED
#define _CTYPE_DISABLE_MACROS

#include <excpt.h>
#include "ntdef.h"
#include <ntstatus.h>
#include <bugcodes.h>
#include <ntiologc.h>

//
// Define types that are not exported.
//

typedef struct _KTHREAD *PKTHREAD;
typedef struct _ETHREAD *PETHREAD;
typedef struct _EPROCESS *PEPROCESS;
typedef struct _KINTERRUPT *PKINTERRUPT;
typedef struct _IO_TIMER *PIO_TIMER;

typedef struct _OBJECT_TYPE *POBJECT_TYPE;
typedef struct _CALLBACK_OBJECT *PCALLBACK_OBJECT;

typedef struct _SECURITY_QUALITY_OF_SERVICE *PSECURITY_QUALITY_OF_SERVICE;
typedef struct _ACCESS_STATE *PACCESS_STATE;

#if defined(_M_ALPHA)
void *__rdthread(void);
#pragma intrinsic(__rdthread)

unsigned char __swpirql(unsigned char);
#pragma intrinsic(__swpirql)

void *__rdpcr(void);
#pragma intrinsic(__rdpcr)
#define PCR ((PKPCR)__rdpcr())

#define KeGetCurrentThread() ((struct _KTHREAD *) __rdthread())
#endif // defined(_M_ALPHA)

#if defined(_M_IX86)
PKTHREAD NTAPI KeGetCurrentThread();
#endif // defined(_M_IX86)

#if defined(_M_IA64)

//
// Define base address for kernel and user space
//

#ifdef _WIN64

#define UREGION_INDEX 1

#define KREGION_INDEX 7

#define UADDRESS_BASE ((ULONG_PTR)UREGION_INDEX << 61)

#define KADDRESS_BASE ((ULONG_PTR)KREGION_INDEX << 61)

#else  // !_WIN64

#define KADDRESS_BASE 0

#define UADDRESS_BASE 0

#endif // !_WIN64

//
// Define Address of Processor Control Registers.
//

#define KIPCR ((ULONG_PTR)(KADDRESS_BASE + 0xffff0000))            // kernel address of first PCR

//
// Define Pointer to Processor Control Registers.
//

#define PCR ((volatile KPCR * const)KIPCR)

PKTHREAD NTAPI KeGetCurrentThread();

#endif // defined(_M_IA64)

#ifndef FAR
#define FAR
#endif

#define PsGetCurrentProcess() IoGetCurrentProcess()
#define PsGetCurrentThread() ((PETHREAD) (KeGetCurrentThread()))
extern PCCHAR KeNumberProcessors;


#if defined(_WIN64)

typedef union _SLIST_HEADER {
    ULONGLONG Alignment;
    struct {
        ULONGLONG Depth : 16;
        ULONGLONG Sequence : 8;
        ULONGLONG Next : 40;
    };
} SLIST_HEADER, *PSLIST_HEADER;

#else

typedef union _SLIST_HEADER {
    ULONGLONG Alignment;
    struct {
        SINGLE_LIST_ENTRY Next;
        USHORT Depth;
        USHORT Sequence;
    };
} SLIST_HEADER, *PSLIST_HEADER;

#endif


//
// Define alignment macros to align structure sizes and pointers up and down.
//

#define ALIGN_DOWN(length, type) \
    ((ULONG)(length) & ~(sizeof(type) - 1))

#define ALIGN_UP(length, type) \
    (ALIGN_DOWN(((ULONG)(length) + sizeof(type) - 1), type))

#define ALIGN_DOWN_POINTER(address, type) \
    ((PVOID)((ULONG_PTR)(address) & ~((ULONG_PTR)sizeof(type) - 1)))

#define ALIGN_UP_POINTER(address, type) \
    (ALIGN_DOWN_POINTER(((ULONG_PTR)(address) + sizeof(type) - 1), type))

#define POOL_TAGGING 1

#ifndef DBG
#define DBG 0
#endif

#if DBG
#define IF_DEBUG if (TRUE)
#else
#define IF_DEBUG if (FALSE)
#endif

#if DEVL


extern ULONG NtGlobalFlag;

#define IF_NTOS_DEBUG( FlagName ) \
    if (NtGlobalFlag & (FLG_ ## FlagName))

#else
#define IF_NTOS_DEBUG( FlagName ) if (FALSE)
#endif

//
// Kernel definitions that need to be here for forward reference purposes
//


//
// Processor modes.
//

typedef CCHAR KPROCESSOR_MODE;

typedef enum _MODE {
    KernelMode,
    UserMode,
    MaximumMode
} MODE;


//
// APC function types
//

//
// Put in an empty definition for the KAPC so that the
// routines can reference it before it is declared.
//

struct _KAPC;

typedef
VOID
(*PKNORMAL_ROUTINE) (
    IN PVOID NormalContext,
    IN PVOID SystemArgument1,
    IN PVOID SystemArgument2
    );

typedef
VOID
(*PKKERNEL_ROUTINE) (
    IN struct _KAPC *Apc,
    IN OUT PKNORMAL_ROUTINE *NormalRoutine,
    IN OUT PVOID *NormalContext,
    IN OUT PVOID *SystemArgument1,
    IN OUT PVOID *SystemArgument2
    );

typedef
VOID
(*PKRUNDOWN_ROUTINE) (
    IN struct _KAPC *Apc
    );

typedef
BOOLEAN
(*PKSYNCHRONIZE_ROUTINE) (
    IN PVOID SynchronizeContext
    );

typedef
BOOLEAN
(*PKTRANSFER_ROUTINE) (
    VOID
    );

//
//
// Asynchronous Procedure Call (APC) object
//

typedef struct _KAPC {
    CSHORT Type;
    CSHORT Size;
    ULONG Spare0;
    struct _KTHREAD *Thread;
    LIST_ENTRY ApcListEntry;
    PKKERNEL_ROUTINE KernelRoutine;
    PKRUNDOWN_ROUTINE RundownRoutine;
    PKNORMAL_ROUTINE NormalRoutine;
    PVOID NormalContext;

    //
    // N.B. The following two members MUST be together.
    //

    PVOID SystemArgument1;
    PVOID SystemArgument2;
    CCHAR ApcStateIndex;
    KPROCESSOR_MODE ApcMode;
    BOOLEAN Inserted;
} KAPC, *PKAPC, *RESTRICTED_POINTER PRKAPC;


//
// DPC routine
//

struct _KDPC;

typedef
VOID
(*PKDEFERRED_ROUTINE) (
    IN struct _KDPC *Dpc,
    IN PVOID DeferredContext,
    IN PVOID SystemArgument1,
    IN PVOID SystemArgument2
    );

//
// Define DPC importance.
//
// LowImportance - Queue DPC at end of target DPC queue.
// MediumImportance - Queue DPC at end of target DPC queue.
// HighImportance - Queue DPC at front of target DPC DPC queue.
//
// If there is currently a DPC active on the target processor, or a DPC
// interrupt has already been requested on the target processor when a
// DPC is queued, then no further action is necessary. The DPC will be
// executed on the target processor when its queue entry is processed.
//
// If there is not a DPC active on the target processor and a DPC interrupt
// has not been requested on the target processor, then the exact treatment
// of the DPC is dependent on whether the host system is a UP system or an
// MP system.
//
// UP system.
//
// If the DPC is of medium or high importance, the current DPC queue depth
// is greater than the maximum target depth, or current DPC request rate is
// less the minimum target rate, then a DPC interrupt is requested on the
// host processor and the DPC will be processed when the interrupt occurs.
// Otherwise, no DPC interupt is requested and the DPC execution will be
// delayed until the DPC queue depth is greater that the target depth or the
// minimum DPC rate is less than the target rate.
//
// MP system.
//
// If the DPC is being queued to another processor and the depth of the DPC
// queue on the target processor is greater than the maximum target depth or
// the DPC is of high importance, then a DPC interrupt is requested on the
// target processor and the DPC will be processed when the interrupt occurs.
// Otherwise, the DPC execution will be delayed on the target processor until
// the DPC queue depth on the target processor is greater that the maximum
// target depth or the minimum DPC rate on the target processor is less than
// the target mimimum rate.
//
// If the DPC is being queued to the current processor and the DPC is not of
// low importance, the current DPC queue depth is greater than the maximum
// target depth, or the minimum DPC rate is less than the minimum target rate,
// then a DPC interrupt is request on the current processor and the DPV will
// be processed whne the interrupt occurs. Otherwise, no DPC interupt is
// requested and the DPC execution will be delayed until the DPC queue depth
// is greater that the target depth or the minimum DPC rate is less than the
// target rate.
//

typedef enum _KDPC_IMPORTANCE {
    LowImportance,
    MediumImportance,
    HighImportance
} KDPC_IMPORTANCE;

//
// Deferred Procedure Call (DPC) object
//

typedef struct _KDPC {
    CSHORT Type;
    UCHAR Number;
    UCHAR Importance;
    LIST_ENTRY DpcListEntry;
    PKDEFERRED_ROUTINE DeferredRoutine;
    PVOID DeferredContext;
    PVOID SystemArgument1;
    PVOID SystemArgument2;
    PULONG_PTR Lock;
} KDPC, *PKDPC, *RESTRICTED_POINTER PRKDPC;

//
// Interprocessor interrupt worker routine function prototype.
//

typedef PVOID PKIPI_CONTEXT;

typedef
VOID
(*PKIPI_WORKER)(
    IN PKIPI_CONTEXT PacketContext,
    IN PVOID Parameter1,
    IN PVOID Parameter2,
    IN PVOID Parameter3
    );

//
// Define interprocessor interrupt performance counters.
//

typedef struct _KIPI_COUNTS {
    ULONG Freeze;
    ULONG Packet;
    ULONG DPC;
    ULONG APC;
    ULONG FlushSingleTb;
    ULONG FlushMultipleTb;
    ULONG FlushEntireTb;
    ULONG GenericCall;
    ULONG ChangeColor;
    ULONG SweepDcache;
    ULONG SweepIcache;
    ULONG SweepIcacheRange;
    ULONG FlushIoBuffers;
    ULONG GratuitousDPC;
} KIPI_COUNTS, *PKIPI_COUNTS;

#if defined(NT_UP)

#define HOT_STATISTIC(a) a

#else

#define HOT_STATISTIC(a) (KeGetCurrentPrcb()->a)

#endif

//
// I/O system definitions.
//
// Define a Memory Descriptor List (MDL)
//
// An MDL describes pages in a virtual buffer in terms of physical pages.  The
// pages associated with the buffer are described in an array that is allocated
// just after the MDL header structure itself.  In a future compiler this will
// be placed at:
//
//      ULONG Pages[];
//
// Until this declaration is permitted, however, one simply calculates the
// base of the array by adding one to the base MDL pointer:
//
//      Pages = (PULONG) (Mdl + 1);
//
// Notice that while in the context of the subject thread, the base virtual
// address of a buffer mapped by an MDL may be referenced using the following:
//
//      Mdl->StartVa | Mdl->ByteOffset
//


typedef struct _MDL {
    struct _MDL *Next;
    CSHORT Size;
    CSHORT MdlFlags;
    struct _EPROCESS *Process;
    PVOID MappedSystemVa;
    PVOID StartVa;
    ULONG ByteCount;
    ULONG ByteOffset;
} MDL, *PMDL;

#define MDL_MAPPED_TO_SYSTEM_VA     0x0001
#define MDL_PAGES_LOCKED            0x0002
#define MDL_SOURCE_IS_NONPAGED_POOL 0x0004
#define MDL_ALLOCATED_FIXED_SIZE    0x0008
#define MDL_PARTIAL                 0x0010
#define MDL_PARTIAL_HAS_BEEN_MAPPED 0x0020
#define MDL_IO_PAGE_READ            0x0040
#define MDL_WRITE_OPERATION         0x0080
#define MDL_PARENT_MAPPED_SYSTEM_VA 0x0100
#define MDL_LOCK_HELD               0x0200
#define MDL_PHYSICAL_VIEW           0x0400
#define MDL_IO_SPACE                0x0800
#define MDL_NETWORK_HEADER          0x1000
#define MDL_MAPPING_CAN_FAIL        0x2000
#define MDL_ALLOCATED_MUST_SUCCEED  0x4000


#define MDL_MAPPING_FLAGS (MDL_MAPPED_TO_SYSTEM_VA     | \
                           MDL_PAGES_LOCKED            | \
                           MDL_SOURCE_IS_NONPAGED_POOL | \
                           MDL_PARTIAL_HAS_BEEN_MAPPED | \
                           MDL_PARENT_MAPPED_SYSTEM_VA | \
                           MDL_LOCK_HELD               | \
                           MDL_SYSTEM_VA               | \
                           MDL_IO_SPACE )


//
// switch to DBG when appropriate
//

#if DBG
#define PAGED_CODE() \
    if (KeGetCurrentIrql() > APC_LEVEL) { \
    KdPrint(( "EX: Pageable code called at IRQL %d\n", KeGetCurrentIrql() )); \
        ASSERT(FALSE); \
        }
#else
#define PAGED_CODE()
#endif

//
// Define function decoration depending on whether a driver, a file system,
// or a kernel component is being built.
//
#define NTKERNELAPI DECLSPEC_IMPORT         
#define NTHALAPI DECLSPEC_IMPORT         
//
//  Define an access token from a programmer's viewpoint.  The structure is
//  completely opaque and the programer is only allowed to have pointers
//  to tokens.
//

typedef PVOID PACCESS_TOKEN;            

//
// Pointer to a SECURITY_DESCRIPTOR  opaque data type.
//

typedef PVOID PSECURITY_DESCRIPTOR;     

//
// Define a pointer to the Security ID data type (an opaque data type)
//

typedef PVOID PSID;     

typedef ULONG ACCESS_MASK;
typedef ACCESS_MASK *PACCESS_MASK;


//
//  The following are masks for the predefined standard access types
//

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩成人高清| 蜜桃久久久久久| 色综合咪咪久久| 亚洲免费观看在线观看| 日本丰满少妇一区二区三区| 亚洲一区二区视频在线| 欧美电影免费观看高清完整版在| 麻豆成人久久精品二区三区红| 精品对白一区国产伦| 高清av一区二区| 一区二区日韩电影| 日韩美女主播在线视频一区二区三区| 美脚の诱脚舐め脚责91| 久久久久久久久久久久电影| 成人福利视频在线看| 亚洲在线中文字幕| 日韩欧美在线影院| 成年人国产精品| 午夜精品福利一区二区蜜股av| 亚洲欧美另类在线| 欧美剧情电影在线观看完整版免费励志电影| 日韩国产欧美三级| 国产精品少妇自拍| 8v天堂国产在线一区二区| 国产一区二区三区精品欧美日韩一区二区三区 | wwwwww.欧美系列| aaa亚洲精品一二三区| 午夜精品久久久久久久久久 | 中文字幕在线不卡| 欧美日韩精品欧美日韩精品一综合| 久久精品国产第一区二区三区| 国产日产欧美一区二区三区| 欧美视频一区二| 国产成人综合亚洲91猫咪| 亚洲影院久久精品| 国产日韩亚洲欧美综合| 欧美高清www午色夜在线视频| 国产精品 欧美精品| 日日夜夜免费精品| 国产精品久久久久四虎| 欧美一级片在线观看| 99re成人在线| 国产盗摄一区二区三区| 午夜影院在线观看欧美| 亚洲欧洲精品一区二区三区不卡| 日韩三级在线免费观看| 在线观看一区二区视频| 成人理论电影网| 国产综合久久久久久久久久久久| 无吗不卡中文字幕| 亚洲乱码中文字幕| 奇米一区二区三区| 亚洲国产视频直播| 日本va欧美va瓶| 亚洲欧洲无码一区二区三区| 久久久亚洲高清| 日韩欧美中文字幕一区| 欧美日韩国产系列| 在线视频国产一区| 91浏览器打开| av在线不卡网| 99国产精品久| www.亚洲人| av在线这里只有精品| 成人美女在线视频| 成人午夜视频福利| 99久久婷婷国产综合精品电影| 狠狠网亚洲精品| 经典三级一区二区| 久久精品噜噜噜成人av农村| 五月婷婷久久丁香| 午夜精品久久久久| 日本视频免费一区| 青青青爽久久午夜综合久久午夜| 亚洲五码中文字幕| 亚洲国产另类av| 天天av天天翘天天综合网| 亚洲国产精品天堂| 日韩高清在线电影| 日本欧美韩国一区三区| 免费成人在线视频观看| 久草热8精品视频在线观看| 免费成人在线观看| 国产精品一品二品| 成人一道本在线| 91在线视频免费观看| 91久久线看在观草草青青| 在线观看亚洲精品视频| 欧美美女喷水视频| 日韩欧美一级特黄在线播放| 精品不卡在线视频| 亚洲国产精品黑人久久久| 亚洲视频在线一区观看| 亚洲成人第一页| 久久电影网站中文字幕| 国产夫妻精品视频| 色婷婷一区二区| 3atv一区二区三区| 久久婷婷国产综合国色天香| 久久久激情视频| 一区二区三区欧美亚洲| 麻豆91精品91久久久的内涵| 国产乱人伦偷精品视频不卡 | 色婷婷综合久久久久中文一区二区| 91论坛在线播放| 日韩一区二区在线看| 国产日本一区二区| 亚洲精品国产精品乱码不99| 日本在线不卡视频一二三区| 国产麻豆午夜三级精品| 91国产丝袜在线播放| 日韩女优av电影| 综合久久久久久久| 日本欧美久久久久免费播放网| 国产.欧美.日韩| 欧美日韩黄视频| 中文字幕不卡三区| 免费久久精品视频| 成人黄色国产精品网站大全在线免费观看| 色欧美日韩亚洲| 精品国产电影一区二区| 亚洲精品中文在线影院| 国产综合久久久久久久久久久久| 色菇凉天天综合网| 国产欧美中文在线| 日本中文一区二区三区| av在线播放成人| 久久日韩粉嫩一区二区三区| 悠悠色在线精品| 粉嫩嫩av羞羞动漫久久久| 91精品国产福利在线观看 | 91国偷自产一区二区三区成为亚洲经典 | 99久久免费国产| 欧美电视剧免费全集观看| 夜色激情一区二区| 国产成人综合亚洲网站| 日韩一卡二卡三卡四卡| 一区二区三区国产精品| 成人小视频在线观看| 精品国产一区二区国模嫣然| 亚洲高清一区二区三区| 色哟哟国产精品免费观看| 国产视频一区二区在线观看| 免费在线观看不卡| 欧美日韩一卡二卡| 亚洲免费观看高清完整版在线观看| 国产中文字幕一区| 日韩精品在线一区二区| 亚洲第一av色| 日本道在线观看一区二区| 国产精品网曝门| 国产高清不卡二三区| 欧美成人精品1314www| 日日夜夜免费精品| 欧美精品日韩精品| 丝袜美腿高跟呻吟高潮一区| 欧美性一级生活| 亚洲裸体xxx| 97久久精品人人爽人人爽蜜臀| 国产嫩草影院久久久久| 国产一区二区三区免费播放| 欧美精品一区二区三区在线播放| 美女网站视频久久| 欧美一区二区三区婷婷月色| 日韩精品久久久久久| 欧美疯狂做受xxxx富婆| 视频一区在线播放| 欧美老女人在线| 美女一区二区视频| 日韩精品中午字幕| 国产成人久久精品77777最新版本| www国产成人| 成人网在线播放| 亚洲美女屁股眼交| 欧美日韩国产一二三| 日本最新不卡在线| 久久久久久久久97黄色工厂| 国产成人综合在线观看| 国产精品久久久久久久久果冻传媒 | 色婷婷亚洲一区二区三区| 洋洋av久久久久久久一区| 欧美日韩在线播放一区| 日本v片在线高清不卡在线观看| 日韩精品在线一区| 成人av免费在线观看| 亚洲最新视频在线观看| 91麻豆精品国产91久久久久| 极品尤物av久久免费看| 久久精品亚洲乱码伦伦中文| 99re热这里只有精品免费视频| 一个色综合av| 精品美女在线播放| av毛片久久久久**hd| 一区二区视频在线| 欧美一级一区二区| 成人免费高清在线| 日韩精品久久久久久| 国产喷白浆一区二区三区| 91国偷自产一区二区开放时间 | 国产欧美日本一区二区三区|