01 2016 档案
摘要:security descriptor A structure and associated data that contains the security information for a securable object. A security descriptor identifies th
阅读全文
摘要:在StackOverflow中看到一个提问“what's the difference between DLL's and LIB's?” 有如下回复值得参考: 回复一: 回复二: There are static libraries (LIB) and dynamic libraries (DLL
阅读全文
摘要:VS的工程属性中我们常会设置Character Set: 为了支持Unicode编码,需要多字节与宽字节之间的相互转换。这里涉及两个函数: int WideCharToMultiByte( _In_ UINT CodePage, _In_ DWORD dwFlags, _In_ LPCWSTR lp
阅读全文
摘要:Article 1:Loading Win32/64 DLLs "manually" without LoadLibrary() The most important steps of DLL loading are: Mapping or loading the DLL into memory.
阅读全文
摘要:数组名为何物? int main() { int number[] = { 1, 2, 3, 4, 5 }; int *pnumber = number; cout << sizeof(number) << endl; cout << sizeof(pnumber) << endl; system(
阅读全文
摘要:六、动态数据交换(Dynamic Data Exchange)动态数据交换(DDE)是使用共享内存在应用程序之间进行数据交换的一种进程间通信形式。应用程序可以使用DDE进行一次性数据传输,也可以当出现新数据时,通过发送更新值在应用程序间动态交换数据。DDE和剪贴板一样既支持标准数据格式(如文本、位图...
阅读全文
摘要:二、文件映射文件映射(Memory-MappedFiles)能使进程把文件内容当作进程地址区间一块内存那样来对待。因此,进程不必使用文件I/O操作,只需简单的指针操作就可读取和修改文件的内容。 Win32API允许多个进程访问同一文件映射对象,各个进程在它自己的地址空间里接收内存的指针。通过使用这...
阅读全文
摘要:一、管道管道(pipe)是用于进程间通信的共享内存区域。创建管道的进程称为管道服务器,而连接到这个管道的进程称为管道客户端。一个进程向管道写入信息,而另外一个进程从管道读取信息。异步管道是基于字符和半双工的(即单向),一般用于程序输入输出的重定向;命名管道则强大地多,它们是面向消息和全双工的,同时还...
阅读全文
摘要:虚拟机使用XP系统:打开boot.ini:添加一条调试启动项:然后关闭计算机,修改虚拟机的设置:添加一个串行端口:配置成这样:然后,在真机里找到设备管理器,将波特率设置成115200:在要启动的Windbg的属性中的目标中添加参数:-b -k com:port=\\.\pipe\com_2,baud...
阅读全文
摘要:线程同步三:事件CreateEvent:Creates or opens a named or unnamed event object.HANDLE WINAPI CreateEvent( _In_opt_ LPSECURITY_ATTRIBUTES lpEventAttributes, _I...
阅读全文
摘要:先介绍一个创建线程的API,参考:https://msdn.microsoft.com/en-us/library/windows/desktop/ms682453%28v=vs.85%29.aspxCreates a thread to execute within the virtual add...
阅读全文

浙公网安备 33010602011771号