- 博客(9)
- 收藏
- 关注
转载 VEHAndVCH
1 #include <windows.h> 2 #include <stdio.h> 3 4 5 int g_i = 0; 6 7 LONG NTAPI VEHCallback(EXCEPTION_POINTERS* p) 8 { 9 p->ContextRecord->Eax = (DWORD...
2017-08-08 18:54:00
72
转载 HookIAT_MessageBoxW
1 #pragma once 2 #include <windows.h> 3 #include <tchar.h> 4 5 6 int HookIAT_MessageBoxW(char* strDllName, char* strFunNameOrOdinal, _Out_ DWORD& dwOldFunAddr, DWORD&am...
2017-08-05 17:43:00
93
转载 Event
// Event.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <windows.h> #include <assert.h> DWORD WINAPI ThreadProc1(LPVOID lpThre...
2017-07-20 16:39:00
73
转载 Mutex
// Mutex.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <windows.h> #include <assert.h> //Mutex的OpenMutex()与ReleaseMutex()必须线程...
2017-07-20 16:38:00
87
转载 CriticalSection
1 // CriticalSection.cpp : Defines the entry point for the console application. 2 // 3 4 #include "stdafx.h" 5 #include <windows.h> 6 7 8 // CriticalSection的InitializeCr...
2017-07-20 16:35:00
59
转载 AtomicOperation
// AtomicOperation.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <windows.h> //所谓原子操作是指不会被线程调度机制打断的操作;这种操作一旦开始,就一直运行到结束,中间不会有任何 cont...
2017-07-20 16:34:00
69
转载 内核对象(kernel objects)
进程是否有该进程的内核对象引用次数,关闭时能否减去正确的引用记数. 线程↑↑↑↑↑↑↑↑↑↑↑↑↑ 线程是否有进程句柄表索引的索引表? 内核对象在线程退出时,在进程退出时,会怎么样? 在没有线程拥有该内核对象会怎么样? 在没有进程拥有该内核对象会怎么样? CreateMutex()时,返回句柄.这时,内核对象地址在进程句柄表中了,当再次运行相同代码时,内核对...
2017-07-18 20:58:00
341
转载 GetLastError() 的全部机制
GetLastError() 的全部机制 有的函数内部保证调用 SetLastError() ,所以在这样的函数后面GetLastError()一般绝对没有问题. 转载于:https://www.cnblogs.com/Spobt/p/7202548.html...
2017-07-18 20:31:00
185
转载 函数调用约定
__stdcall __cdecl __fastcall vc6.0:int __stdcall/__cdecl/__fastcall add(int x, int y){return x+y;}void main(){add(2,3);} 1.__stdcall: 1: int __stdcall add(int x,...
2016-10-30 16:35:00
64
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人