![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MSDN Library
文章平均质量分 82
HoNooD
这个作者很懒,什么都没留下…
展开
-
Allocating and Releasing Memory for a BSTR
<br /> <br />When you create BSTRs and pass them between COM objects, you must take care in treating the memory they use in order to avoid memory leaks. When a BSTR stays within an interface, you must free its memory when you are done with it. However, whe转载 2010-12-14 18:17:00 · 802 阅读 · 0 评论 -
TN017: Destroying Window Objects
<br />This note describes the use of the CWnd::PostNcDestroy method. Use this method if you want to do customized allocation of CWnd-derived objects. This note also explains why you should use CWnd::DestroyWindow to destroy a C++ Windows object instead of转载 2010-11-21 01:19:00 · 669 阅读 · 0 评论 -
Examining a Message Queue
<br />Occasionally, an application needs to examine the contents of a thread's message queue from outside the thread's message loop. For example, if an application's window procedure performs a lengthy drawing operation, you may want the user to be able to原创 2010-11-16 21:46:00 · 593 阅读 · 0 评论 -
About Windows
<br />This topic describes the programming elements that applications use to create and use windows; manage relationships between windows; and size, move, and display windows.<br />The overview includes the following topics.<br /> Desktop WindowApplication转载 2010-11-15 01:42:00 · 824 阅读 · 0 评论 -
Window Features
<br />This overview discusses features of windows such as window types, states, size, and position.<br /> Window TypesOverlapped WindowsPop-up WindowsChild WindowsLayered WindowsMessage-Only WindowsWindow RelationshipsForeground and Background WindowsOwned转载 2010-11-13 23:51:00 · 1469 阅读 · 0 评论 -
About Messages and Message Queues
<br />Unlike MS-DOS-based applications, Windows-based applications are event-driven. They do not make explicit function calls (such as C run-time library calls) to obtain input. Instead, they wait for the system to pass input to them.<br />The system passe转载 2010-11-13 23:46:00 · 1461 阅读 · 0 评论 -
Kernel Object Namespaces
<br />A Remote Desktop Services server has multiple namespaces for the following named kernel objects: events, semaphores, mutexes, waitable timers, file-mapping objects, and job objects. There is a global namespace used primarily by services in client/ser转载 2010-10-29 10:03:00 · 799 阅读 · 0 评论 -
File Mapping
<br />File mapping is the association of a file's contents with a portion of the virtual address space of a process. The system creates a file mapping object (also known as a section object) to maintain this association. A file view is the portion of virtu转载 2010-10-29 01:57:00 · 1147 阅读 · 0 评论 -
System Information Functions
<br />The following functions are used to retrieve or set system information.<br /><br />Function<br />Description<br />DnsHostnameToComputerName<br />Converts a DNS name to a NetBIOS name.<br />EnumSystemFirmwareTables<br />Enumerates all system firmware转载 2010-10-29 19:09:00 · 1164 阅读 · 0 评论 -
Sharing Files and Memory
<br />File mapping can be used to share a file or memory between two or more processes. To share a file or memory, all of the processes must use the name or the handle of the same file mapping object.<br />To share a file, the first process creates or open转载 2010-10-29 00:48:00 · 762 阅读 · 0 评论 -
Heap: Pleasures and Pains
<br />Murali R. Krishnan<br />Microsoft Corporation<br />February 1999<br />Summary: Discusses common heap performance problems and how to protect against them. (9 printed pages)Introduction<br />Are you a happy-go-lucky user of dynamically allocated C/C++转载 2010-12-16 21:13:00 · 1137 阅读 · 0 评论 -
Page State
<br />The pages of a process's virtual address space can be in one of the following states.<br />1. Free<br />The page is neither committed nor reserved. The page is not accessible to the process. It is available to be reserved, committed, or simultaneousl转载 2010-12-15 13:46:00 · 932 阅读 · 1 评论 -
GetProcAddress 使用注意事项
使用 GetProcAddress Function 时,有以下几点需要特别留意:1. 第二个参数类型是 LPCSTR,不是 LPCTSTR;2. 用 __declspec(dllexport),按 C 名称修饰(extern "C") 导出的函数名,对于 __std原创 2011-08-12 09:08:38 · 27730 阅读 · 0 评论