
核心编程
王林森
当蝴蝶在南半球拍了两下翅膀,它就会稍微飞高一些。
(已迁往www.cnblogs.com/wlsandwho/)
展开
-
CreateWaitableTimer
原文来自MSDN,版权==================================CreateWaitableTimer Function发送反馈Creates or opens a waitable timer object.To specify an access mask for the object, use th翻译 2014-08-27 16:10:18 · 1660 阅读 · 1 评论 -
Debug Support from Process, Thread, and Exception Functions
Some functions essential to debugging are actually classified as process, thread, or exception-handling functions.调试所必需的函数实际上分为进程、线程、异常处理函数。 For a description of how to start a process that is going t翻译 2014-01-21 21:28:58 · 1133 阅读 · 0 评论 -
Thread Functions for Debugging
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms681395%28v=vs.85%29.aspx本文链接:The CreateThread function creates a new thread for a process. Debuggers typically need to examine or cha翻译 2014-01-21 22:35:20 · 1070 阅读 · 0 评论 -
读书笔记——Windows核心编程(8)Interlocked单向链式栈
SLists使用了无锁算法来保证原子同步,以提升系统性能,避免了诸如优先级挂和互锁的问题。注意:所有的链表项必须对齐到MEMORY_ALLOCATION_ALIGNMENT。否则会出现奇葩的错误。原创 2013-11-29 12:09:19 · 4255 阅读 · 0 评论 -
读书笔记——Windows核心编程(2)比较字符串
1. CompareString以符合用户语言习惯的方式,EX版本使用UNICODEint CompareString( __in LCID Locale, __in DWORD dwCmpFlags, __in LPCTSTR lpString1, __in int cchCount1, __in LPCTSTR lpString2, __in原创 2013-11-21 18:20:19 · 1447 阅读 · 0 评论 -
读书笔记——Windows核心编程(2)禁止C运行时触发的所有Debug Assertion Failed对话框
1 定义一个函数void _invalid_parameter( const wchar_t * expression, const wchar_t * function, const wchar_t * file, int line, uintptr_t pReserved);2 注册这个函数_invalid_parameter_handler原创 2013-11-21 11:53:06 · 1567 阅读 · 0 评论 -
Debugging Events
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms679302%28v=vs.85%29.aspx本文链接:A debugging event is an incident in the process being debugged that causes the system to notify the翻译 2014-01-21 23:30:25 · 2242 阅读 · 2 评论 -
Debugging Reference
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms679304%28v=vs.85%29.aspx本文链接:The following elements are used with debugging:Debugging Events 调试事件Debugging Functions 调试函数翻译 2014-01-21 23:26:08 · 875 阅读 · 2 评论 -
Communicating with the Debugger
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms679283%28v=vs.85%29.aspx本文链接:The OutputDebugString function sends a string from the process being debugged to the debugger by g翻译 2014-01-23 21:42:18 · 1026 阅读 · 0 评论 -
SetUnhandledExceptionFilter function
Enables an application to supersede the top-level exception handler of each thread of a process.After calling this function, if an exception occurs in a process that is not being debugged, and the e翻译 2014-02-10 18:26:15 · 1478 阅读 · 0 评论 -
Process Functions for Debugging
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms680549%28v=vs.85%29.aspx本文链接:The CreateProcess function enables a debugger to start a process and debug it. The fdwCreate parameter翻译 2014-01-21 21:38:04 · 939 阅读 · 0 评论 -
读书笔记——Windows核心编程(8)Interlocked系列函数
先让我们来复习下小学知识A+B=C//式中A为被加数,B为加数。A-B=C//式中A为被减数,B为减数。再让我们来明确一个知识点:返回值为void的Windows函数意味着一定会执行成功。------------------------------------我是可爱的分割线------------------------------------必须确保传给这系原创 2013-11-29 10:59:12 · 3728 阅读 · 0 评论 -
About Basic Debugging
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms679266%28v=vs.85%29.aspx本文链接:翻译 2014-01-21 00:44:18 · 1097 阅读 · 0 评论 -
EXCEPTION_DEBUG_INFO structure
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms679326%28v=vs.85%29.aspx本文链接:Contains exception information that can be used by a debugger.SyntaxC++typedef翻译 2014-01-24 21:11:55 · 1740 阅读 · 0 评论 -
Debugging a Running Process
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms679301%28v=vs.85%29.aspx本文链接:To debug a process that is already running, the debugger should use DebugActiveProcess with the process翻译 2014-01-23 21:32:19 · 1352 阅读 · 0 评论 -
Using Basic Debugging
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/bb204636%28v=vs.85%29.aspx本文链接:The following topics describe basic debugging support:Configuring Automatic Debugging 配置自动调试器Cre翻译 2014-01-21 00:03:57 · 870 阅读 · 0 评论 -
Debugging Terminology
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms679306%28v=vs.85%29.aspx本文链接:The following terms are used when describing debugging.Blue screen When the system encounters翻译 2014-01-21 01:03:28 · 931 阅读 · 1 评论 -
EXCEPTION_RECORD structure
Describes an exception.描述异常的结构体SyntaxC++typedef struct _EXCEPTION_RECORD { DWORD ExceptionCode; DWORD ExceptionFlags; struct _EXCEPT翻译 2014-01-25 10:17:48 · 6378 阅读 · 1 评论 -
读书笔记——Windows核心编程(13)Windows内存体系结构
对于32位进程(0x0000 0000~0xFFFF FFFF),有4GB的地址空间。每个进程都有自己专有的地址空间,当进程的各个线程运行时,它们只能访问属于该进程的内存。这4GB其实是虚拟地址空间,不是物理存储器。为了能够正常读写数据,需要把物理存储器分配或者映射到相应的地址空间,否则将发生访问违规错误(Access Violation)。1原创 2013-08-11 16:14:03 · 805 阅读 · 0 评论 -
读书笔记——Windows核心编程(15)在应用程序中使用虚拟内存
微软的Windows提供了三种机制对内存进行操控1 虚拟内存(最适合管理大型对象数组或大型结构数组)2 内存映射文件(大型数据流/文件,共享数据)3 堆(大量的小型对象)预订地址空间区域VirtualAllocPVOID VirtualAlloc(PVOID pvAddress,//内存地址,传NULL则由系统指定位置,必须始终位于进程的用户分区中,如果不是分配粒度的原创 2013-08-11 20:46:43 · 1207 阅读 · 0 评论 -
Debugging Functions
啊翻译 2014-01-23 17:54:44 · 1326 阅读 · 0 评论 -
Configuring Automatic Debugging
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/bb204634%28v=vs.85%29.aspx本文链接:Users can configure automatic debugging to help them determine why their system or an application has st翻译 2014-01-23 23:09:39 · 1254 阅读 · 1 评论 -
Basic Debugging
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms679276%28v=vs.85%29.aspx本文链接:A debugger is an application that enables a developer to observe and correct programming errors. 调翻译 2014-01-20 23:56:38 · 891 阅读 · 0 评论 -
Debugging and Error Handling
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ee663265%28v=vs.85%29.aspx本文链接:In this sectionApplication Recovery and Restart 应用的恢复和重启Error Handling 错误处理Basic Debugging 基翻译 2014-01-20 23:45:17 · 1094 阅读 · 2 评论 -
Debugging Structures
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms679305%28v=vs.85%29.aspx本文链接:The following structures are used with debugging:下面的是一些调试时用到的结构体: CONTEXT CREATE_PROCES翻译 2014-01-23 20:44:48 · 846 阅读 · 0 评论 -
Exception Handling Functions for Debugging
原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms679330%28v=vs.85%29.aspx本文链接:When an exception occurs in a process that is being debugged, the system notifies the debugger by passin翻译 2014-01-21 23:09:57 · 881 阅读 · 0 评论 -
我的Windows核心编程——完成端口+套接字 图解
有什么不对的地方,请悄悄的告诉我。原创 2014-12-27 09:24:56 · 1409 阅读 · 1 评论