自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 【VS】关于内存分布查看的方式

class Base{public: int a; Base() { cout<<"Base()"<<endl; } ~Base() { cout<<"~Base()"<<endl; } virtual fun() { cout <<"Base fun()"<<endl; }};class Derived:public Base{public: De

2017-05-17 16:46:10 2417

原创 WSAAsyncGetHostByName()函数的正确使用!

WIN32 程序#include #include #include #include #pragma comment(lib,"Ws2_32.lib")#define MAX_LOADSTRING 100#define WM_HOSTBYNAME (WM_USER +100)char czHost[] = {"www.baidu.com"};char czBuf[M

2017-05-16 15:05:58 1698

原创 INF 驱动文件实现命令方式进行安装。。。

测试平台:WIN10 INF文件本来是驱动安装。。。文件邮件单击“安装”即可。。。如果非得使用命令来显示一键安装,就得使用下面的命令。。。命令如下:pnputil -i -a *.inf提示:CMD使用管理员模式

2017-05-05 16:56:20 21848 2

E_EDID 手册

EDID版本解析。

2017-08-01

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

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

2017-07-28

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

U盘完美安装系统教程

U盘完美安装系统教程

2013-10-23

qt获取文件—超大图标

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

2013-07-25

硬盘 绝密 维修 资料

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

2013-01-08

Turbo C高级编程技术

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

2013-01-08

System Management BIOS (SMBIOS)

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

2013-01-08

OpenGL游戏程序设计光盘源码

OpenGL游戏程序设计光盘源码

2012-12-26

3DS 文件格式详解

3DS 文件格式详解

2012-12-26

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

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

2012-12-26

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

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

2012-12-26

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

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

2012-12-26

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

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

2012-12-26

Linux dmidecode-2.9 源码

Linux dmidecode-2.9 源码

2012-12-26

OpenGL Nehe 教程Python源码

OpenGL Nehe 教程Python源码

2012-12-26

Turbo C++ 3.0

Turbo C++ 3.0

2012-12-26

OpenGL Nehe 教程VS_Net源码

OpenGL Nehe 教程VS_Net源码

2012-12-24

OpenGL Nehe 教程C#源码

OpenGL Nehe 教程C#源码

2012-12-24

OpenGL Nehe 教程Delphi源码

OpenGL Nehe 教程Delphi源码

2012-12-24

OpenGL Nehe 教程Linux源码

OpenGL Nehe 教程Linux源码

2012-12-24

OpenGL Nehe 教程Java源码

OpenGL Nehe 教程Java源码

2012-12-24

OpenGL Nehe 教程VC源码

OpenGL Nehe 教程VC源码

2012-12-24

OpenGL 天空盒的实现

OpenGL 天空盒的实现

2012-12-24

OpenGL 加载3ds文件并显示

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

2012-12-24

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

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

2012-12-24

unetbootin-windows-581

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

2012-12-24

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

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

2012-12-24

图文详解定制安装ubuntu

图文详解定制安装ubuntu

2012-12-24

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

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

2012-12-21

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

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

2012-12-21

VC++图像平滑处理

VC++图像平滑处理

2012-12-21

Bitmap 转 txt 源码

Bitmap 转 txt 源码

2012-12-21

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

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

2012-12-21

MATLAB教程

MATLAB教程

2012-12-21

iPhone 系统图标 PNG格式

iPhone 系统图标 PNG格式

2012-12-21

XP系统ICON图标

XP系统ICON图标

2012-12-21

VC 实现2.64 协议

VC 实现2.64 协议

2012-12-21

300种加密解密算法

300种加密解密算法

2012-12-21

微软提供的usb软件开发包

微软提供的usb软件开发包

2012-12-21

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

TA关注的人

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