大网数据广告活动
磁盘与文件系统

JetGetErrorInfoW Function

· 52CE 我爱测

Learn more about: JetGetErrorInfoW Function

Applies to: Windows | Windows Server

JetGetErrorInfoW Function

The JetGetErrorInfoW function BAS_ of the database engine.

Note: This documentation is based on a preliminary release of the Extensible Storage Engine. This information is subject to change.

JET_ERR JET_API JetGetErrorInfoW( 
    _In_opt_ void *                      pvContext, 
    _Out_writes_bytes_( cbMax ) void *   pvResult, 
    _In_ unsigned long                   cbMax, 
    _In_ unsigned long                   InfoLevel, 
    _In_ JET_GRBIT                       grbit );

Parameters

pvContext

The context or error value for which the extended error information is needed. The value passed in depends on the InfoLevel parameter value.

pvResult

A pointer to a buffer that will receive the information. The type of the buffer depends on the InfoLevel parameter value. The caller must be configured to align the buffer appropriately.

cbMax

The maximum size of the pvResult structure that is passed in.

InfoLevel

The type of information that will be retrieved for the error info/context is specified by the pvContext parameter. The format of the data that is stored in pvResult is dependent on InfoLevel.

The following table lists the possible values for this parameter.

Value Meaning
JET_ErrorInfoSpecificErr pvContext is interpreted as a <a href="gg269297(v=exchg.10).md">JET_ERR</a>/error code, pvResult is interpreted as a <a href="hh475861(v=exchg.10).md">JET_ERRINFOBASIC_W</a>, and the fields of the <a href="hh475861(v=exchg.10).md">JET_ERRINFOBASIC_W</a> structure are filled in appropriately.

grbit

Reserved.

Return Value

This function returns the JET_ERR data type with one of the return codes listed in the following table. For more information about the possible ESE errors, see Extensible Storage Engine Errors and Error Handling Parameters.

Return code Description
JET_errSuccess The operation completed successfully.
JET_errInvalidParameter One of the parameters provided contains an unexpected value or contains a value that does not make sense when combined with the value of another parameter. This can happen for JetGetErrorInfo when the following occurs:<ul><li>The specified InfoLevel parameter value is invalid.</li><li>The specified grbit value is invalid.</li><li>The specified pvResult parameter buffer’s cbMax value is less than the required size for output of this InfoLevel parameter.</li><li>For InfoLevel = JET_ErrorInfoSpecificErr, the <a href="gg294092(v=exchg.10).md">JET_ERR</a> value passed in is unknown to the engine.</li></ul>
JET_errDisabledFunctionality If this SKU of windows doesn’t support this function, this error will be returned.

On success, the output buffer that is appropriate for the requested error context/value will be set to the extended error info requested.

On failure, the state of the output buffers will be undefined.

Remarks

The JET_ERRINFOBASIC_W function and JET_ERRCAT group of constants contain documentation about the extended error information that is returned for InfoLevel = JET_ErrorInfoSpecificErr.

Requirements

Requirement Value
Client Requires Windows 8.
Server Requires Windows 8 Server.
Header Declared in Esent.h.
Library Use ESENT.lib.
DLL Requires ESENT.dll.
Unicode Note: Only the JetGetErrorInfoW (Unicode) is implemented. This API does not have an A (ANSI) version.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 04/11/2016
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。