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

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

?? hidpi.h

?? 讀取USB控制器 及每個端口信息
?? H
字號:
/*++

Copyright (c) Microsoft Corporation. All rights reserved.

Module Name:

        HIDPI.H

Abstract:

   Public Interface to the HID parsing library.

Environment:

    Kernel & user mode

--*/

#ifndef   __HIDPI_H__
#define   __HIDPI_H__

#include <pshpack4.h>

// Please include "hidsdi.h" to use the user space (dll / parser)
// Please include "hidpddi.h" to use the kernel space parser

//
// Special Link collection values for using the query functions
//
// Root collection references the collection at the base of the link
// collection tree.
// Unspecifies, references all collections in the link collection tree.
//
#define HIDP_LINK_COLLECTION_ROOT ((USHORT) -1)
#define HIDP_LINK_COLLECTION_UNSPECIFIED ((USHORT) 0)


typedef enum _HIDP_REPORT_TYPE
{
    HidP_Input,
    HidP_Output,
    HidP_Feature
} HIDP_REPORT_TYPE;

typedef struct _USAGE_AND_PAGE
{
    USAGE Usage;
    USAGE UsagePage;
} USAGE_AND_PAGE, *PUSAGE_AND_PAGE;

#define HidP_IsSameUsageAndPage(u1, u2) ((* (PULONG) &u1) == (* (PULONG) &u2))

typedef struct _HIDP_BUTTON_CAPS
{
    USAGE    UsagePage;
    UCHAR    ReportID;
    BOOLEAN  IsAlias;

    USHORT   BitField;
    USHORT   LinkCollection;   // A unique internal index pointer

    USAGE    LinkUsage;
    USAGE    LinkUsagePage;

    BOOLEAN  IsRange;
    BOOLEAN  IsStringRange;
    BOOLEAN  IsDesignatorRange;
    BOOLEAN  IsAbsolute;

    ULONG    Reserved[10];
    union {
        struct {
            USAGE    UsageMin,         UsageMax;
            USHORT   StringMin,        StringMax;
            USHORT   DesignatorMin,    DesignatorMax;
            USHORT   DataIndexMin,     DataIndexMax;
        } Range;
        struct  {
            USAGE    Usage,            Reserved1;
            USHORT   StringIndex,      Reserved2;
            USHORT   DesignatorIndex,  Reserved3;
            USHORT   DataIndex,        Reserved4;
        } NotRange;
    };

} HIDP_BUTTON_CAPS, *PHIDP_BUTTON_CAPS;


typedef struct _HIDP_VALUE_CAPS
{
    USAGE    UsagePage;
    UCHAR    ReportID;
    BOOLEAN  IsAlias;

    USHORT   BitField;
    USHORT   LinkCollection;   // A unique internal index pointer

    USAGE    LinkUsage;
    USAGE    LinkUsagePage;

    BOOLEAN  IsRange;
    BOOLEAN  IsStringRange;
    BOOLEAN  IsDesignatorRange;
    BOOLEAN  IsAbsolute;

    BOOLEAN  HasNull;        // Does this channel have a null report   union
    UCHAR    Reserved;
    USHORT   BitSize;        // How many bits are devoted to this value?

    USHORT   ReportCount;    // See Note below.  Usually set to 1.
    USHORT   Reserved2[5];

    ULONG    UnitsExp;
    ULONG    Units;

    LONG     LogicalMin,       LogicalMax;
    LONG     PhysicalMin,      PhysicalMax;

    union {
        struct {
            USAGE    UsageMin,         UsageMax;
            USHORT   StringMin,        StringMax;
            USHORT   DesignatorMin,    DesignatorMax;
            USHORT   DataIndexMin,     DataIndexMax;
        } Range;

        struct {
            USAGE    Usage,            Reserved1;
            USHORT   StringIndex,      Reserved2;
            USHORT   DesignatorIndex,  Reserved3;
            USHORT   DataIndex,        Reserved4;
        } NotRange;
    };
} HIDP_VALUE_CAPS, *PHIDP_VALUE_CAPS;

//
// Notes:
//
// ReportCount:  When a report descriptor declares an Input, Output, or
// Feature main item with fewer usage declarations than the report count, then
// the last usage applies to all remaining unspecified count in that main item.
// (As an example you might have data that required many fields to describe,
// possibly buffered bytes.)  In this case, only one value cap structure is
// allocated for these associtated fields, all with the same usage, and Report
// Count reflects the number of fields involved.  Normally ReportCount is 1.
// To access all of the fields in such a value structure would require using
// HidP_GetUsageValueArray and HidP_SetUsageValueArray.   HidP_GetUsageValue/
// HidP_SetScaledUsageValue will also work, however, these functions will only
// work with the first field of the structure.
//

//
// The link collection tree consists of an array of LINK_COLLECTION_NODES
// where the index into this array is the same as the collection number.
//
// Given a collection A which contains a subcollection B, A is defined to be
// the parent B, and B is defined to be the child.
//
// Given collections A, B, and C where B and C are children of A, and B was
// encountered before C in the report descriptor, B is defined as a sibling of
// C.  (This implies, of course, that if B is a sibling of C, then C is NOT a
// sibling of B).
//
// B is defined as the NextSibling of C if and only if there exists NO
// child collection of A, call it D, such that B is a sibling of D and D
// is a sibling of C.
//
// E is defined to be the FirstChild of A if and only if for all children of A,
// F, that are not equivalent to E, F is a sibling of E.
// (This implies, of course, that the does not exist a child of A, call it G,
// where E is a sibling of G).  In other words the first sibling is the last
// link collection found in the list.
//
// In other words, if a collection B is defined within the definition of another
// collection A, B becomes a child of A.  All collections with the same parent
// are considered siblings.  The FirstChild of the parent collection, A, will be
// last collection defined that has A as a parent.  The order of sibling pointers
// is similarly determined.  When a collection B is defined, it becomes the
// FirstChild of it's parent collection.  The previously defined FirstChild of the
// parent collection becomes the NextSibling of the new collection.  As new
// collections with the same parent are discovered, the chain of sibling is built.
//
// With that in mind, the following describes conclusively a data structure
// that provides direct traversal up, down, and accross the link collection
// tree.
//
//
typedef struct _HIDP_LINK_COLLECTION_NODE
{
    USAGE    LinkUsage;
    USAGE    LinkUsagePage;
    USHORT   Parent;
    USHORT   NumberOfChildren;
    USHORT   NextSibling;
    USHORT   FirstChild;
    ULONG    CollectionType: 8;  // As defined in 6.2.2.6 of HID spec
    ULONG    IsAlias : 1; // This link node is an allias of the next link node.
    ULONG    Reserved: 23;
    PVOID    UserContext; // The user can hang his coat here.
} HIDP_LINK_COLLECTION_NODE, *PHIDP_LINK_COLLECTION_NODE;

//
// When a link collection is described by a delimiter, alias link collection
// nodes are created.  (One for each usage within the delimiter).
// The parser assigns each capability description listed above only one
// link collection.
//
// If a control is defined within a collection defined by
// delimited usages, then that control is said to be within multiple link
// collections, one for each usage within the open and close delimiter tokens.
// Such multiple link collecions are said to be aliases.  The first N-1 such
// collections, listed in the link collection node array, have their IsAlias
// bit set.  The last such link collection is the link collection index used
// in the capabilities described above.
// Clients wishing to set a control in an aliased collection, should walk the
// collection array once for each time they see the IsAlias flag set, and use
// the last link collection as the index for the below accessor functions.
//
// NB: if IsAlias is set, then NextSibling should be one more than the current
// link collection node index.
//

typedef PUCHAR  PHIDP_REPORT_DESCRIPTOR;
typedef struct _HIDP_PREPARSED_DATA * PHIDP_PREPARSED_DATA;

typedef struct _HIDP_CAPS
{
    USAGE    Usage;
    USAGE    UsagePage;
    USHORT   InputReportByteLength;
    USHORT   OutputReportByteLength;
    USHORT   FeatureReportByteLength;
    USHORT   Reserved[17];

    USHORT   NumberLinkCollectionNodes;

    USHORT   NumberInputButtonCaps;
    USHORT   NumberInputValueCaps;
    USHORT   NumberInputDataIndices;

    USHORT   NumberOutputButtonCaps;
    USHORT   NumberOutputValueCaps;
    USHORT   NumberOutputDataIndices;

    USHORT   NumberFeatureButtonCaps;
    USHORT   NumberFeatureValueCaps;
    USHORT   NumberFeatureDataIndices;
} HIDP_CAPS, *PHIDP_CAPS;

typedef struct _HIDP_DATA
{
    USHORT  DataIndex;
    USHORT  Reserved;
    union {
        ULONG   RawValue; // for values
        BOOLEAN On; // for buttons MUST BE TRUE for buttons.
    };
} HIDP_DATA, *PHIDP_DATA;
//
// The HIDP_DATA structure is used with HidP_GetData and HidP_SetData
// functions.
//
// The parser contiguously assigns every control (button or value) in a hid
// device a unique data index from zero to NumberXXXDataIndices -1 , inclusive.
// This value is found in the HIDP_BUTTON_CAPS and HIDP_VALUE_CAPS structures.
//
// Most clients will find the Get/Set Buttons / Value accessor functions
// sufficient to their needs, as they will allow the clients to access the
// data known to them while ignoring the other controls.
//
// More complex clients, which actually read the Button / Value Caps, and which
// do a value add service to these routines (EG Direct Input), will need to
// access all the data in the device without interest in the individual usage
// or link collection location.  These are the clients that will find
// HidP_Data useful.
//

typedef struct _HIDP_UNKNOWN_TOKEN
{
    UCHAR  Token;
    UCHAR  Reserved[3];
    ULONG  BitField;
} HIDP_UNKNOWN_TOKEN, *PHIDP_UNKNOWN_TOKEN;

typedef struct _HIDP_EXTENDED_ATTRIBUTES
{
    UCHAR   NumGlobalUnknowns;
    UCHAR   Reserved [3];
    PHIDP_UNKNOWN_TOKEN  GlobalUnknowns;
    // ... Additional attributes
    ULONG   Data [1]; // variableLength  DO NOT ACCESS THIS FIELD
} HIDP_EXTENDED_ATTRIBUTES, *PHIDP_EXTENDED_ATTRIBUTES;

NTSTATUS __stdcall
HidP_GetCaps (
   IN      PHIDP_PREPARSED_DATA      PreparsedData,
   OUT     PHIDP_CAPS                Capabilities
   );
/*++
Routine Description:
   Returns a list of capabilities of a given hid device as described by its
   preparsed data.

Arguments:
   PreparsedData    The preparsed data returned from HIDCLASS.
   Capabilities     a HIDP_CAPS structure

Return Value:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线综合亚洲欧美在线视频| av亚洲精华国产精华精| 亚洲天堂2014| 国产精品久久毛片a| 亚洲国产精品av| 国产精品国产三级国产专播品爱网| 3751色影院一区二区三区| 欧美日韩一区视频| 欧美日本精品一区二区三区| 欧美老年两性高潮| 日韩欧美国产一区二区三区| 日韩欧美久久一区| 久久人人97超碰com| 国产精品亲子伦对白| 国产日韩欧美一区二区三区乱码| www亚洲一区| 国产亚洲精品福利| 国产欧美日本一区视频| 国产精品久久久久9999吃药| 亚洲色图视频网站| 亚洲成av人片| 国模少妇一区二区三区| 国产成人日日夜夜| 日本精品视频一区二区三区| 精品视频免费看| 欧美videos中文字幕| 国产清纯白嫩初高生在线观看91 | 91免费观看在线| 欧美亚洲动漫精品| 26uuu久久综合| 最新国产精品久久精品| 午夜亚洲国产au精品一区二区| 日本不卡一二三区黄网| 国产69精品久久777的优势| 色综合视频在线观看| 制服丝袜亚洲播放| 欧美韩国日本不卡| 图片区小说区国产精品视频| 国产伦精品一区二区三区免费迷| www.欧美日韩国产在线| 91精品在线麻豆| 中文字幕中文在线不卡住| 婷婷综合另类小说色区| 国产成人av一区| 欧美美女网站色| 国产精品第五页| 麻豆国产欧美一区二区三区| 成年人国产精品| 欧美mv日韩mv亚洲| 亚洲国产精品麻豆| www.欧美.com| 一区二区三区在线不卡| 韩国成人福利片在线播放| 欧美制服丝袜第一页| 国产精品全国免费观看高清| 久久精品久久精品| 欧美日韩激情在线| 亚洲精品乱码久久久久久黑人| 久久99热99| 91精品国产欧美日韩| 亚洲一区中文日韩| 99久久免费视频.com| 国产香蕉久久精品综合网| 麻豆精品视频在线观看免费| 欧美日韩免费观看一区三区| 亚洲狠狠丁香婷婷综合久久久| 国产成人免费av在线| 精品国产一区二区三区久久影院| 亚洲成a人v欧美综合天堂| 成人av电影观看| 国产精品理论片| 国产盗摄精品一区二区三区在线 | 欧美午夜电影在线播放| 亚洲欧洲日产国码二区| 欧美男生操女生| 亚洲愉拍自拍另类高清精品| 白白色亚洲国产精品| 国产精品午夜久久| 成人永久免费视频| 国产精品久久毛片a| 不卡免费追剧大全电视剧网站| 欧美mv日韩mv| 国产毛片精品一区| 中文字幕国产一区| 99久久亚洲一区二区三区青草| 亚洲欧美在线观看| 91久久一区二区| 亚洲成人在线网站| 日韩视频一区二区| 久久精品99国产国产精| 久久老女人爱爱| proumb性欧美在线观看| 中文字幕一区在线观看视频| 91国产成人在线| 日本欧美一区二区在线观看| 日韩视频一区二区| 成人性视频网站| 亚洲国产日韩a在线播放| 欧美日本免费一区二区三区| 久久99精品久久久久| 国产无遮挡一区二区三区毛片日本| 粉嫩久久99精品久久久久久夜 | 成人精品视频一区| 亚洲欧美偷拍三级| 欧美高清精品3d| 国产成人三级在线观看| 一区二区三区成人| 欧美xxx久久| eeuss影院一区二区三区| 亚洲高清不卡在线观看| 精品欧美一区二区三区精品久久| 成人小视频免费在线观看| 亚洲精品乱码久久久久| 精品国产乱码久久| 欧美自拍丝袜亚洲| 国产一本一道久久香蕉| 亚洲国产精品人人做人人爽| 国产欧美一区二区精品久导航| 在线观看三级视频欧美| 国产伦精品一区二区三区在线观看 | 日韩一区二区三区精品视频| 岛国av在线一区| 三级影片在线观看欧美日韩一区二区 | 成人18精品视频| 久久99久久久欧美国产| 亚洲福利电影网| 欧美激情综合在线| 欧美mv和日韩mv的网站| 91久久久免费一区二区| 粉嫩在线一区二区三区视频| 日韩av一区二区三区| 樱桃视频在线观看一区| 国产午夜精品久久久久久免费视| 欧美精品 国产精品| 欧美又粗又大又爽| 波多野洁衣一区| 国产成人精品综合在线观看 | 精品久久久久久亚洲综合网| 欧美在线色视频| 丰满亚洲少妇av| 国产suv一区二区三区88区| 美女在线视频一区| 亚洲国产日韩在线一区模特 | 午夜精品久久久久久久99樱桃| 亚洲天堂精品视频| 中文一区二区在线观看| 欧美精品一区二区三区蜜桃视频| 欧美日本在线播放| 欧美日本视频在线| 欧美日韩国产a| 7777精品伊人久久久大香线蕉经典版下载| gogogo免费视频观看亚洲一| 成人动漫一区二区三区| 成人性生交大片免费看中文| 成人久久18免费网站麻豆| 成人免费看视频| 99综合电影在线视频| 99热精品国产| 91福利视频在线| 欧美色精品天天在线观看视频| 色哟哟精品一区| 在线看日本不卡| 欧美精品777| 久久久久久久久久美女| 日本一二三四高清不卡| 亚洲欧洲另类国产综合| 一区二区三区中文在线| 日韩中文字幕区一区有砖一区 | 国产一区二区女| 成人毛片视频在线观看| 色综合色狠狠天天综合色| 欧美日韩在线播| 精品国产不卡一区二区三区| 中文字幕巨乱亚洲| 亚洲免费成人av| 日韩vs国产vs欧美| 风间由美一区二区三区在线观看| 99re热视频精品| 欧美日韩国产综合草草| 欧美电影免费观看高清完整版在线 | 国产一区二区看久久| 高清不卡在线观看av| 91国偷自产一区二区开放时间 | 韩国精品一区二区| 99免费精品视频| 欧美电影一区二区| 国产精品天干天干在观线| 亚洲成人一区二区| 粉嫩高潮美女一区二区三区| 91福利精品第一导航| 欧美一区二区三区喷汁尤物| 中文字幕第一区综合| 亚洲高清视频中文字幕| 国产传媒一区在线| 欧美精品黑人性xxxx| 国产精品区一区二区三| 麻豆精品国产传媒mv男同| 91在线无精精品入口| 精品福利视频一区二区三区| 亚洲蜜臀av乱码久久精品|