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

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

?? 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:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本韩国一区二区| 日韩一级在线观看| 麻豆精品视频在线观看视频| 欧美激情一区二区三区不卡| 欧美精品日韩精品| 91视频.com| 高清不卡一区二区| 美女在线观看视频一区二区| 一区二区三区毛片| 欧美国产精品一区二区| 日韩精品一区二区在线观看| 欧美午夜在线观看| 91香蕉视频mp4| 国产suv精品一区二区6| 免费在线观看成人| 亚洲第一激情av| 国产精品久久久久久久久动漫| 欧美xxxxxxxxx| 在线播放日韩导航| 欧美在线播放高清精品| 成人av电影免费在线播放| 国模冰冰炮一区二区| 亚洲1区2区3区视频| 一区二区久久久久| 日韩一区在线看| 中国av一区二区三区| 久久久久久久久久久电影| 日韩视频不卡中文| 欧美日韩三级在线| 欧美影片第一页| 欧美最猛黑人xxxxx猛交| 91在线精品一区二区三区| 成人国产精品免费| 成人动漫一区二区在线| 成人免费va视频| 粉嫩av一区二区三区粉嫩| 国产激情一区二区三区四区| 国产精品一卡二卡在线观看| 国产乱码精品一区二区三区五月婷 | 精品国产一区二区三区久久影院| 欧美日本在线播放| 在线综合视频播放| 欧美一区二区三区在线观看视频| 欧美另类videos死尸| 在线成人av影院| 日韩一区二区电影| 久久午夜电影网| 中文字幕欧美日本乱码一线二线| 中文字幕精品三区| √…a在线天堂一区| 亚洲综合一区二区三区| 亚洲午夜在线电影| 免费高清视频精品| 国产在线精品国自产拍免费| 国产91高潮流白浆在线麻豆| 丁香婷婷综合色啪| 色菇凉天天综合网| 欧美精品一二三区| www一区二区| 中文字幕制服丝袜成人av| 亚洲美女视频在线| 日韩精品视频网| 精品一区二区三区久久| 精品一区二区免费视频| 成人精品电影在线观看| 日本精品一区二区三区四区的功能| 欧美视频中文字幕| 欧美一区二区视频免费观看| 精品成人一区二区三区| 国产精品美女久久久久久久| 亚洲欧美福利一区二区| 午夜国产精品一区| 国产精品一级片| 91久久国产综合久久| 欧美一区二区免费| 中文字幕一区二区在线观看| 亚洲成人免费影院| 国产一区二区伦理片| 色婷婷综合五月| 欧美白人最猛性xxxxx69交| 国产欧美一区二区三区沐欲| 亚洲另类在线视频| 久久国产人妖系列| 91年精品国产| 欧美精品一区二区久久婷婷| 亚洲精品国产品国语在线app| 美女精品一区二区| 99re热视频精品| 精品久久国产97色综合| 亚洲一区二区三区四区五区中文| 美女网站视频久久| 色美美综合视频| 久久天天做天天爱综合色| 亚洲国产一区二区三区青草影视| 国产一区中文字幕| 欧美精品tushy高清| 中文av一区二区| 美日韩黄色大片| 在线一区二区三区四区| 中文字幕欧美日韩一区| 日本午夜精品一区二区三区电影| 99久久精品免费观看| 欧美大胆一级视频| 午夜精品福利一区二区蜜股av | 成人性生交大片免费| 日韩一区二区在线观看视频| 玉米视频成人免费看| 国产91对白在线观看九色| 日韩女优av电影在线观看| 一区二区三区**美女毛片| 成人黄色a**站在线观看| 日韩女优电影在线观看| 天使萌一区二区三区免费观看| 一本久道久久综合中文字幕| 欧美—级在线免费片| 极品少妇xxxx精品少妇偷拍| 欧美精品久久久久久久多人混战 | 极品美女销魂一区二区三区| 欧美日韩亚洲另类| 亚洲美女一区二区三区| av中文字幕亚洲| 中文字幕va一区二区三区| 麻豆精品一区二区综合av| 欧美喷水一区二区| 性久久久久久久久| 欧美性欧美巨大黑白大战| 最新日韩在线视频| 99这里只有精品| 国产精品久久久久久久午夜片| 国产成人午夜99999| 久久久九九九九| 国产久卡久卡久卡久卡视频精品| 日韩欧美高清一区| 老司机免费视频一区二区| 日韩欧美国产wwwww| 久久爱另类一区二区小说| 欧美成人欧美edvon| 免费人成在线不卡| 欧美精品一区男女天堂| 国产乱子轮精品视频| 久久婷婷久久一区二区三区| 国产乱子伦视频一区二区三区| 国产亚洲精品aa午夜观看| 国产91精品免费| 亚洲欧美综合色| 在线观看国产日韩| 天堂久久久久va久久久久| 欧美一区二区三区性视频| 精品综合免费视频观看| 久久久午夜电影| 成人av在线一区二区| 亚洲欧美日本韩国| 欧美日韩午夜影院| 久久99热这里只有精品| 久久久国产精华| 91影院在线观看| 亚洲成人免费看| 精品久久久三级丝袜| 丰满亚洲少妇av| 亚洲一区二区三区小说| 日韩一区二区精品在线观看| 韩国女主播一区| 中文字幕+乱码+中文字幕一区| 色综合久久天天综合网| 天堂影院一区二区| 国产亚洲综合av| 91福利国产精品| 美女视频黄频大全不卡视频在线播放 | 成人动漫在线一区| 亚洲成av人影院在线观看网| 欧美电视剧在线观看完整版| 成年人国产精品| 日韩在线卡一卡二| 国产亚洲精品7777| 欧美综合色免费| 国产自产高清不卡| 亚洲欧美日韩成人高清在线一区| 欧美一区日韩一区| 成人深夜视频在线观看| 亚洲成人你懂的| 日产国产高清一区二区三区| 国产女人aaa级久久久级| 欧美亚洲动漫制服丝袜| 国产精品影音先锋| 亚洲电影欧美电影有声小说| 久久久亚洲午夜电影| 欧美三级一区二区| 国产成人免费高清| 视频一区中文字幕国产| 亚洲欧洲三级电影| 欧美岛国在线观看| 欧美亚男人的天堂| 国产91精品精华液一区二区三区 | 美腿丝袜一区二区三区| 亚洲免费电影在线| 久久久精品综合| 91精品国产乱| 欧美在线制服丝袜| 成人18视频在线播放| 国产在线精品一区二区|