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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? hidpi.h

?? hid類usb對外設(shè)的驅(qū)動application
?? 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:

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
综合网在线视频| 国产成人免费xxxxxxxx| 色婷婷亚洲精品| 亚洲日本va在线观看| 成人激情小说乱人伦| 欧美国产成人精品| 91影院在线观看| 亚洲男人电影天堂| 欧美午夜一区二区三区| 日本免费新一区视频| 欧美va在线播放| 丁香激情综合五月| 亚洲特黄一级片| 在线不卡一区二区| 久久99精品久久久久久久久久久久| 欧美一级日韩免费不卡| 韩国欧美一区二区| 国产精品视频第一区| 色国产精品一区在线观看| 亚洲一区在线观看视频| 日韩美一区二区三区| 国产激情一区二区三区| 亚洲靠逼com| 91精品免费在线观看| 国产精华液一区二区三区| 亚洲日本在线视频观看| 91麻豆精品国产91| 国产一区二区看久久| 亚洲欧美国产高清| 91麻豆精品国产91久久久久久| 国产高清久久久| 亚洲激情图片小说视频| 欧美成人猛片aaaaaaa| 国产成a人亚洲| 亚洲自拍与偷拍| 欧美电影免费观看高清完整版在线 | 91丝袜国产在线播放| 亚洲国产一区二区在线播放| 精品国产污污免费网站入口| 色综合天天性综合| 久久福利资源站| 亚洲综合一区在线| 国产日韩欧美在线一区| 欧美欧美欧美欧美| 成人av综合在线| 久久av资源网| 午夜精品一区二区三区三上悠亚| 久久夜色精品一区| 欧美精品视频www在线观看| www.亚洲国产| 精品制服美女丁香| 亚洲成人精品在线观看| 综合激情成人伊人| 久久嫩草精品久久久久| 欧美日韩国产综合草草| 91免费版在线| 高清av一区二区| 精品一区免费av| 亚洲va天堂va国产va久| 亚洲欧美自拍偷拍色图| 久久香蕉国产线看观看99| 91精品一区二区三区久久久久久| 99久久伊人久久99| 国产激情精品久久久第一区二区 | 欧美色倩网站大全免费| 99视频一区二区| 不卡一区中文字幕| 高清日韩电视剧大全免费| 国产一区二区在线影院| 日本不卡视频在线| 天堂资源在线中文精品| 亚洲一区视频在线| 亚洲愉拍自拍另类高清精品| 亚洲精品国产一区二区精华液 | 国产性天天综合网| 久久在线免费观看| 久久在线观看免费| 久久色.com| 国产午夜精品福利| 中文一区二区在线观看| 中文字幕精品综合| 亚洲国产成人午夜在线一区| 国产色一区二区| 久久久精品国产99久久精品芒果| 久久综合久久鬼色| 国产香蕉久久精品综合网| 日本一区二区三区四区 | 99riav一区二区三区| 不卡的av在线| 色婷婷综合久久久中文字幕| 99免费精品视频| 91免费观看国产| 欧美日韩免费一区二区三区 | 国产成人一区二区精品非洲| 国产精品主播直播| 国产成人啪午夜精品网站男同| 国内偷窥港台综合视频在线播放| 国产在线精品视频| 成人免费的视频| 99re成人精品视频| 欧美揉bbbbb揉bbbbb| 91精品国产综合久久精品app| 欧美一区二区视频免费观看| 日韩一区二区电影在线| 久久女同精品一区二区| 欧美国产精品中文字幕| 亚洲综合久久av| 麻豆精品一二三| 国产成人啪免费观看软件| 一本到三区不卡视频| 欧美日韩精品电影| 久久老女人爱爱| 国产精品欧美一区喷水| 亚洲一区电影777| 久久成人免费电影| 成人一区二区三区| 欧美亚州韩日在线看免费版国语版| 欧美日本一区二区| 久久久久久麻豆| 亚洲一区二区三区小说| 久久国产精品露脸对白| 北条麻妃一区二区三区| 欧美色窝79yyyycom| 久久影院视频免费| 亚洲电影一级片| 国产成人精品在线看| 欧美色国产精品| 国产日韩欧美亚洲| 天天影视网天天综合色在线播放| 国产一区二区在线视频| 欧美性生活影院| 国产区在线观看成人精品| 亚洲福利一区二区三区| 高清免费成人av| 日韩一区二区免费在线观看| 国产精品久久久99| 奇米影视一区二区三区| 91麻豆文化传媒在线观看| 日韩色在线观看| 一区二区三区日韩在线观看| 国产精品18久久久久久vr| 欧美日本精品一区二区三区| 国产精品乱码一区二区三区软件 | 1000精品久久久久久久久| 日本不卡在线视频| 99久久婷婷国产综合精品| 精品国产在天天线2019| 亚洲妇女屁股眼交7| 99视频一区二区| 国产欧美精品一区| 另类综合日韩欧美亚洲| 欧美日韩成人一区二区| 亚洲另类在线视频| 99精品视频中文字幕| 国产日韩欧美在线一区| 韩国av一区二区三区在线观看| 欧美男女性生活在线直播观看| 1024精品合集| av一二三不卡影片| 久久精品一区二区| 亚洲6080在线| 亚洲色图制服诱惑| jizz一区二区| 一区二区三区中文字幕精品精品 | 欧美性做爰猛烈叫床潮| 国产精品毛片大码女人| 国产成人一级电影| 久久综合色天天久久综合图片| 麻豆精品视频在线观看免费| 欧美一三区三区四区免费在线看 | 国产精品丝袜一区| 国产精品综合在线视频| 久久网站热最新地址| 激情文学综合丁香| 亚洲精品在线三区| 国产美女在线观看一区| 久久久国产午夜精品| 国产suv一区二区三区88区| 国产日产欧美精品一区二区三区| 国产精品资源在线| 欧美国产精品一区二区三区| 成人理论电影网| 国产精品卡一卡二卡三| 不卡av在线免费观看| 日韩毛片在线免费观看| 在线看国产一区| 午夜精品久久久久久久99樱桃| 欧美日韩国产综合视频在线观看| 日韩va欧美va亚洲va久久| 91麻豆精品国产91| 国产久卡久卡久卡久卡视频精品| 国产视频一区在线观看| 99国产欧美另类久久久精品| 亚洲国产你懂的| 欧美一级艳片视频免费观看| 国产一区二区三区av电影| 中文字幕一区在线| 欧美日韩一卡二卡三卡| 狠狠久久亚洲欧美| 日韩一区在线看|