- 博客(7)
- 资源 (6)
- 收藏
- 关注
转载 Dynamic-Link Library Best Practices
Dynamic-Link Library Best PracticesUpdated:May 17, 2006In this articleGeneral Best PracticesDeadlocks Caused by Lock Order InversionBest Practices for SynchronizationRecommendationsImportant APIsDllMa...
2018-06-20 14:30:39 186
原创 c++提取应用程序中的图标(绘制图标ico)
//提取应用程序中的图标 CSttring m_strIcoPath = L"xx.exe"; CRect m_rcItem; //绘制区域 HICON hIcon = ::ExtractIcon(GetModuleHandle(NULL), m_strIcoPath, 0); if (hIcon != NULL) { Graphics graphics(hDC); Bit...
2018-06-20 10:36:40 5623
原创 c++ 枚举系统字体
//1、定义: CStringArray m_mSysFonts //2、回调: static INT CALLBACK NEnumFontNameProc(LOGFONT *plf, TEXTMETRIC* /*ptm*/, INT /*nFontType*/, LPARAM lParam/**/); HDC hdc = ::GetDC(*this); int nRet = ::EnumFont...
2018-06-19 10:07:35 2166 1
原创 windbg 分析dmp文件之-空指针!!
1、测试程序#include "stdafx.h"int _tmain(int argc, _TCHAR* argv[]){ int *pTest = NULL; printf("%d",*pTest); return 0;}2、自动生成dmp代码 自行copy,这里略。3、启动windbdg 1)、配置pdb位置。 2)、配置源码位置。4、打开demo2.dmp5、在win...
2018-06-15 17:16:56 985
原创 遍历进程运行线程数
#include "stdafx.h"#include <Windows.h>#include <TlHelp32.h>#include <stdio.h>#include <stdlib.h>void TestProcessGetThreadNumber() { int i = 0; char Buff[9]; PROCESSENTRY32 pe3...
2018-06-15 16:45:49 769
原创 枚举本地盘符
// dirtest.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <Windows.h>#include <string.h>#define _WTL_NO_CSTRING#include <atlbase.h>#include &...
2018-06-15 16:42:53 749
原创 64位系统文件 重定向问题(遍历system32目录文件问题)
文件重定向同样,文件系统也存在2个独立的部分(1)32位程序对%systemroot%/system32 的操作存在重定向32位文件会被重定向到%systemroot%/SysWOW64(2)64位程序对文件操作不存在重定向(3)补充%systemroot%/SysWOW64下的都为32位程序,在里面可以找到32位的cmd、calc关闭重定向即可!!eg:BOOL IsWow64(){ typed...
2018-06-15 16:35:22 2156
AcEdInputPointMonitor CAD鼠标提示信息反应器
2014-07-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人