- 博客(290)
- 资源 (13)
- 收藏
- 关注
原创 IE10&11安装失败出现9C59代码之解决方案,
1,首先确认系统版本是否为Win7 SP12,去确认,“控制面板”-》“程序和功能”-》“查看已安装的更新”中是否包含如下更新: KB2670838 KB2729094 KB27860813,无则请安装以上补丁。4,安装好后,则现在就可以安装您喜欢的IE10 或者IE 11了。
2013-11-29 15:42:13 20477
转载 WM_TOUCH for windows Touch programming
Here is the codehttp://msdn.microsoft.com/en-us/library/windows/desktop/dd744775%28v=vs.85%29.aspx
2013-10-10 22:26:06 1523
转载 使用SetupApi获取LCD EDID信息
获取更多的显示信息,可以参考微软的MSDN网站。网址如下:http://msdn.microsoft.com/en-us/library/dd692964%28v=vs.85%29.aspx#include "windows.h"#include "setupapi.h"#include "initguid.h"#include "stdio.h"#define N
2013-10-09 20:04:25 2231
转载 调节系统显示亮度cpp代码
调节系统显示亮度cpp代码#include class CGammaRamp{protected: HMODULE hGDI32; HDC hScreenDC; typedef BOOL (WINAPI *Type_SetDeviceGammaRamp)(HDC hDC, LPVOID lpRamp); Type_SetDeviceGammaRamp pGe
2013-10-09 19:23:49 1093
翻译 Linux Foundation Secure Boot System Released
As promised, here is the Linux Foundation UEFI secure boot system. This was actually released to us by Microsoft on Wednesday 6 February, but with travel, conferences and meetings I didn’t really get time to validate it all until today. The files are her
2013-10-08 19:24:03 1638
转载 获取电池信息源码
获取电池信息源码#include #include #include #include #include DWORD GetBatteryState() { #define GBS_HASBATTERY 0x1 #define GBS_ONBATTERY 0x2 // Returned value includes GBS_HASBATTERY i
2013-10-08 18:36:02 1328
转载 Getting Started with Windows Touch Messages
Getting Started with Windows Touch MessagesThis section explains the tasks associated with getting Windows Touch input to function in your application.The following steps are typically performed
2013-09-27 18:02:45 906
原创 counter for windows
counter for windowsprogram wCounter;{$APPTYPE CONSOLE}uses SysUtils, Inifiles;var ini: TIniFile; cnt: Integer;function CreateIniFile(): Boolean;var f: TextFile;begin
2013-09-21 18:34:09 948
原创 Get windows sensors by Windows Sensors API
Get windows sensors by Windows Sensors APIunder VS2010 & Windows 7 sdk.// wSensors.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #i
2013-09-21 18:30:51 1299
原创 Windows 8, EFI boot and dism image Capture and Apply method.
Hard drive 1 has Windows 8 os installed with EFI.How to clone the hard drive 1 to hard drive 2?Install a third hard driveBoot the computer with Windows 8 PEThe third hard drive will have the D
2013-09-10 16:53:58 1826
翻译 Ultrabook™ and Tablet Windows* 8 Sensors Development Guide
Categories: Microsoft Windows* 8 Desktop Sensors Laptop Tablet Microsoft Windows* 8IntroductionThis guide gives developers an overview of the Microsoft Windows 8.1 se
2013-09-07 21:34:44 2612
原创 Windows 扫描无线AP代码
调用Windows WLan API实现扫描无线AP。// wLan.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #pragma comment(lib, "Wlanapi.lib") bool bWait =
2013-09-07 15:27:02 2691
转载 What is VSWR(电压驻波比/驻波比)?
Everyone has heard at least. Many knows that a bad VSWR affects the performance of the Network. But what about you: do you know what it means, and why we need to know how to use these measures?
2013-08-28 12:52:24 2223
转载 Shellcoding for Linux and Windows Tutorial
Table of Contents Change Log Frequently Asked Questions Background Information Required Tools Optional Tools Linux Shellcoding - Example 1 - Making a Quick Exit - Example 2 - Saying Hel
2013-08-07 21:53:34 2709
转载 How to Write Your Own Linux Kernel Module with a Simple Example
What are kernel modules?Kernel modules are piece of code, that can be loaded and unloaded from kernel on demand.Kernel modules offers an easy way to extend the functionality of the base kernel wit
2013-07-18 21:54:13 1144
原创 Linux各种问题解决方案
1. build linux kernel的错误cc1: error: unrecognized command line option "-mlittle-endian"cc1: error: unrecognized command line option "-mapcs"cc1: error: unrecognized command line option "-mno-sche
2013-06-06 14:49:57 16102 1
原创 adb程序彩色输出
有信号处理函数哦。#include #include #include #include #include FILE *f; /* global FILE defined for Ctrl+C Pressed */static void sig_int(int num){ fprintf(stderr, "get signal from -- Ctrl+C Pressed")
2013-05-09 17:19:26 1123
原创 使用popen()函数获取其他Console中的内容
该函数功能在stdio.h中有实现,调用很简单。如下源码:#include #include int main(int argc, char **argv){ FILE *f; char buf[80]={0}; f = _popen("ping.exe 127.0.0.1", "r"); if (NULL!=f) { while(fgets(buf, sizeo
2013-05-09 15:08:26 1057
原创 ioperm - Windows下设置端口权限
Windows下设置端口权限的系统调用有两个:ioperm和iopl函数1.ioperm函数 功能描述:为调用进程设置I/O端口访问权能。ioperm的使用需要具有超级用户的权限,只有低端的[0-0x3ff] I/O端口可被设置,要想指定更多端口的权能,可使用iopl函数。这一调用只可用于i386平台。用法:#include /* for libc5 */#in
2013-05-02 16:08:47 2652
转载 Linux设备驱动之ioctl控制
大部分驱动除了需要具备读写设备的能力之外,还需要具备对硬件控制的能力。 一、在用户空间,使用ioctl系统调用来控制设备,原型如下:int ioctl(int fd,unsigned long cmd,...);/*fd:文件描述符cmd:控制命令...:可选参数:插入*argp,具体内容依赖于cmd*/用户程序所作的只是通过命令码告诉驱动程序它想做什么,至于怎么解释
2013-04-29 18:47:00 819
原创 Linux Driver with new kernel-3.8
今天首次接触Linux字符设备的编程,花了很长的时间,针对所发现的问题进行整理如下:有以下注意点:1,编译模块不需要编译内核。按照如下的Makefile的方式即可在ubuntu下进行设备模块编译2,insmod后,需要使用mknod进行设备映射。此时,需要在cat /proc/devices中确认好主设备值 例如:mknod /dev/tfs 250 03,编写测试代
2013-04-29 14:00:47 1098
原创 Linux下定义Windows常用数据类型
最近将一个Windows程序移植到Linux上,发现两个操作系统对很多数据类型的命名方式区别很大,比如Windows下对于无符号数据类型一般用U+x的方式,像UINT、UCHAR、ULONG,而Linux上就要中规中矩,都是unsigned +x;另外,还有一些数据类型是Windows有,而Linux没有的,像DWORD、HANDLE、LPSTR等等。于是我写了一个Windows数据类型在Linu
2013-04-20 18:53:00 972
原创 I2C 驱动编程接口
1、通信接口i2c发送或者接收一次数据都以数据包 struct i2c_msg 封装 struct i2c_msg { __u16 addr; // 从机地址 __u16 flags; // 标志 #define I2C_M_TEN 0x0010 // 十位地址标志 #define I2C_M_RD 0x0001 // 接收数
2013-04-19 18:24:50 1338
转载 图解Git[强烈推荐]
再次感谢原著作者和中文翻译者。 此页图解git中的最常用命令。如果你稍微理解git的工作原理,这篇文章能够让你理解的更透彻。 如果你想知道这个站点怎样产生,请前往GitHub repository。正文 基本用法约定命令详解DiffCommitCheckoutDetached HEAD(匿名分支提交)ResetMergeCherry Pi
2013-03-18 11:29:47 888
原创 READ Display EDID Win32 API
http://msdn.microsoft.com/en-us/library/dd692950%28v=vs.85%29.aspxLinuxread-edid consists of two tools: . get-edid uses a VESA VBE 2 interrupt service routine request to read a 128 b
2013-03-15 21:00:18 2914
原创 GUID Class @ Windows Programming @setupapi
1394 Host Bus ControllerClass = 1394ClassGuid = {6bdd1fc1-810f-11d0-bec7-08002be2092f}This class includes system-supplied drivers of 1394 host controllers connected on a PCI bus, but not drivers
2013-03-15 18:56:11 2043
转载 setupapi + USB + GUID
#include #include #include #include #include #include #define MAX_DEVICE 256 wchar_t USBSerial[5][100] = {TEXT("")}; int gTag = 0;
2013-03-14 21:25:20 5367
转载 Using orientation sensors: Simple Compass sample
In this post we will show how to get the sensor informatión of the device to do a simple compass application.Getting the magnetic orientation with the TYPE_ORIENTATION sensor is deprecated, and now
2013-02-03 22:30:58 1453
原创 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xeb in position 114: invalid continuation byte
编辑 如下文件,然后选择保存 anyway。sudo gedit /var/lib/dpkg/status然后再执行 software-properties-gtk 命令,问题就解了。
2013-02-01 17:14:39 7275
转载 Linux下设备热插拔事件程序
/** * This program's outputs. * root@slax:~# ./a.out remove@/devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb3/3-2/3-2.1/3-2.1:1.0/host5/target5:0:0/5:0:0:0/bsg/5:0:0:0change@/devices/pci0000:00/
2013-01-31 13:46:31 3079
转载 C argc and argv Examples to Parse Command Line Arguments
Whenever you execute a program on a terminal, you can pass some arguments that are expected by the program, which can be used during the execution of the program. Here, system provides internal facili
2013-01-31 12:51:26 1539
原创 打开outlook 2007或2010时提示配置后重启 之问题解决方案
原本这个问题发生在我没有安装Windows Search 4.0的前提下发生的。因为我系统本身是繁体中文,所以,我之前下载的版本都是简体中文的,所以,安装一半都发生错误。所以,我在google时,发现可以对outlook下参数:例如:C:\Program Files\Microsoft Office\Office14\OUTLOOK.EXE /safe 此时,outlook可以正常
2012-12-08 06:25:07 9867 1
转载 A progress bar (gauge box) -- dialog Linux
You can create a progress bar (progress indicator) when copying/moving files or making backups using thegauge box. It displays a meter along the bottom of the box. The meter indicates the percentage
2012-12-05 08:09:22 1422
转载 单链表反转
单链表反转原理:波切尔函数?比如原链表为 head->1->2->3->NULL; 反转后:head->3->2->1->NULL;#include #include typedef struct Node{ int data; struct Node *next;}*List;#define node struct NodeList creat(voi
2012-12-02 19:48:03 625
Windows LID功能检测
2020-08-19
SignApk to assign you zip or apk file.
2012-09-03
ubuntu-tweak_0.7.0-1~precise4_all.deb
2012-04-27
conio-2.0-1 for DevCPP
2010-06-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人