梁某人

发展才是硬道理

导航

随笔分类 -  windows编程

windows编程相关
转 ifstream 读取中文路径
摘要:C++ ifstream 中文 阅读全文

posted @ 2010-09-10 23:59 涛仔28 阅读(916) 评论(0) 推荐(0)

WinDBG咒语
摘要:p - stept - tracepa - step to addressta - trace to addresspc - step to next calltc - trace to next calltb - trace to next branch (只适用于内核调试)pt - step to next returntt - trace to next returnph - step to... 阅读全文

posted @ 2009-03-11 07:36 涛仔28 阅读(216) 评论(0) 推荐(0)

从进程ID得到句柄
摘要:return OpenProcess(PROCESS_ALL_ACCESS,TRUE,(DWORD)processID); 阅读全文

posted @ 2005-09-25 18:03 涛仔28 阅读(662) 评论(0) 推荐(0)

一段精彩的Thunk代码(转载自 chinaaspx.com)
摘要:#include class ZWindow;ZWindow* g_pWnd = NULL;#pragma pack(push,1)struct _WndProcThunk{ DWORD m_mov; // mov dword ptr [esp+0x4], pThis (esp+0x4 is hWnd) DWORD m_this; BYTE ... 阅读全文

posted @ 2005-09-13 01:38 涛仔28 阅读(603) 评论(0) 推荐(0)

PE文件结构图解,比较牵强,仅为学习笔记,高手见笑
摘要: 阅读全文

posted @ 2005-07-21 02:48 涛仔28 阅读(664) 评论(0) 推荐(0)

转:如何用非对称密码算法制作共享软件的注册码
摘要:网上大多数共享软件的注册码(又称为序列号)的设计都不是很好,比较容易被破解者做出注册机来。下面介绍一种利用公钥算法(又称为非对称算法)RSA制作注册码的方法。采用这种方法,不知道密钥的话时很难写出注册机来。实际上有部分软件已经使用了这类方法。 大家都知道RSA采用一对密钥,即公钥和私钥,从公钥难于推出私钥,反之亦然,这个难度是基于大数分解的难度。利用RSA生成共享软件注册码的思路如下:1、先随机生... 阅读全文

posted @ 2005-06-14 21:58 涛仔28 阅读(626) 评论(0) 推荐(0)

为ServerXMLHTTP对象的HTTP请求设置超时时间
摘要:如果用ServerXMLHTTP(SXH)对象向另一个ASP页面或者Internet资源发起HTTP请求,建议设置一下超时限制。 既可以异步提交这种HTTP请求,也可以通过同步操作时调用setTimeouts方法做到这一点。 ... 阅读全文

posted @ 2005-03-04 10:16 涛仔28 阅读(1778) 评论(0) 推荐(0)

向非COM应用注入对象模型(Add Object Models to Non-COM Apps)
摘要:In the grand tradition of "sin in haste, repent at leisure," thousands of Windows applications have been built that don't expose an object model. So you can't instantiate instances and control their b... 阅读全文

posted @ 2005-03-03 17:37 涛仔28 阅读(1265) 评论(0) 推荐(0)

How To Add MFC Support to an ATL Project
摘要:http://support.microsoft.com/default.aspx?scid=kb;en-us;173974 SUMMARY When creating an ATL EXE project using the AppWizard, the MFC support check box is disabled. This article explains how to ad... 阅读全文

posted @ 2005-02-24 03:31 涛仔28 阅读(1110) 评论(0) 推荐(0)