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

JetGetInstanceInfo Function

· 52CE 我爱测

Learn more about: JetGetInstanceInfo Function

Applies to: Windows | Windows Server

JetGetInstanceInfo Function

The JetGetInstanceInfo function retrieves information about the instances that are running.

Windows XP:  JetGetInstanceInfo is introduced in Windows XP.

    JET_ERR JET_API JetGetInstanceInfo(
      __out         unsigned long* pcInstanceInfo,
      __out         JET_INSTANCE_INFO** paInstanceInfo
    );

Parameters

pcInstanceInfo

A pointer to a buffer which will receive the number of elements stored in paInstanceInfo.

paInstanceInfo

A pointer to a buffer which will receive the address of the first element of an array of structures.

Return Value

This function returns the JET_ERR datatype with one of the following return codes. 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 contained an unexpected value or contained a value that did not make sense when combined with the value of another parameter. This error will be returned by JetGetInstanceInfo when:<ul><li>pcInstanceInfo or paInstanceInfo are NULL.</li></ul>
JET_errOutOfMemory There is insufficient memory to process the request.
Remarks

The database engine will allocate an array of JET_INSTANCE_INFO structures. The caller is responsible for freeing this memory with JetFreeBuffer.

If there are no active instances, JetGetInstanceInfo will return JET_errSuccess, and pcInstanceInfo will receive a value of 0.

Requirements
Requirement Value
Client Requires Windows Vista or Windows XP.
Server Requires Windows Server 2008 or Windows Server 2003.
Header Declared in Esent.h.
Library Use ESENT.lib.
DLL Requires ESENT.dll.
Unicode Implemented as JetGetInstanceInfoW (Unicode) and JetGetInstanceInfoA (ANSI).
See Also

JET_ERR
JET_INSTANCE
JET_INSTANCE_INFO
JetFreeBuffer

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)

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

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