Delphi_hid_Class_Sample

所属分类:驱动编程
开发工具:Delphi
文件大小:161KB
下载次数:21
上传日期:2011-06-23 00:01:11
上 传 者qkrckdgus
说明:  delphi hid class sample

文件列表:
Projekte\Delphi\HID\DBT.pas (19655, 2000-02-13)
Projekte\Delphi\HID\DEMOS\CollectionDemo (0, 2000-08-24)
Projekte\Delphi\HID\DEMOS\CollectionDemo\Project1.cfg (319, 2000-08-26)
Projekte\Delphi\HID\DEMOS\CollectionDemo\Project1.dof (993, 2000-08-26)
Projekte\Delphi\HID\DEMOS\CollectionDemo\Project1.dpr (215, 2000-08-26)
Projekte\Delphi\HID\DEMOS\CollectionDemo\Project1.res (876, 2000-08-24)
Projekte\Delphi\HID\DEMOS\CollectionDemo\Unit1.dfm (524, 2000-08-25)
Projekte\Delphi\HID\DEMOS\CollectionDemo\Unit1.pas (1931, 2000-08-26)
Projekte\Delphi\HID\DEMOS\HidClassDemo (0, 2000-08-22)
Projekte\Delphi\HID\DEMOS\HidClassDemo\HidClassDemo.cfg (319, 2000-08-23)
Projekte\Delphi\HID\DEMOS\HidClassDemo\HidClassDemo.dof (1296, 2000-08-23)
Projekte\Delphi\HID\DEMOS\HidClassDemo\HidClassDemo.dpr (373, 2000-08-22)
Projekte\Delphi\HID\DEMOS\HidClassDemo\HidClassDemo.res (964, 2000-08-22)
Projekte\Delphi\HID\DEMOS\HidClassDemo\Unit1.dfm (578, 2000-01-25)
Projekte\Delphi\HID\DEMOS\HidClassDemo\Unit1.pas (2231, 2000-08-31)
Projekte\Delphi\HID\DEMOS\ReadWriteDemo (0, 2000-08-25)
Projekte\Delphi\HID\DEMOS\ReadWriteDemo\SimpleHIDWrite.cfg (319, 2000-08-30)
Projekte\Delphi\HID\DEMOS\ReadWriteDemo\SimpleHIDWrite.dof (993, 2000-08-30)
Projekte\Delphi\HID\DEMOS\ReadWriteDemo\SimpleHIDWrite.dpr (230, 2000-08-20)
Projekte\Delphi\HID\DEMOS\ReadWriteDemo\SimpleHIDWrite.res (876, 2000-07-31)
Projekte\Delphi\HID\DEMOS\ReadWriteDemo\Unit1.dfm (1855, 2000-08-20)
Projekte\Delphi\HID\DEMOS\ReadWriteDemo\Unit1.pas (6000, 2000-08-26)
Projekte\Delphi\HID\DEMOS\ReadWriteDemo\Unit2.dfm (1867, 2000-08-30)
Projekte\Delphi\HID\DEMOS\ReadWriteDemo\Unit2.pas (1931, 2000-08-30)
Projekte\Delphi\HID\DEMOS\ThreadDemo (0, 2000-09-03)
Projekte\Delphi\HID\DEMOS\ThreadDemo\GreyMouser.cfg (319, 2000-09-03)
Projekte\Delphi\HID\DEMOS\ThreadDemo\GreyMouser.dof (993, 2000-09-03)
Projekte\Delphi\HID\DEMOS\ThreadDemo\GreyMouser.dpr (202, 2000-09-03)
Projekte\Delphi\HID\DEMOS\ThreadDemo\GreyMouser.res (876, 2000-09-03)
Projekte\Delphi\HID\DEMOS\ThreadDemo\MouseReader.dfm (815, 2000-09-03)
Projekte\Delphi\HID\DEMOS\ThreadDemo\MouseReader.pas (3012, 2000-09-03)
Projekte\Delphi\HID\help\BMP (0, 2000-08-25)
Projekte\Delphi\HID\help\BMP\empty.bmp (246, 2000-02-08)
Projekte\Delphi\HID\help\BMP\published.bmp (246, 2000-02-08)
Projekte\Delphi\HID\help\BMP\readonly.bmp (246, 2000-02-08)
Projekte\Delphi\HID\help\BMP\usb.bmp (838, 2000-02-08)
Projekte\Delphi\HID\help\HidController.cnt (177, 2000-02-13)
Projekte\Delphi\HID\help\HIDCONTROLLER.HLP (62246, 2000-09-01)
Projekte\Delphi\HID\help\HidController.hpj (573, 2000-04-10)
Projekte\Delphi\HID\help\HidController.toc (227, 2000-08-26)
... ...

Method GetPhysicalDescriptor has been replaced by string property PhysicalDescriptor. ReadFileEx and WriteFileEx implemented. HidOverlappedHandle, NumOverlappedBuffers, OpenFileEx and CloseFileEx accompany these new methods. The internal access to the device registry entries is now made with SetupDiGetDeviceRegistryProperty and is therefore Win2K safe. The property HardWareKey has been deleted because it is not needed anymore. DeviceStrings and LinkCollectionNodes have been changed to indexed properties. Their base index now starts correctly with 1. Two utility functions HidCheck and HidError have been added and documented in the help. Added NumCheckedInDevices, NumCheckedOutDevices and NumUnpluggedDevices. Various small improvements and bugfixes. ----------------------------------------------------------------------------- Bugfixes since last version: The events are set to nil in the destructor. This prevents strange problems with debugging. The index of the DeviceStrings now corresponds with their index when read in from the device. This now correctly represents device strings with nonconsecutive indices. DeviceIoControl has been added as a method. A new sample ReadWriteDemo has been added. > This sample and its data is rigged to the www.lvr.com > hid sample for the cypress evaluation board. Bugfixes since last version: PAS\HID.PAS: All params like "Report: PChar" changed to "var Report" This allows the use of buffers or records for the reports without any compiler warnings. DEMOS\HIDCLASS\HidControllerClass.pas: Propagated the untyped Report params up to the methods. Added ReadFile and WriteFile methods. The list of the language names (LanguageStrings) has been introduced. Fixed the central function FillInList to correctly use the SetupDi* functions. Added an exception to TJvHidDeviceController to prevent instanciating a second one. Various minor fixes. Help file completed. ----------------------------------------------------------------------------- Hid.pas is a conversion of HIDPI.H and HIDSDI.H since both function groups reside in HID.DLL and HIDSDI.H includes HIDPI.H anyway. I added HidD_Hello() to the conversion. This is the undocumented easter egg function of HID.DLL. See Hid.pas for details. HidToken.pas is a simple conversion of hidtoken.h. It contains only consts and some converted checking macros. HidUsage.pas is a more than complete conversion from hidusage.h The TUsage and PUsage types have been moved to Hid.pas. This eliminates the need to include HidUsage.pas in all HID projects. So HidToken.pas and HidUsage.pas are only needed in projects where the named constants are needed. Some sets of constants have been completed (mainly keys). The constants are for Usage, UsagePage and Usage values. That is they describe the real data you will get from USB devices. For real information read "USB HID Usage Tables 1.1rc3.pdf" or newer versions thereof from www.usb.org. I added some comments marked (rom) to clarify some things. Changes from Windows *** DDK to Windows 2000 DDK i marked (Win2000). The new functions documented in the Windows 2000 DDK have been implemented already in the HID.DLL of Windows *** SE. The function declarations are inside a {$IFDEF WIN2000}. You will need SetupApi.pas from the SetupApi conversion and DBT.pas from the DBT conversion. The component in Demos\HidClass gives you access to the complete HID API. There is no need to use the functions directly. known issues: some of the new constants in HidUsage.pas may be named incorrectly as a german i do not know all the real english key names

近期下载者

相关文件


收藏者