资源简介
驱动器 D 中的卷没有标签。
卷的序列号是 B837-9C57
D:\download\USB助手 源码
2008-12-30 08:44 <DIR> .
2008-12-30 08:44 <DIR> ..
2002-10-07 15:21 1,536 ChildFrm.cpp
2002-10-07 15:21 1,397 ChildFrm.h
2002-10-07 15:21 17,103 DevicesDlg.cpp
2002-10-07 15:21 2,330 DevicesDlg.h
2008-12-30 08:44 18 dir list.bat
2008-12-30 08:44 0 dir.txt
2002-10-07 15:21 5,469 Exporter.cpp
2002-10-07 15:21 2,098 Exporter.h
200
2-10-07 15:21 4,947 ExportLogDlg.cpp
2002-10-07 15:21 1,712 ExportLogDlg.h
2002-10-07 15:21 6,135 MainFrm.cpp
2002-10-07 15:21 1,894 MainFrm.h
2002-10-07 15:21 2,954 MyMemFile.cpp
2002-10-07 15:21 1,682 MyMemFile.h
2002-10-07 15:21 1,582 ProgressStatusBar.cpp
2002-10-07 15:21 982 ProgressStatusBar.h
2002-10-07 15:21 4,754 ReadMe.txt
2002-10-07 15:21 2,271 ReadmeDlg.cpp
2002-10-07 15:21 1,264 ReadmeDlg.h
2008-12-30 08:41 <DIR> Res
2002-10-07 15:21 4,735 Resource.h
2002-10-07 15:21 14,777 SetupDIMgr.cpp
2002-10-07 15:21 1,943 SetupDIMgr.h
2002-10-07 15:21 11,745 SnoopyPro.cpp
2002-10-07 15:21 7,277 SnoopyPro.dsp
2002-10-07 15:21 2,704 SnoopyPro.h
2002-10-07 15:21 23,501 SnoopyPro.rc
2002-10-07 15:21 704 SnoopyPro.reg
2008-12-11 19:15 16,773 SnoopyPro.vcproj
2002-10-07 15:21 211 StdAfx.cpp
2002-10-07 15:21 1,212 StdAfx.h
2002-10-07 15:21 57,986 URB.cpp
2002-10-07 15:21 9,642 URB.h
2002-10-07 15:21 3,613 URBLogListBox.cpp
2002-10-07 15:21 1,454 URBLogListBox.h
2002-10-07 15:21 13,776 URBLogListCtrl.cpp
2002-10-07 15:21 3,209 URBLogListCtrl.h
2002-10-07 15:21 3,192 URLStatic.cpp
2002-10-07 15:21 1,285 URLStatic.h
2002-10-07 15:21 11,998 USBLogDoc.cpp
2002-10-07 15:21 2,929 USBLogDoc.h
2002-10-07 15:21 28,721 USBLogView.cpp
2002-10-07 15:21 3,470 USBLogView.h
42 个文件 286,985 字节
3 个目录 12,592,160,768 可用字节
卷的序列号是 B837-9C57
D:\download\USB助手 源码
2008-12-30 08:44 <DIR> .
2008-12-30 08:44 <DIR> ..
2002-10-07 15:21 1,536 ChildFrm.cpp
2002-10-07 15:21 1,397 ChildFrm.h
2002-10-07 15:21 17,103 DevicesDlg.cpp
2002-10-07 15:21 2,330 DevicesDlg.h
2008-12-30 08:44 18 dir list.bat
2008-12-30 08:44 0 dir.txt
2002-10-07 15:21 5,469 Exporter.cpp
2002-10-07 15:21 2,098 Exporter.h
200
2-10-07 15:21 4,947 ExportLogDlg.cpp
2002-10-07 15:21 1,712 ExportLogDlg.h
2002-10-07 15:21 6,135 MainFrm.cpp
2002-10-07 15:21 1,894 MainFrm.h
2002-10-07 15:21 2,954 MyMemFile.cpp
2002-10-07 15:21 1,682 MyMemFile.h
2002-10-07 15:21 1,582 ProgressStatusBar.cpp
2002-10-07 15:21 982 ProgressStatusBar.h
2002-10-07 15:21 4,754 ReadMe.txt
2002-10-07 15:21 2,271 ReadmeDlg.cpp
2002-10-07 15:21 1,264 ReadmeDlg.h
2008-12-30 08:41 <DIR> Res
2002-10-07 15:21 4,735 Resource.h
2002-10-07 15:21 14,777 SetupDIMgr.cpp
2002-10-07 15:21 1,943 SetupDIMgr.h
2002-10-07 15:21 11,745 SnoopyPro.cpp
2002-10-07 15:21 7,277 SnoopyPro.dsp
2002-10-07 15:21 2,704 SnoopyPro.h
2002-10-07 15:21 23,501 SnoopyPro.rc
2002-10-07 15:21 704 SnoopyPro.reg
2008-12-11 19:15 16,773 SnoopyPro.vcproj
2002-10-07 15:21 211 StdAfx.cpp
2002-10-07 15:21 1,212 StdAfx.h
2002-10-07 15:21 57,986 URB.cpp
2002-10-07 15:21 9,642 URB.h
2002-10-07 15:21 3,613 URBLogListBox.cpp
2002-10-07 15:21 1,454 URBLogListBox.h
2002-10-07 15:21 13,776 URBLogListCtrl.cpp
2002-10-07 15:21 3,209 URBLogListCtrl.h
2002-10-07 15:21 3,192 URLStatic.cpp
2002-10-07 15:21 1,285 URLStatic.h
2002-10-07 15:21 11,998 USBLogDoc.cpp
2002-10-07 15:21 2,929 USBLogDoc.h
2002-10-07 15:21 28,721 USBLogView.cpp
2002-10-07 15:21 3,470 USBLogView.h
42 个文件 286,985 字节
3 个目录 12,592,160,768 可用字节
代码片段和文件信息
//************************************************************************
//
// RingBuffer.cpp
//
//************************************************************************
#include “StdDCls.h“
// This is a nice ringbuffer implementation that Tom gave me yesterday...
// thanks!
#include “RingBuffer.h“
// fast MOD operation doesn‘t need divide (but is restricted in its generality)
#define MYMOD(xn) ((x) >= (n) ? ((x)-(n)) : (x))
void CRingBuffer::Initialize(void *pbase long nBufferSize)
{
m_nOverflowOccurred = 0;
m_pbase = (unsigned char *) pbase;
m_nTotalBytes = (NULL == m_pbase) ? 0 : nBufferSize;
m_nBytes = 0;
m_nInPtr = 0;
m_nOutPtr = 0;
}
bool CRingBuffer::WriteBytes(void *pData long nBytes)
{
long p1len p2len;
if(nBytes > GetFreeSize())
{
return false;
}
p1len = min(nBytes m_nTotalBytes - m_nInPtr);
p2len = nBytes - p1len;
// copy first bit (up to the end of the buffer or end of source data whichever comes first)
RtlCopyMemory(m_pbase + m_nInPtr pData p1len);
if(p2len)
{
// if there was an overlap copy the rest as well
RtlCopyMemory(m_pbase (unsigned char *)pData + p1len p2len);
}
m_nInPtr += nBytes;
m_nInPtr = MYMOD(m_nInPtr m_nTotalBytes);
InterlockedExchangeAdd(&m_nBytes nBytes);
return true;
}
bool CRingBuffer::ReadBytes(void *pData long nBytes)
{
long p1len p2len;
if(nBytes > m_nBytes)
{
// not enough data in buffer
return false;
}
p1len = min(nBytes m_nTotalBytes - m_nOutPtr);
p2len = nBytes - p1len;
RtlCopyMemory(pData m_pbase + m_nOutPtr p1len);
if(p2len)
{
RtlCopyMemory((unsigned char*)pData + p1len m_pbase p2len);
}
m_nOutPtr += nBytes;
m_nOutPtr = MYMOD(m_nOutPtr m_nTotalBytes);
InterlockedExchangeAdd(&m_nBytes -nBytes);
return true;
}
bool CRingBuffer::PeekBytes(void *pData long nBytes)
{
long p1len p2len;
if(nBytes > m_nBytes)
{
// not enough data in buffer
return false;
}
p1len = min(nBytes m_nTotalBytes - m_nOutPtr);
p2len = nBytes - p1len;
RtlCopyMemory(pData m_pbase + m_nOutPtr p1len);
if(p2len)
{
RtlCopyMemory((unsigned char*)pData + p1len m_pbase p2len);
}
return true;
}
bool CRingBuffer::FlushBuffer(void)
{
// EnterAccess();
m_nBytes = 0;
m_nInPtr = 0;
m_nOutPtr = 0;
// LeaveAccess();
return true;
}
//** end of RingBuffer.cpp ***********************************************
/*************************************************************************
$Log: RingBuffer.cppv $
Revision 1.1 2002/08/14 23:00:58 rbosa
shared code between the application and driver and drivers themselves...
*
* 1 1/25/02 2:44p Rbosa
*****************************************
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
.CA.... 5184 2002-10-07 15:21 USB助手 源码\98DDK\ba
.CA.... 188260 2002-10-07 15:21 USB助手 源码\98DDK\VMM.H
.CA.... 8031 2002-10-07 15:21 USB助手 源码\98DDK\VWIN32.H
.CA.... 11644 2002-10-07 15:21 USB助手 源码\98DDK\VXDLDR.H
.CA.... 1069002 2002-10-07 15:21 USB助手 源码\98DDK\VXDWRAPS.CLB
.CA.... 60450 2002-10-07 15:21 USB助手 源码\98DDK\VXDWRAPS.H
.CA.... 1425972 2002-10-07 15:21 USB助手 源码\98DDK\WDMVXD.CLB
.CA.... 1111 2002-10-07 15:21 USB助手 源码\Shared\BuildNum.h
.CA.... 5303 2002-10-07 15:21 USB助手 源码\Shared\Interface.h
.CA.... 3033 2002-10-07 15:21 USB助手 源码\Shared\RingBuffer.cpp
.CA.... 1545 2002-10-07 15:21 USB助手 源码\Shared\RingBuffer.h
.CA.... 1495 2002-10-07 15:21 USB助手 源码\Shared\StdDCls.h
.CA.... 12457 2002-10-07 15:21 USB助手 源码\Shared\USBSnoopies_Common.inl
.CA.... 1536 2002-10-07 15:21 USB助手 源码\SnoopyPro\ChildFrm.cpp
.CA.... 1397 2002-10-07 15:21 USB助手 源码\SnoopyPro\ChildFrm.h
.CA.... 17103 2002-10-07 15:21 USB助手 源码\SnoopyPro\DevicesDlg.cpp
.CA.... 2330 2002-10-07 15:21 USB助手 源码\SnoopyPro\DevicesDlg.h
.CA.... 5469 2002-10-07 15:21 USB助手 源码\SnoopyPro\Exporter.cpp
.CA.... 2098 2002-10-07 15:21 USB助手 源码\SnoopyPro\Exporter.h
.CA.... 4947 2002-10-07 15:21 USB助手 源码\SnoopyPro\ExportLogDlg.cpp
.CA.... 1712 2002-10-07 15:21 USB助手 源码\SnoopyPro\ExportLogDlg.h
.CA.... 6135 2002-10-07 15:21 USB助手 源码\SnoopyPro\MainFrm.cpp
.CA.... 1894 2002-10-07 15:21 USB助手 源码\SnoopyPro\MainFrm.h
.CA.... 2954 2002-10-07 15:21 USB助手 源码\SnoopyPro\MyMemFile.cpp
.CA.... 1682 2002-10-07 15:21 USB助手 源码\SnoopyPro\MyMemFile.h
.CA.... 1582 2002-10-07 15:21 USB助手 源码\SnoopyPro\ProgressStatusBar.cpp
.CA.... 982 2002-10-07 15:21 USB助手 源码\SnoopyPro\ProgressStatusBar.h
.CA.... 4754 2002-10-07 15:21 USB助手 源码\SnoopyPro\ReadMe.txt
.CA.... 2271 2002-10-07 15:21 USB助手 源码\SnoopyPro\ReadmeDlg.cpp
.CA.... 1264 2002-10-07 15:21 USB助手 源码\SnoopyPro\ReadmeDlg.h
............此处省略68个文件信息
- 上一篇:机械制造工艺学 ppt
- 下一篇:基于51单片机的智能温控器
相关资源
- 基于FPGA的USB接口设计
- 枚举USB设备接口(C 源代码)
- 多普达USB Modem驱动(适用于818、828、
- 键盘输入监控
- SN9C291B datasheet
- 希捷公布USB外部硬盘解决方案
- USB调试模式一键设置
- 友善串口调试助手V3.7.3,带注册码
- 基于WiFi技术的矿井信号收发器设计
- u校园刷课助手(浏览器插件源码)
- USB网卡驱动 USB2.0 TO Fast Ethernet Adapte
- USB转串口(RS232/RS485/RS422)驱动程序文
- USB Type-C SPEC
- 易语言模块反编译助手
- 基于Linux、QT的视频监控系统的设计与
- H310.B360.H370.Z390.USB WIN7 64位第三方驱动
- 300系列WIN7 USB驱动.7z
- 华硕P8H61/USB3 R2.0主板BIOS驱动 免费版
- RTL8188EVT USB WIFI无线网卡驱动 免费版
- RTL8188 USB无线网卡模块完整方案
- 基于PLC和组态软件的变频器监控系统
- 基于SPCE061A的无线环境监控系统设计
- USB PCB布局布线要点及注意事项
- 监控DAV播放器纯绿色免安装版
- 基于Blackfin的无线IP视频监控解决方案
- 消防指示灯智能监控系统三端口网关
- 物联网家居系统中基于单片机的多路
- USB驱动 INF中的服务安装段落无效的原
- MTP USB驱动win7 32+64位可用版
- 幼儿园手机视频监控应用方案
评论
共有 条评论