
vs
鱼公子哟西
这个作者很懒,什么都没留下…
展开
-
vs 生成pdb调试
1) Goto Project->HelloWorld Properties 2) On the left expand "Configuration Properties" 3) Expand "C/C++" 4) On the left, Select "General" 5) On the right, change "Debug Information Format" to "Pr转载 2015-12-07 13:56:46 · 5260 阅读 · 1 评论 -
VC读取文件的文件版本号
#include #include ///引入Version.lib库 QString InfomationCollect::GetFileVertion( QString fullName ) { DWORD dwLen = 0; char* lpData=NULL; BOOL bSuccess = FALSE; QString fileInfomation; //转载 2016-06-06 16:12:38 · 592 阅读 · 0 评论 -
获取文件数字签名证书信息
验证文件数字签名是否有效可以使用函数 WinVerifyTrust 取得文件数字签名证书信息需要使用函数 CryptQueryObject。 // FileSign.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #include #include #include #prag转载 2016-06-06 17:10:32 · 4273 阅读 · 0 评论 -
更新资源文件
UpdateResource DavidCrow, 7 Sep 2003 4.85 (22 votes) Rate this: vote 1vote 2vote 3vote 4vote 5转载 2016-06-06 20:31:43 · 731 阅读 · 0 评论 -
查看文件被占用的进程 NtQueryObject NtQueryInformationFile NtQuerySystemInformation
#pragma once #include #include #include #include #include #include #include using namespace std; #include typedef std::basic_stringTCHAR, std::char_traitsTCHAR>, std::allocatorTCHAR>> tstring; #inclu转载 2016-06-22 11:21:27 · 4545 阅读 · 0 评论 -
C++解除文件占用
1.解除文件占用,其过程比较简单,当然在寻找这个过程还是吃了不少苦头的,首先呢,我们需要,遍历系统中所有的文件句柄该过程呢,就要是检测句柄类型,如果是28,则可以认为是文件,然后检测先该文件名是不是我们需要的,如果是我们需要的,则要记录下该句柄的ProcessId,然后再打开该进程,然后向该进程中注入远程线程,关掉该文件即可 现在呢,实现了,可以遍历系统中所有正在使用的文件转载 2016-06-22 16:58:50 · 7658 阅读 · 0 评论