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

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

?? hidpi.h

?? VC++寫的移植性很強的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:

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
高清不卡在线观看av| 国产**成人网毛片九色 | 中文字幕免费不卡在线| 亚洲最大成人网4388xx| 国产一区二区美女诱惑| 欧美日韩国产首页| 亚洲视频中文字幕| 国产成人免费在线观看不卡| 欧美精品第1页| 艳妇臀荡乳欲伦亚洲一区| 国产高清不卡一区二区| 欧美一区二区三区在线| 一区av在线播放| 99久久综合精品| 国产亚洲欧美在线| 国产综合久久久久影院| 日韩一区二区三区三四区视频在线观看 | www.亚洲免费av| 久久综合国产精品| 日韩精品一二三四| 欧美无乱码久久久免费午夜一区| 国产精品欧美一区二区三区| 久久电影网站中文字幕| 欧美一区二区在线看| 亚洲一区二区影院| 色综合久久综合| 国产精品久久网站| 高潮精品一区videoshd| 精品国产麻豆免费人成网站| 免费成人美女在线观看| 91精品国产综合久久香蕉的特点| 亚洲成人激情av| 在线观看网站黄不卡| 亚洲人快播电影网| 97久久精品人人爽人人爽蜜臀| 中文字幕av一区二区三区高| 国产成人丝袜美腿| 国产日韩视频一区二区三区| 国产资源在线一区| 国产欧美日韩不卡| 国产69精品久久久久毛片| 日本欧美一区二区| 欧美一区二区三区啪啪| 日韩avvvv在线播放| 日韩精品一区二| 国产在线视视频有精品| 欧美大片一区二区| 国产一区二区精品久久91| 久久久91精品国产一区二区三区| 国产99久久久精品| 亚洲欧洲精品一区二区精品久久久| 91在线国内视频| 一区二区在线观看视频| 欧美日韩中文一区| 日本在线不卡视频| 精品国产一区二区三区久久久蜜月| 久草中文综合在线| 久久久精品欧美丰满| eeuss鲁一区二区三区| 亚洲另类中文字| 欧美三级中文字幕在线观看| 日韩福利视频网| 精品动漫一区二区三区在线观看| 国产美女在线观看一区| 亚洲国产高清aⅴ视频| 99v久久综合狠狠综合久久| 亚洲国产毛片aaaaa无费看 | 国产99久久精品| 亚洲欧美日韩一区| 欧美精选在线播放| 国产精品一区二区久久不卡| 中文字幕亚洲电影| 精品视频999| 国内国产精品久久| 中文字幕一区二区三区蜜月| 欧美视频一区在线观看| 久久69国产一区二区蜜臀| 国产精品久久综合| 制服丝袜日韩国产| 国产成人欧美日韩在线电影| 亚洲精品自拍动漫在线| 欧美一级高清片| 国产传媒欧美日韩成人| 亚洲自拍偷拍麻豆| 久久久久久久久伊人| 91久久免费观看| 久久99精品久久久久婷婷| 国产精品三级视频| 337p亚洲精品色噜噜| 国产成人欧美日韩在线电影| 一区二区三区高清不卡| 日韩三级电影网址| 99久久伊人久久99| 美女任你摸久久 | 欧美猛男男办公室激情| 国产精品资源网| 亚洲成精国产精品女| 国产午夜精品一区二区三区视频| 久久久久国产精品人| 91豆麻精品91久久久久久| 久久99久久久久久久久久久| 国产精品久久久久桃色tv| 欧美一区二区不卡视频| 99国产精品99久久久久久| 久久精品av麻豆的观看方式| 亚洲日本va午夜在线电影| 欧美第一区第二区| 色妹子一区二区| 国产很黄免费观看久久| 亚洲成人自拍网| 国产精品久久久一本精品| 日韩午夜激情视频| 91国模大尺度私拍在线视频| 国产经典欧美精品| 日韩不卡在线观看日韩不卡视频| 亚洲欧洲精品成人久久奇米网| 日韩欧美在线网站| 欧美伊人久久大香线蕉综合69 | 免费看日韩精品| 亚洲欧美视频在线观看视频| 久久综合色8888| 欧美美女激情18p| 不卡视频一二三| 国产精品一二三在| 老鸭窝一区二区久久精品| 亚洲图片欧美视频| 日韩一区欧美小说| 欧美国产精品劲爆| 精品福利一区二区三区| 欧美日韩高清在线播放| 色噜噜狠狠一区二区三区果冻| 国产a视频精品免费观看| 韩国视频一区二区| 奇米色777欧美一区二区| 亚洲va天堂va国产va久| 一区二区三区在线视频观看| 国产精品久久久久久久午夜片| www激情久久| 精品1区2区在线观看| 欧美一区二区三区视频在线观看| 日本黄色一区二区| 91片在线免费观看| 99久久综合精品| av成人免费在线观看| 成人h动漫精品一区二区| 国产一区二区免费视频| 国产真实乱子伦精品视频| 久久电影网站中文字幕| 精品在线播放免费| 六月丁香婷婷色狠狠久久| 欧美a级理论片| 免费在线欧美视频| 另类调教123区| 国内精品国产三级国产a久久| 日本欧美加勒比视频| 91麻豆.com| 91免费看片在线观看| 97aⅴ精品视频一二三区| 92国产精品观看| 色美美综合视频| 欧美亚洲日本一区| 欧美乱妇20p| 欧美一区二区三区四区五区 | 在线一区二区三区做爰视频网站| 一本一道久久a久久精品 | 粉嫩嫩av羞羞动漫久久久 | 午夜精品福利一区二区三区av| 亚洲一级电影视频| 亚洲丶国产丶欧美一区二区三区| 亚洲一区二区三区爽爽爽爽爽| 香蕉成人啪国产精品视频综合网| 午夜精品久久久久| 美洲天堂一区二卡三卡四卡视频| 日本成人在线一区| 精品一区二区三区免费| 国产又黄又大久久| 成人av网站在线| 色婷婷久久久综合中文字幕| 在线观看视频一区二区欧美日韩| 欧美日韩一级视频| 日韩免费观看高清完整版| 久久蜜桃av一区二区天堂| 国产精品乱码久久久久久| 一区二区三区中文字幕| 奇米综合一区二区三区精品视频| 国内精品视频一区二区三区八戒| 成人动漫av在线| 欧美专区日韩专区| 精品人伦一区二区色婷婷| 国产人成亚洲第一网站在线播放| 亚洲色图欧洲色图| 日韩精品视频网| 大桥未久av一区二区三区中文| 色成年激情久久综合| 欧美一二三区在线| 亚洲码国产岛国毛片在线| 精品国内二区三区| 亚洲欧洲av色图| 日韩av午夜在线观看| 成人app在线|