- 博客(17)
- 资源 (13)
- 收藏
- 关注
原创 size_t在printf的正确输出方法
#if defined(_MSC_VER) #define JL_SIZE_T_SPECIFIER "%Iu" #define JL_SSIZE_T_SPECIFIER "%Id" #define JL_PTRDIFF_T_SPECIFIER "%Id"#elif defined(__GNUC__) #define JL_SIZE_T_SPECIFIER "%zu" #define J
2014-03-25 15:04:35 20580 1
原创 win32读取raw扇区
#define WIN32_LEAN_AND_MEAN#include #include #include #define BytesPerSector 512char Drive[] = "\\\\.\\PHYSICALDRIVE0";BOOL ReadPhysicalSector(LONGLONG SectorStart, ULONG SectorCount, PVOI
2014-01-24 12:10:56 721
原创 windows下获得磁盘分区信息
#define WIN32_LEAN_AND_MEAN#include #include #include #include #ifndef STORAGE_DEVICE_NUMBERtypedef struct _STORAGE_DEVICE_NUMBER { DEVICE_TYPE DeviceType; ULONG DeviceNumber; ULONG P
2014-01-17 11:58:20 3534 1
原创 wdm驱动dbg输出
头文件定义输出宏#define PTDBG_TRACE_ROUTINES 0x00000001#define PTDBG_TRACE_OPERATION_STATUS 0x00000002#define PT_DBG_PRINT( _dbgLevel, _string ) \ ( FlagOn(gTraceFlags,(_dbgLev
2014-01-09 11:00:12 1057
原创 写IRP返回的长度可能不是sectorsize的整数倍
返回的长度 》》》》 Irp->IoStatus.Information0-1: W F7F42000 off=759200, len=400*** Assertion failed: Length % SECTOR_SIZE == 0*** Source File: c:\winddk\mine\wdutils\dmon2\cache.c, l
2014-01-06 16:52:27 683
原创 从dll生成.lib
需要工具dumpbin.exelib.exe1. 查看DLL导出函数表DUMPBIN.EXE /EXPORTS ntdll.dll输出类似: ordinal hint RVA name 1207 4B6 0002DC81 _itow 1208 4B7 0006F989 _lfind 1209 4B8 0
2013-12-23 11:45:10 678
转载 Printf %输出格式
%d--输出有符号十进制整数%o --输出无符号八进制整数%x - 输出无符号十六进制整数%X –除了大写字母使用'A'-'F'外同 %x%u - 输出无符号十进制整数%s – 输出一个以C 中空字符NULL 结束的字符串%c – 以 ASCII 字符形式输出只输出一个字符%f – 以小数形式输出浮点数%S – 输出在FLASH 存贮器中的字符串常量如果在% 和
2013-11-27 20:59:28 1448
原创 system thread
#includeVOID WorkThread(IN PVOID pContext){ int i; for(i=0;i<5;i++) DbgPrint("I am %d\r\n", i+1); PsTerminateSystemThread(STATUS_SUCCESS);}NTSTATUS DriverEntry(IN PDRIVER_OBJECT Driv
2013-11-05 15:48:49 715
原创 nullFilter
/* This is the main module of the nullFilter mini filter driver. It is a simple minifilter that registers itself with the main filter for no callback operations.*/#include #include #in
2013-11-01 16:46:07 793
原创 迷宫生成:Sidewinder算法
http://weblog.jamisbuck.org/2011/2/7/maze-generation-algorithm-recap#include #include #define N 1 #define S 2#define E 4#define W 8#define width 16#define height 8#define wei
2013-10-24 16:35:44 851
原创 cpuid调用示例
#include #include typedef unsigned int u32;/** * Ref arch/x86/include/asm/cpufeature.h *//* Intel-defined CPU features, CPUID level 0x00000001 (edx) */#define X86_FEATURE_FPU ( 0) /* Onboa
2013-10-22 15:33:55 1021
原创 amittai的B+tree1.12版本的dot输出补丁
--- bpt.c 2013-10-15 07:54:12 +0800+++ bpt1.c 2013-10-17 17:04:37 +0800@@ -48,6 +48,7 @@ // #define WINDOWS #include #include +#include #include #ifdef WINDOWS #define bool char@@ -288,6
2013-10-17 17:12:42 656
原创 windows获得服务配置(驱动路径)
#include #include #include #define ____DEVICE_BASENAME ("myfirst")//// Get system error message string//PCSTR SystemMessage( DWORD nError){ static CHAR msg[256]; if (!FormatMessage(
2013-10-16 17:19:21 2941
原创 windows启动停止服务
#include #include #define ____DEVICE_BASENAME ("myfirst")//// Get system error message string//PCSTR SystemMessage( DWORD nError){ static CHAR msg[256]; if (!FormatMessage( FORMAT_M
2013-10-16 16:03:23 863
原创 windows下加入删除服务
#include #include #define ____DEVICE_BASENAME ("myfirst")//// Get system error message string//PCSTR SystemMessage(DWORD nError){static CHAR msg[256];if (!FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM |FOR
2013-10-16 11:41:42 781 1
原创 ubuntu优化
1. for servicehttp://www.360doc.com/content/11/0330/14/496343_105866732.shtml2. for spaceinstall localepurgeinstall bleachbit
2011-09-12 16:17:59 410
原创 一道算法题:圆桌会议
Total Submission(s) : 179 Accepted Submission(s) : 122 Problem Description HDU ACM集训队的队员在暑假集训时经常要讨论自己在做题中遇到的问题.每当面临自己解决不了的问题时,他们就会围坐在一张圆形的桌子旁进行交流, 经过大家的讨论后一般没有解决不了的问题,这也只有HDU ACM集训队特有的圆桌会议,有一天你也可以进来
2010-01-26 18:48:00 2723 1
ARM指令集手册-含thumb
2014-02-21
windows磁盘性能评估工具合集
2014-01-08
Information Technology Project Management ppt 课件
2011-09-05
汉字库提取程序 16 24 32(附带 hzk16 , hzk24 , hzk32 )
2010-07-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人