CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  C++ Builder >  基础类

求控件!Tvich Win32控件! BCB对硬件端口读写的控件!

楼主codecb(阿星)2002-06-23 10:25:51 在 C++ Builder / 基础类 提问

求控件!Tvich     Win32控件!      
  BCB对硬件端口读写的控件!      
  求下载地址或发到我的邮箱      
  谢了@_@      
  cxmemail@yahoo.com.cn 问题点数:150、回复次数:6Top

1 楼lluunn007(书生)回复于 2002-06-23 11:07:49 得分 0

Mark@_@Top

2 楼codecb(阿星)回复于 2002-06-23 17:10:37 得分 0

UPTop

3 楼codecb(阿星)回复于 2002-06-23 18:12:05 得分 0

UP  
  upTop

4 楼lj_csdn(大笨蛋)回复于 2002-06-23 18:41:27 得分 0

WINIO  
  以下是附带的readme.txt  
   
  ------------------------------------------------------------  
                                                  WinIo   v1.2                                                      
          Direct   Hardware   Access   Under   Windows   9x/NT/2000                    
                          Copyright   1998-2000   Yariv   Kaplan                                  
                                  http://www.internals.com                                          
  ------------------------------------------------------------  
   
  The   WinIo   library   allows   32-bit   Windows   applications   to   directly  
  access   I/O   ports   and   physical   memory.   It   bypasses   Windows   protection  
  mechanisms   by   using   a   combination   of   a   kernel-mode   device   driver   and  
  several   low-level   programming   techniques.  
   
  Under   Windows   NT,   the   WinIo   library   can   only   be   used   by   applications  
  that   have   administrative   privileges.   If   the   user   is   not   logged   on   as  
  an   administrator,   the   WinIo   DLL   is   unable   to   install   and   activate   the  
  WinIo   driver.   It   is   possible   to   overcome   this   limitation   by   installing  
  the   driver   once   through   an   administrative   account.   In   that   case,   however,  
  the   ShutdownWinIo   function   must   not   be   called   before   the   application  
  is   terminated,   since   this   function   removes   the   WinIo   driver   from   the  
  system's   registry.  
   
  The   library   exports   8   functions:  
   
  ----------------------------------------------------------------------------  
   
  bool   _stdcall   InitializeWinIo();  
   
  This   function   initializes   the   WinIo   library.  
   
  For   applications   running   under   Windows   NT/2000,   this   function  
  must   be   called   before   calling   any   other   function   in   the   library.  
   
  Windows   9x   applications   are   not   required   to   call   this   function.  
   
  If   the   function   succeeds,   the   return   value   is   nonzero.  
   
  If   the   function   fails,   the   return   value   is   zero.    
   
  ----------------------------------------------------------------------------  
   
  void   _stdcall   ShutdownWinIo();  
   
  This   function   performs   cleanup   of   the   WinIo   library.  
   
  For   applications   running   under   Windows   NT/2000,   this   function  
  must   be   called   before   terminating   the   application   or   when   the  
  WinIo   library   is   no   longer   required.  
   
  Windows   9x   applications   are   not   required   to   call   this   function.  
   
  ----------------------------------------------------------------------------  
   
  bool   _stdcall   GetPortVal(WORD   wPortAddr,   PDWORD   pdwPortVal,   BYTE   bSize);  
   
  Use   this   function   to   read   a   BYTE/WORD/DWORD   value   from   an   I/O   port.  
   
  Parameters:  
   
      wPortAddr   -   I/O   port   address  
   
      pdwPortVal   -   Pointer   to   a   DWORD   variable   that   receives   the   value  
                                obtained   from   the   port.  
   
      bSize   -   Number   of   bytes   to   read.  
                      Can   be   1   (BYTE),   2   (WORD)   or   4   (DWORD).  
   
      If   the   function   succeeds,   the   return   value   is   nonzero.  
   
      If   the   function   fails,   the   return   value   is   zero.    
   
  ----------------------------------------------------------------------------  
   
  bool   _stdcall   SetPortVal(WORD   wPortAddr,   DWORD   dwPortVal,   BYTE   bSize);  
   
  Use   this   function   to   write   a   BYTE/WORD/DWORD   value   to   an   I/O   port.  
   
  Parameters:  
   
      wPortAddr   -   I/O   port   address  
   
      dwPortVal   -   A   DWORD   value   to   be   written   to   the   port  
   
      bSize   -   Number   of   bytes   to   write.  
                      Can   be   1   (BYTE),   2   (WORD)   or   4   (DWORD).  
   
      If   the   function   succeeds,   the   return   value   is   nonzero.  
   
      If   the   function   fails,   the   return   value   is   zero.    
   
  ----------------------------------------------------------------------------  
   
  PBYTE   _stdcall   MapPhysToLin(PBYTE   pbPhysAddr,   DWORD   dwPhysSize,   HANDLE   *pPhysicalMemoryHandle)  
   
  Use   this   function   to   map   a   region   of   physical   memory   into   the   linear   address    
  space   of   a   32-bit   Windows   application.  
   
  Here   is   an   example:  
   
  PBYTE   pbLinAddr;  
  HANDLE   PhysicalMemoryHandle;  
   
  pbLinAddr   =   MapPhysToLin(0xA0000,   65536,   &PhysicalMemoryHandle);  
   
  The   function   will   map   physical   addresses   0xA0000   -   0xAFFFF   into   the   linear  
  address   space   of   the   application.   The   value   returned   is   a   linear   address  
  corresponding   to   physical   address   0xA0000.   In   case   of   an   error,   the   return  
  value   is   NULL.  
   
  Parameters:  
   
      pbPhysAddr   -   Pointer   to   the   physical   address  
       
      dwPhysSize   -   Number   of   bytes   to   map  
   
      pPhysicalMemoryHandle   -   Points   to   a   variable   that   will   receive   the   physical   memory   section  
                                                      handle   if   this   call   is   successful.   This   handle   is   later   used   as  
                                                      the   first   parameter   when   calling   the   UnmapPhysicalMemory   function.  
   
  ----------------------------------------------------------------------------  
   
  bool   _stdcall   UnmapPhysicalMemory(HANDLE   PhysicalMemoryHandle,   PBYTE   pbLinAddr)  
   
  Use   this   function   to   unmap   a   region   of   physical   memory   which   was   previously   mapped  
  to   the   linear   address   space   of   the   application   using   the   MapPhysToLin   function.  
   
  Windows   9x   applications   are   not   required   to   call   this   function.  
   
  Parameters:  
   
      PhysicalMemoryHandle   -   Handle   to   the   physical   memory   section   which   was   returned  
                                                    from   the   call   to   the   MapPhysToLin   function.  
   
      pbLinAddr   -   Linear   address   which   was   returned   from   the   call   to   the   MapPhysToLin  
                              function.  
   
  ----------------------------------------------------------------------------  
   
  bool   _stdcall   GetPhysLong(PBYTE   pbPhysAddr,   PDWORD   pdwPhysVal);  
   
  This   function   reads   one   DWORD   from   the   specified   physical   address.  
   
  Parametes:  
   
      pbPhysAddr   -   Pointer   to   the   physical   address  
       
      pdwPhysVal   -   Pointer   to   a   DWORD   variable   that   receives   the   value  
                                obtained   from   the   physical   memory   location.  
   
      If   the   function   succeeds,   the   return   value   is   nonzero.  
   
      If   the   function   fails,   the   return   value   is   zero.    
   
  ----------------------------------------------------------------------------  
   
  bool   _stdcall   SetPhysLong(PBYTE   pbPhysAddr,   DWORD   dwPhysVal);  
   
  This   function   writes   one   DWORD   to   the   specified   physical   address.  
   
  Parametes:  
   
      pbPhysAddr   -   Pointer   to   the   physical   address  
       
      pdwPhysVal   -   Specifies   a   DWORD   value   to   be   written   to   the   physical  
                                memory   location.  
   
      If   the   function   succeeds,   the   return   value   is   nonzero.  
   
      If   the   function   fails,   the   return   value   is   zero.    
   
  ----------------------------------------------------------------------------  
                                                      A   NOTE   FOR   VB   USERS  
  ----------------------------------------------------------------------------  
   
  To   use   winio.dll   with   a   32-bit   Visual-Basic   application   you   need   to:  
   
  1.   Place   winio.dll   and   winio.sys   in   the   same   directory   as   your   executable   file.  
   
  2.   Add   winio.bas   to   your   project.  
   
  ----------------------------------------------------------------------------  
                                                              LEGAL   STUFF                            
  ----------------------------------------------------------------------------  
   
  The   following   terms   apply   to   all   files   associated   with   the   software  
  unless   explicitly   disclaimed   in   individual   files.  
   
  The   author   hereby   grants   permission   to   use,   copy,   modify,   distribute,  
  and   license   this   software   and   its   documentation   for   any   purpose,   provided  
  that   existing   copyright   notices   are   retained   in   all   copies   and   that   this  
  notice   is   included   verbatim   in   any   distributions.   No   written   agreement,  
  license,   or   royalty   fee   is   required   for   any   of   the   authorized   uses.  
   
  IN   NO   EVENT   SHALL   THE   AUTHOR   OR   DISTRIBUTORS   BE   LIABLE   TO   ANY   PARTY  
  FOR   DIRECT,   INDIRECT,   SPECIAL,   INCIDENTAL,   OR   CONSEQUENTIAL   DAMAGES  
  ARISING   OUT   OF   THE   USE   OF   THIS   SOFTWARE,   ITS   DOCUMENTATION,   OR   ANY  
  DERIVATIVES   THEREOF,   EVEN   IF   THE   AUTHOR   HAVE   BEEN   ADVISED   OF   THE  
  POSSIBILITY   OF   SUCH   DAMAGE.  
   
  THE   AUTHOR   AND   DISTRIBUTORS   SPECIFICALLY   DISCLAIM   ANY   WARRANTIES,  
  INCLUDING,   BUT   NOT   LIMITED   TO,   THE   IMPLIED   WARRANTIES   OF   MERCHANTABILITY,  
  FITNESS   FOR   A   PARTICULAR   PURPOSE,   AND   NON-INFRINGEMENT.   THIS   SOFTWARE  
  IS   PROVIDED   ON   AN   "AS   IS"   BASIS,   AND   THE   AUTHOR   AND   DISTRIBUTORS   HAVE  
  NO   OBLIGATION   TO   PROVIDE   MAINTENANCE,   SUPPORT,   UPDATES,   ENHANCEMENTS,   OR  
  MODIFICATIONS.  
   
   
  I   can   be   reached   at:   yariv@internals.com  
   
  Yariv   Kaplan  
   
  Top

5 楼dollarbcb(水果)回复于 2002-06-25 15:48:29 得分 150

 
   
  我有发到你邮箱去了~!  
  别忘了给分!  
   
  Top

6 楼sunmingdong()回复于 2002-10-15 10:31:23 得分 0

好东西大家一起分享,  
   
  谢谢,sunmd@vip.sina.comTop

相关问题

  • BCB控件
  • BCB控件和__fastcall
  • 在程序中如何关闭NMStrmServ1控件的端口??
  • 请问要想控制com端口需要什么控件?
  • 专业技术性问题:Winsock控件的端口问题
  • 完成端口TCPServer/TCPClient控件,请帮助测试一下!
  • 如何使用SOCKET控件监听某一端口的UDP包
  • 求一ActiveX控件,从机器的90端口读数据。
  • 用WINSOCK控件怎么检测本地端口是否已给占用,并分配另一端口???
  • 请问::使用多个UDP控件,可不可以让这些控件只使用一个端口?

关键词

  • 32-bit
  • win32
  • 控件
  • winio
  • administrative
  • driver

得分解答快速导航

  • 帖主:codecb
  • dollarbcb

相关链接

  • CSDN Blog
  • 技术文档
  • 代码下载
  • 第二书店
  • 读书频道

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo