网站首页  词典首页

请输入您要查询的函数:

 

术语 werregistermemoryblock
释义 WerRegisterMemoryBlock
语法:
C++
HRESULT WINAPI WerRegisterMemoryBlock(
__in PVOID pvAddress,
__in DWORD dwSize
);
WerRegisterMemoryBlock功能
注册了一个内存块时收取疫情周报创建一个错误报告。
参数
pvAddress [in]
该内存块的起始地址。
dwSize [in]
该内存块的大小,以字节。这个参数的最大值为WER_MAX_MEM_BLOCK_SIZE字节。
返回值
这个函数返回S_OK的成功或失败的错误代码,其中包括以下错误代码。
返回codeDescription
WER_E_INVALID_STATEThe进程状态是无效的。例如,在应用过程是恢复模式。
HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)注册的内存块和文件的数量超过了限制。
备注
The memory block is added to the dump file for the report only when additional data is requested by the server.
对崩溃,挂起,操作系统会自动提供错误报告(不需要提供任何错误报告在应用程序代码)。如果您使用此功能,注册一个内存块,操作系统将内存块添加资料,在坠毁时转储文件或挂起。
对于一般事件的报告,应用程序调用流行病学周报一般事件报告功能,直接。要添加内存块到一个通用的报告,调用WerReportAddDump函数,然后调用WerReportSubmit函数并指定WER_SUBMIT_ADD_REGISTERED_DATA标志。
要从此列表中删除块,调用WerUnregisterMemoryBlock功能。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWerapi.h
LibraryKernel32.lib
DLLKernel32.dll
参见
WER Functions
WerUnregisterMemoryBlock
Windows错误报告
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==WerRegisterMemoryBlock Function
Registers a memory block to be collected when WER creates an error report.
Syntax
C++
HRESULT WINAPI WerRegisterMemoryBlock(
__in PVOID pvAddress,
__in DWORD dwSize
);
Parameters
pvAddress [in]
The starting address of the memory block.
dwSize [in]
The size of the memory block, in bytes. The maximum value for this parameter is WER_MAX_MEM_BLOCK_SIZE bytes.
Return Value
This function returns S_OK on success or an error code on failure, including the following error codes.
Return codeDescription
WER_E_INVALID_STATEThe process state is not valid. For example, the process is in application recovery mode .
HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)The number of registered memory blocks and files exceeds the limit.

Remarks
The memory block is added to the dump file for the report only when additional data is requested by the server.
For crashes and hangs, the operating system automatically provides error reporting (you do not need to provide any error reporting code in your application). If you use this function to register a memory block, the operating system will add the memory block information to the dump file at the time of the crash or hang.
For generic event reporting, the application has to call the WER generic event reporting functions directly. To add the memory block to a generic report, call the WerReportAddDump function and then call the WerReportSubmit function and specify the WER_SUBMIT_ADD_REGISTERED_DATA flag.
To remove the block from this list, call the WerUnregisterMemoryBlock function.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWerapi.h
LibraryKernel32.lib
DLLKernel32.dll
See Also
WER Functions
WerUnregisterMemoryBlock
Windows Error Reporting
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb513620(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:29:54