自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(162)
  • 资源 (88)
  • 问答 (1)
  • 收藏
  • 关注

原创 【VC】Dialog 窗口任意分割子窗口。

用 Dialog 对话框来实现窗口的任意分割。在资源中添加  Dialog 选择  IDD_FORMVIEW 资源。。分别新建FormViewOne,FormViewTwo FormViewThree 类,分别继承基类 CFormView。class CMyFormViewOne : public CFormView{ DECLARE_DYNCREATE(CMyForm

2014-11-06 11:14:07 9216

原创 【VC】实现CWnd类的自定义,并实现自定义控件!

本例实现一个ColorWnd类,实现通过鼠标单击,刷新不同的颜色背景。class CColorWnd : public CWnd{ DECLARE_DYNAMIC(CColorWnd)public: CColorWnd(); virtual ~CColorWnd(); virtual BOOL PreCreateWindow(CREATESTRUCT& cs); afx

2014-11-05 16:59:13 3860

原创 【SonicUI】关于字体高亮的问题。。

m_pSonicString[1]->Format(_T("/c=%x, a='http://hi.csdn.net/', linkh=0xFF00F0, font, font_height=25, font_bold=1, font_italic=1/点我打开链接uM"),RGB(128,0,32)); m_pSonicString[2]->Format(_T("/c=%x, a='http:

2014-10-28 11:21:40 1467

原创 【SonicUI】最可能的异常: Microsoft C++ 异常: 内存位置 0x0011f280 处的 char。

关于“SonicUIDemo.exe”: 已加载“C:\Windows\System32\asycfilt.dll”SonicUIDemo.exe 中的 0x7516812f 处最可能的异常: Microsoft C++ 异常: 内存位置 0x0011f280 处的 char。SonicUIDemo.exe 中的 0x7516812f 处最可能的异常: Microsoft C++ 异常:

2014-10-27 13:46:47 10111

原创 【SonicUI】 VS2008 SP1 编译错误处理。

原作者下载地址:

2014-10-27 11:20:59 1445

原创 【API】GetUserNameEx 函数使用

BOOLEAN WINAPI GetUserNameEx( __in EXTENDED_NAME_FORMAT NameFormat, __out LPTSTR lpNameBuffer, __in_out PULONG lpnSize);typedef enum { NameUnknownNameUnknownAn u

2014-09-16 15:11:01 2245

原创 【API】Nvidia API官方下载地址

Nvidia API 欢迎大家去参观。。

2014-09-09 15:54:23 2304

原创 【VC】ChangeDisplaySettingsEx 设置显示器屏幕分辨率

DISPLAY_DEVICE m_Device;DEVMODE m_DeviceMode;

2014-06-30 14:14:08 10109

原创 【VC++】SQLGetInstalledDrivers 获取系统驱动。

BOOL SQLGetInstalledDrivers( LPSTR lpszBuf, WORD cbBufMax, WORD * pcbBufOut);

2014-06-16 11:22:34 3964 1

原创 【USB】全球USB厂家 USB ID大全。更新时间:2014.05.05

## List of USB ID's## Maintained by Stephen J. Gowdy # If you have any new entries, please submit them via# http://www.linux-usb.org/usb-ids.html# or send entries as patches (diff -u old ne

2014-06-04 12:12:44 73179

原创 【VC++】万年历算法代码。根据年月日求星期。。

BOOL IsLeapYear(unsigned int nYear){ if((nYear % 4 ==0 && nYear % 400 != 0) ||(nYear % 400 == 0)) { return TRUE; } else { return FALSE; }}unsigned int MonthOfDays(unsigned int nYear,unsig

2014-04-22 15:06:29 1898

原创 【WINDOWS】Locale ID (LCID) Chart

Locale DescriptionShort StringHex ValueDecimal ValueLocale DescriptionShort StringHex ValueDecimal ValueAfrikaansaf0x04361078Icelandicis0x040F1039Alba

2014-04-18 14:59:58 1518

原创 【WIN API】EnumSystemFirmwareTables 函数的使用。

UINT WINAPI EnumSystemFirmwareTables( __in DWORD FirmwareTableProviderSignature, __out PVOID pFirmwareTableBuffer, __in DWORD BufferSize);UINT WINAPI GetSystemFirmwa

2014-03-05 17:42:23 4395

原创 【VC】设置工程属性,实现软件以管理员模式打开!

在工程属性——链接器 —— 清单文件1 。启用用户帐户控制(UAC)  是2 。UAC执行级别      requireAdministror

2014-02-12 16:22:48 1285

转载 【VC】编程打开特殊的系统窗口

命令列: rundll32.exe shell32.dll,Control_RunDLL  功能: 显示控制面板  命令列: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1  功能: 显示“控制面板-辅助选项-键盘”选项视窗    命令列: rundll32.exe shell32.dll,Control_RunDLL

2013-12-13 17:39:31 968

原创 【VC】CStatic 实现在图标处用数字来提示信息数量!

1,以QQ电脑管理为例: 安装目录下发现以下图标  显示的数字,只是在图标上绘制字符串而已。。2。以CStatic控件为例,来实现如下功能CStatic *pWnd = (CStatic *)GetDlgItem(IDC_BITMAP_STA); HBITMAP hBitmap =(HBITMAP)LoadImage(AfxGetInstanceHandle

2013-12-06 14:28:49 2392

原创 【VC】 fatal error C1190: 托管目标代码需要“/clr”选项

用VS2008 调用C# Dll来使用时,出现了一下错误:  fatal error C1190: 托管目标代码需要“/clr”选项解决方法:右键属性 —— 配置属性 —— 常规 ——公共语言运行时支持 ——公共语言运行时支持(/clr)#using using namespace System;System::IO::Directory::Cr

2013-12-02 17:10:25 10233

原创 【VC】 获取电脑USB设备VID和PID等信息。

1,添加头文件和宏定义#include #include #pragma comment(lib,"setupapi.lib")DEFINE_GUID (UsbClassGuid, 0xa5dcbf10L, 0x6530, 0x11d2, 0x90, 0x1f, 0x00, 0xc0, 0x4f, 0xb9, 0x51, 0xed); //USB GUID

2013-11-07 11:30:24 8210 2

原创 【VC】 实现程序只运行一个实例

方法1:CXXXXApp::InitInstance()HANDLE hMutex=CreateMutex(NULL,TRUE,_T("PCP")); if (hMutex) { if(ERROR_ALREADY_EXISTS==GetLastError()) { CloseHandle(hMutex); HWND hWnd = ::FindWindow(N

2013-11-05 14:20:54 954

原创 【VC】Clistctrl 实现拖动文件显示文件名录。

1,添加 Clistctrl 控件,选择 Report 格式,Accept Files 设置为 True 2。 自定义一个CClistctrl 类 的子类 CMyClistctrl class CMyListCtrl : public CListCtrl{ DECLARE_DYNAMIC(CMyListCtrl)public: CMyListCtrl(); virt

2013-11-01 14:45:33 1512

原创 【U盘安装系统】通过UltralISO软件,实现U盘安装系统教程。

1,UltralISO + U盘 + 系统ISO (ISO安装版或者ghost版取决个人) 2,打开要安装的ISO文件。 3,菜单 :启动 -- 写入硬盘映像     默认配置即可,然后单击   写入  ,慢慢等待知道完成! 4 ,写入成功后,就可以用U盘安装系统了。。 5,开机选择U盘启动启动。。电脑快捷键 F8 or F12 上传图片太麻烦了,特准备

2013-10-23 11:50:57 2195

原创 【CCS5.3】TI CCS5.3编译器输出Hex文件。

CCS5.3 编译的默认输出是.out ,如何才能生成 .Hex 哪? 1.工程属性 (Alt+Enter) 界面如下图: 2.  在TI的安装目录中寻找:D:\TI\ccsv5\tools\compiler\msp430_4.1.2\bin\hex430.exe  用命令提示符打开 一下是获取的命令参数:General Options: --byte,

2013-10-15 10:05:12 8746

原创 【Inno Setup】一些常用脚本。

安装不同的目录:[Files]Source: "我的程序\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirsSource: "我的程序\*"; DestDir: {cf}\我的程序; Flags: ignoreversion recursesubdirs createallsubdirs

2013-10-08 14:22:29 1718

原创 【Inno Setup】安装前先卸载旧版本

从注册表中获取 UninstallString 卸载信息,Exec函数来进行卸载。。 APP_NAME 就是AppName 名字 [Code]function InitializeSetup(): boolean;var ResultStr: String; ResultCode: Integer;begin if RegQueryStringValue(HKLM

2013-10-08 14:05:11 8460

原创 【VC】 关于SetupDiGetClassDevs函数的使用。

HDEVINFOWINAPISetupDiGetClassDevsW( __in_opt CONST GUID *ClassGuid, __in_opt PCWSTR Enumerator, __in_opt HWND hwndParent, __in DWORD Flags ); 使用这个函数会生成4个句柄数,(句柄数:任务管理器--进程-

2013-09-22 15:28:33 3511

原创 【VC】VS2008+WDK 配置方法解析

WDK 下载地址:http://www.microsoft.com/en-us/download/details.aspx?id=11800大家根据自己需要来下载。。 下载完大家就可以安装了!根据自己的OS选择相应的安装选项!本人安装目录:D:\WinDDK\7600.16385.1 VS2008 添加方法:工具——选项——项目和解决方案——VC++目录包含文件:

2013-08-06 17:48:49 2376

原创 【VC】 CStatic 控件绘制BITMAP的方法。。

默认CStatic控件,改变ID名称:IDC_STABITMAP  图片ID: IDB_BITMAP1hBitmap 的获取可以使用 LoadImage 或者 LoadBitmap一下方法的调用均在 OnPaint 函数中使用。。 方法1 CStatic * pStatic = (CStatic *)GetDlgItem(IDC_STABITMAP); HBITMAP h

2013-07-16 11:36:14 3474

原创 【VC】DeviceIoControl 函数 IOCTL 扩展控制代码。

// IOCTL commands#define DFP_GET_VERSION 0x00074080#define DFP_SEND_DRIVE_COMMAND 0x0007c084#define DFP_SEND_DRIVE_COMMAND CTL_CODE(IOCTL_DISK_BASE, 0x0021, METHOD_BUFFERED, FIL

2013-07-15 15:48:46 2745

原创 EnableDebugPrivilge(CString lpName, BOOL fEnable) 函数源码,提升进程操作权限。

BOOL EnableDebugPrivilge(CString lpName, BOOL fEnable){ HANDLE hObject; LUID Luid; TOKEN_PRIVILEGES NewStatus; if (!OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY | TOKEN_ADJUST_PRIVILEGE

2013-07-08 14:23:23 3360 1

原创 【VC++】根据文件名,查找文件的全路径。。

DWORD WINAPI GetFullPathName( __in LPCTSTR lpFileName, __in DWORD nBufferLength, __out LPTSTR lpBuffer, __out LPTSTR* lpFilePart);Retrieves the fu

2013-07-04 10:59:30 1968

原创 【VC++】关于 warning C4996: 的解决方法。。

VS2008+SP1  Unicode 环境 使用 wcscpy(Dest,Src); 编译会出现如下提示:warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECU

2013-07-03 14:01:35 2986

原创 【VC】DLL文件中添加对话框资源。。

创建“MFC DLL”工程,工程命CTestDll,接下来选择“使用 MFC DLL 共享 DLL”,点击“完成”。资源工程中,从菜单中选择Insert->Resource,添加“Dialog”, 选择“New”,至此对话框已添加到DLL工程中。为对话框添加一新类,如:CTestDlg,基类为CDialog。在TestDll.cpp中添加接口函数: #include "TestDl

2013-07-02 15:12:21 3662

原创 【VC】CString类型数据(十六进制) TO int类型

当我们获取数据时,是CString类时。。1.CString 数据是 1234,4567等int nNum = wtoi(CString);  这样是可以直接转换的。。 2。CString 数据是 FFFF,FF33 等这样就得自己写函数来实现了。。 BOOL StrHexToDec(CString szStr,int& nData){ int nTemp =

2013-06-27 17:31:01 3086

原创 【VS系列】开启工程MAP文件调试方法。。

直接上图:  这样F7,编译就能在工程中看到生成的MAP文件了。。。   Address Publics by Value Rva+Base Lib:Object 0000:00000000 ___safe_se_handler_table 00000000 0000:0000

2013-04-27 10:18:07 3328

原创 【VC】关于VC中资源释放表,让你更清晰的了解和使用。

资源分配函数清除函数需要手动清除cceleratorsLoadAcceleratorsN/ANotomsGlobalAddAtomGlobalFreeAtomYesBitmapsCreateBitmapDel

2013-04-17 17:30:24 1598

原创 复制网页带来的行号问题,VS系列解决方式大放送!

1. 查看网页源码,找到该代码的位置,然后进行复制即可。。IE为例: 查看---- 源文件 2.VS的查找替换功能,在这里我们使用《正则表达式》^[0-9]+[.]   问题1:大家应该先 shift+tab 让所有的行号都对齐,在实现以上的替换,这样更彻底 3. vs环境中支持块选,使用alt+鼠标拖动来实现竖向选择区块。

2013-04-17 11:54:19 1333

原创 【VC】无法从"LRESULT (__thiscall CMyWinThread::* )”转换为"LRESULT (__thiscall CWnd::* )

在VS08 中新建一个自定义类,Class CMyWinThread pubic:CWinThread 时,当我们自定义消息时,会出现如何的错误!! 无法从“LRESULT (__thiscall CMyWinThread::* )(WPARAM,LPARAM)”转换为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)” 解决方式如下:

2013-04-11 16:17:39 1670

原创 【VC】判断中文并获取中文的ASCII码

中文是占有两个字节的。。例如:文,0x6587,内存中87 65如果ASCII >= 0xA0,则可以判断是中文,这样的话ASCII就占了两位  CString str(_T("11文11")); BYTE Buf[10]; int nlen,nCount = 0; for (int i=0;i<str.GetLength();i++) { nlen =(int)

2013-04-10 15:18:52 4706

原创 【VC++】FormatMessage 获取 GetLastError 信息。

DWORD FormatMessage( DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPTSTR lpBuffer, DWORD nSize, va_list* Arguments); LPVOID lpMsgBuf; FormatMessage

2013-04-07 15:15:42 2269

原创 【C语言】FILE读取文件的'\o'和'\n'。

FILE * fp; fp = fopen("11.txt", "w"); fprintf(fp,"%s\n","hello"); fprintf(fp,"%c",'\0'); fprintf(fp,"%c",'\n'); fprintf(fp,"%s","world"); fclose(fp); 方法如下: ifstream fin; char ch ; f

2013-04-03 13:47:39 1597 1

图文详解定制安装ubuntu

图文详解定制安装ubuntu

2012-12-24

最小的Linux系统制作过程详解

最小的Linux系统制作过程详解 最小的Linux系统制作过程详解

2012-12-24

屏幕2D坐标转化为场景3D坐标

Name: ReadDepth Desc: 通过读取Z Buffer深度值将屏幕2D坐标转化为场景3D坐标 操作:点击鼠标左键,在标题栏上会显示深度值和转化后的场景3D坐标

2012-12-24

OpenGL 加载3ds文件并显示

OpenGL 加载3ds文件并显示 OpenGL 加载3ds文件并显示 OpenGL 加载3ds文件并显示

2012-12-24

OpenGL 天空盒的实现

OpenGL 天空盒的实现

2012-12-24

精通Visual C++.NET图像处理编程(第二版)

精通Visual C++.NET图像处理编程(第二版)

2012-12-21

OpenGL Nehe 教程Linux源码

OpenGL Nehe 教程Linux源码

2012-12-24

图像边缘检测各种算法源码

图像边缘检测各种算法源码

2012-12-21

iPhone 系统图标 PNG格式

iPhone 系统图标 PNG格式

2012-12-21

XP系统ICON图标

XP系统ICON图标

2012-12-21

微软提供的usb软件开发包

微软提供的usb软件开发包

2012-12-21

Bitmap 转 txt 源码

Bitmap 转 txt 源码

2012-12-21

VC++图像平滑处理

VC++图像平滑处理

2012-12-21

300种加密解密算法

300种加密解密算法

2012-12-21

Visual C++多媒体开发指南配套源码

Visual C++多媒体开发指南配套源码

2012-12-21

VC 实现2.64 协议

VC 实现2.64 协议

2012-12-21

MATLAB教程

MATLAB教程

2012-12-21

unetbootin-windows-581

unetbootin-windows-581 实现把ISO导入到U盘,实现U盘安装操作系统!!!

2012-12-24

OpenGL Nehe 教程Java源码

OpenGL Nehe 教程Java源码

2012-12-24

OpenGL Nehe 教程VC源码

OpenGL Nehe 教程VC源码

2012-12-24

用面向对象的方法实现3DS文件的读取与操纵

用面向对象的方法实现3DS文件的读取与操纵 用面向对象的方法实现3DS文件的读取与操纵

2012-12-26

3DS 文件格式详解

3DS 文件格式详解

2012-12-26

基于OpenGL的3DS图形文件中模型数据的获取

基于OpenGL的3DS图形文件中模型数据的获取 基于OpenGL的3DS图形文件中模型数据的获取

2012-12-26

基于OpenGL的DEM地形可视化和虚拟漫游系统

基于OpenGL的DEM地形可视化和虚拟漫游系统 基于OpenGL的DEM地形可视化和虚拟漫游系统

2012-12-26

硬盘 绝密 维修 资料

第 一 章 硬盘的物理结构和原理 第 二 章 硬盘的基本参数 第 三 章 硬盘逻辑结构简介 第 四 章 硬盘的物理安装 第 五 章 系统启动过程 第 六 章 硬盘的品牌 第 七 章 硬盘电路板测试及维修技巧 第 八 章 常用维修软件 第 九 章 专业维修软件PC3000 第 十 章 数据恢复 第十一章 典型故障及维修流程

2013-01-08

qt获取文件—超大图标

typedef HICON (*getIcon)(CONST TCHAR *filePath); //定义函数指针,以备调用

2013-07-25

HID 设备类读写

HID 设备类读写 #include //! Defines the maximum length of a serial number #define SERNUM_LEN 40 //! Defines the maximum number of physical devices #define MAX_PHYS_DEVICES 6 //! \name HID Device return codes //! @{ // //! HID action/transfer was successful #define HID_DEVICE_SUCCESS 0x00 //! HID device was not found #define HID_DEVICE_NOT_FOUND 0x01 //! HID device is not opened #define HID_DEVICE_NOT_OPENED 0x02 //! HID device is allready opened #define HID_DEVICE_ALREADY_OPENED 0x03 //! Timeout occurs during transfer #define HID_DEVICE_TRANSFER_TIMEOUT 0x04 //! HID transfer failed #define HID_DEVICE_TRANSFER_FAILED 0x05 //! Invalid handle #define HID_DEVICE_HANDLE_ERROR 0x06 //! Unknown error #define HID_DEVICE_UNKNOWN_ERROR 0xFF //! @} // Enabled only when debugging HID connection issues //#define DEBUG_MODE //****************************************************************************** // //! \brief Device information structure. // //****************************************************************************** struct strHidDevice{ //! Handle for hid device HANDLE hndHidDevice; //! Indicator if device is opened BOOL bDeviceOpen; //! Timeout for GetReport requests UINT uGetReportTimeout; //! Timeout for SetReport requests UINT uSetReportTimeout; //! Asynchronous I/O structure OVERLAPPED oRead; //! Asynchronous I/O structure OVERLAPPED oWrite; //! Maximum length of InReport's WORD wInReportBufferLength; //! Maximum length of OutReport's WORD wOutReportBufferLength; //! InBuffer contains data, if InReport provides more data then the application actual need BYTE inBuffer[8192]; //! Number of current used bytes in inBuffer WORD inBufferUsed; }; //****************************************************************************** // //! A structure that tracks the number of serial numbers // //****************************************************************************** struct strTrackSerialNumbers { //! Index number DWORD deviceNum; //! Serial number of physical device char serialNum[SERNUM_LEN]; }; //****************************************************************************** // //! \addtogroup hiddevice_api //! @{ // //****************************************************************************** //****************************************************************************** // //! \brief Close a HID Device. //! //! This function will close a HID device based on the HID structure //! //! \param pstrHidDevice Structure which contains important data of an HID //! device //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_NOT_OPENED //! \n \b HID_DEVICE_HANDLE_ERROR // //****************************************************************************** BYTE HID_Close(struct strHidDevice* pstrHidDevice); //****************************************************************************** // //! \brief Flush USB buffer for the given device //! //! \param pstrHidDevice Structure which contains important data of an HID //! device. //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_HANDLE_ERROR //! \n \b HID_DEVICE_UNKNOWN_ERROR // //****************************************************************************** BYTE HID_FlushBuffer(struct strHidDevice* pstrHidDevice); //****************************************************************************** // //! \brief Gets the number of HID devices //! //! This function will return the number of interfaces connected with a //! specified VID, PID and serial number, if no devices are connected, //! it will return a 0 //! //! \param vid Vendor-Id of the device //! \param pid Product-Id of the device //! \param numSerNums Total number of connected physical devices //! //! \return Return the number of connected devices with the specific VID, PID, //! and serial number. // //****************************************************************************** DWORD HID_GetNumOfInterfaces(WORD vid, WORD pid, DWORD numSerNums); //****************************************************************************** // //! \brief Gets the number of serial number and serial number list //! //! Scans the HID Devices on the system for any whose VID/PID match the //! ones specified. For every one it finds, it returns that device's //! serial number in serialNumList. Every physical USB device within a //! given VID/PID space has a unique serial number; therefore, each //! item in the list corresponds with a separate physical USB device //! attached to this host; that is, different physical instances of the //! same product or design. The function returns the total number of //! serial numbers found; if none are found, it returns 0. //! //! \param vid Vendor-ID of the device //! \param pid Product-ID of the device //! \param serialNumList List of serial numbers corresponding to the passed //! VID and PID //! //! \return Returns the number of connected physical devices with the specific //! VID and PID // //****************************************************************************** DWORD HID_GetSerNums(WORD vid, WORD pid, struct strTrackSerialNumbers * serialNumList); //****************************************************************************** // //! \brief Returns the version number of a device. //! //! \param pstrHidDevice Structure which contains important data of an HID //! device. //! \param VersionNumber Pointer to USHORT variable. //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_HANDLE_ERROR // //****************************************************************************** BYTE HID_GetVersionNumber(struct strHidDevice* pstrHidDevice, USHORT * VersionNumber); //****************************************************************************** // //! \brief Init structure with default values. //! //! It is important to call HID_Init() before calling HID_Open() to //! avoid unpredictable behavoir. //! //! \param pstrHidDevice Structure which contains important data of a HID //! device //! //! \return None // //****************************************************************************** void HID_Init(struct strHidDevice* pstrHidDevice); //****************************************************************************** // //! \brief This has to be called inside WM_ON_DEVICECHANGE notification window //! //! This function checks if the particular HID device structure is //! still connected or disconnected. //! //! \param pstrHidDevice Structure which contains important data of an HID //! device. //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_HANDLE_ERROR // //****************************************************************************** BOOL HID_IsDeviceAffected(struct strHidDevice* pstrHidDevice); //****************************************************************************** // //! \brief Open a HID Device. //! //! This function opens the HID device associated with the HID interface //! 'deviceIndex' (0-7), on the physical device described by the VID, //! PID, and serial number. //! \param pstrHidDevice Structure which contains important data of an HID //! device //! \param vid Vendor-ID of the device //! \param pid Product-ID of the device //! \param deviceIndex Index of the device.If only one HID is connected, //! deviceIndex is 0. //! - Starts with zero //! - Maximum value is (HID_GetNumOfInterfaces() - 1) //! \param serialNumber Serial number of device to be opened. //! \param totalDevNum Total number of interfaces associated with the //! serial number //! \param totalSerNum Total number of physical devices associated with //! the VID/PID //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_NOT_FOUND //! \n \b HID_DEVICE_ALREADY_OPENED // //****************************************************************************** BYTE HID_Open(struct strHidDevice* pstrHidDevice, WORD vid, WORD pid, DWORD deviceIndex, char serialNumber[SERNUM_LEN], DWORD totalDevNum, DWORD totalSerNum); //****************************************************************************** // //! \brief Reads a data stream from the given HID device. //! //! Prefixed report ID will be skipped. //! //! \param pstrHidDevice Structure which contains important data of an HID //! device //! \param buffer Pointer to buffer in which will be written //! \param bufferSize Number of bytes to read //! \param bytesReturned Number of actual read bytes //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_NOT_OPENED //! \n \b HID_DEVICE_TRANSFER_TIMEOUT //! \n \b HID_DEVICE_TRANSFER_FAILED // //****************************************************************************** BYTE HID_ReadFile(struct strHidDevice* pstrHidDevice, BYTE* buffer, DWORD bufferSize, DWORD* bytesReturned); //****************************************************************************** // //! \brief Registers a device for program Windows notification. //! //! Registers the window pointed to by handle hWnd to receive //! notification when devices are added or removed from the system. //! //! \param hWnd Windows handle //! \param diNotifyHandle Device notification handle pointer address //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_HANDLE_ERROR // //****************************************************************************** BYTE HID_RegisterForDeviceNotification(HWND hWnd, HDEVNOTIFY* diNotifyHandle); //****************************************************************************** // //! \brief Un-Registers a device from Windows notification. //! //! Un-registers the window pointed to by handle hWnd to receive //! notification when devices are added or removed from the system. //! //! \param diNotifyHandle: Device notification handle pointer address. //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_HANDLE_ERROR // //****************************************************************************** BYTE HID_UnRegisterForDeviceNotification(HDEVNOTIFY* diNotifyHandle); //****************************************************************************** // //! \brief Writes a data stream to the given HID device. //! //! Needed report IDs will be generated automatically. //! //! \param pstrHidDevice Structure which contains important data of an HID //! device //! \param buffer Buffer which will be send //! \param bufferSize Number of bytes to send //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_NOT_OPENED //! \n \b HID_DEVICE_TRANSFER_TIMEOUT //! \n \b HID_DEVICE_TRANSFER_FAILED // //****************************************************************************** BYTE HID_WriteFile(struct strHidDevice* pstrHidDevice, BYTE* buffer, DWORD bufferSize);

2013-12-13

Linux dmidecode-2.9 源码

Linux dmidecode-2.9 源码

2012-12-26

OpenGL Nehe 教程Delphi源码

OpenGL Nehe 教程Delphi源码

2012-12-24

U盘完美安装系统教程

U盘完美安装系统教程

2013-10-23

OpenGL Nehe 教程Python源码

OpenGL Nehe 教程Python源码

2012-12-26

一种OpenGL中3D Studio模型的读取与控制方法

一种OpenGL中3D Studio模型的读取与控制方法

2012-12-26

OpenGL Nehe 教程VS_Net源码

OpenGL Nehe 教程VS_Net源码

2012-12-24

E_EDID 手册

EDID版本解析。

2017-08-01

OpenGL游戏程序设计光盘源码

OpenGL游戏程序设计光盘源码

2012-12-26

2017年上半年软件设计师上午真题及答案解析

【转】2017年上半年软件设计师上午真题及答案解析

2017-07-28

System Management BIOS (SMBIOS)

System Management BIOS (SMBIOS) Reference Specification DSP0134 Version 2.6a Status: Preliminary Standard May 2, 2007

2013-01-08

OpenGL Nehe 教程C#源码

OpenGL Nehe 教程C#源码

2012-12-24

Turbo C++ 3.0

Turbo C++ 3.0

2012-12-26

Turbo C高级编程技术

介绍如何利用 TC 系统所提供的相关函数实现菜单设计、图形绘制、动画的播放、乐曲 的演奏、汉字的显示、图片的显现等技术,在讲述时,以问题-解答的方式来逐渐阐明。

2013-01-08

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除