刘收获

导航

随笔分类 -  Windows编程

通过注册表获取计算机相关信息
摘要:RegOpenKey() capGetDriverDescription()// Test.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <iostream>#include <windows.h>#include <Vfw.h> #pragm 阅读全文

posted @ 2017-01-18 00:27 沉疴 阅读(190) 评论(0) 推荐(0) 编辑

GetTickCount()函数
摘要:GetTickCount(),这个函数,在此做下整理和总结。1.定义For Release configurations, this function returns the number of milliseconds since the device booted, excluding any 阅读全文

posted @ 2017-01-18 00:07 沉疴 阅读(546) 评论(0) 推荐(0) 编辑

SystemInfo获取计算机相关信息
摘要:// SystemInfo.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <iostream>#include <windows.h>#include <iomanip>using namespace std;int main(){ SYSTE 阅读全文

posted @ 2017-01-17 19:53 沉疴 阅读(168) 评论(0) 推荐(0) 编辑

CriticalSection 临界区
摘要:// 临界区.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include<windows.h>#include<iostream>using namespace std; DWORD g_cnt1;DWORD g_cnt2;BOOL g_bContinue 阅读全文

posted @ 2017-01-16 21:52 沉疴 阅读(140) 评论(0) 推荐(0) 编辑

APC注入(Ring3层)
摘要:/* 步骤: 1.提权(GrantDebugPrivileges) (1)获得令牌token,OpenThreadToken(),OpenProcessToken () WINADVAPI BOOL WINAPI OpenThreadToken( _In_ HANDLE ThreadHandle, 阅读全文

posted @ 2016-11-02 16:12 沉疴 阅读(259) 评论(0) 推荐(0) 编辑