windows 核心编程中讲过 SEH 结构化异常处理 ::SetUnhandledExceptionFilter(MyUnhandledExceptionFilter); LONG WINAPI MyUnhandledExceptionFilter(EXCEPTION_POINTERS* exp)... ...
分类:
编程语言 时间:
2017-07-28 15:46:45
阅读次数:
231
// Event.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include DWORD WINAPI ThreadProc1(LPVOID lpThreadP... ...
分类:
其他好文 时间:
2017-07-20 17:35:04
阅读次数:
186
#include <iostream> #include <windows.h> #include <mutex> std::mutex gmutex; using namespace std; template<typename Type> class Singleton { public: st ...
分类:
编程语言 时间:
2017-07-18 17:25:41
阅读次数:
186
#include <TlHelp32.h> //检索系统全部进程 void showall() { PROCESSENTRY32 pe32 = {0}; pe32.dwSize = sizeof(pe32); //查找进程 HANDLE hpprocess = CreateToolhelp32Sna ...
CreateToolhelp32Snapshot CreateToolhelp32Snapshot函数为指定的进程、进程使用的堆[HEAP]、模块[MODULE]、线程[THREAD])建立一个快照[snapshot]。 HANDLE WINAPI CreateToolhelp32Snapshot( ...
分类:
系统相关 时间:
2017-07-13 16:33:47
阅读次数:
273
1 PlaySound 播放WAV格式的音乐 This function plays a sound specified by a file name, resource, or system event. <strong>BOOL WINAPI PlaySound( LPCSTR</strong> ...
分类:
编程语言 时间:
2017-07-02 14:24:09
阅读次数:
290
#pragma once void RunCrashHandler(); #include "MiniDump.h" #include #include #include #include #pragma comment(lib, "dbghelp.lib") inline BOOL IsDataS... ...
分类:
其他好文 时间:
2017-06-27 09:56:04
阅读次数:
385
001_函数的不同版本 HANDLE : CreateFile()函数返回一个内核对象的句柄 WINAPI : 一种调用约定,调用方式。 _In_ 与 _In_opt_ : 本身没有意义,一个说明宏,来标明这个参数的性质。 _In_ 说明此参数是“输入型”参数 _In_Opt_ 说明此参数是“输入指 ...
unit UUpdateLeiBie; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.... ...
分类:
其他好文 时间:
2017-06-23 18:27:17
阅读次数:
237
一、简述 前段时间在使用setWindowFlags方法时遇到了一个坑,具体情况是想通过窗口界面上一个checkBox来控制窗口当前状态是否置顶,而Qt提供了Qt::WindowStaysOnTopHint标志,能够让窗口始终保持在其他窗口前端,也就是将窗口置顶。 理论上,我们在勾选上checkBo ...