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

JET_INSTANCE_INFO Structure

· 52CE 我爱测

Learn more about: JET_INSTANCE_INFO Structure

Applies to: Windows | Windows Server

JET_INSTANCE_INFO Structure

The JET_INSTANCE_INFO structure receives information about running database instances when used with the JetGetInstanceInfo and JetOSSnapshotFreeze functions.

    typedef struct _JET_INSTANCE_INFO {
      JET_INSTANCE hInstanceId;
      tchar* szInstanceName;
      JET_API_PTR cDatabases;
      tchar** szDatabaseFileName;
      tchar** szDatabaseDisplayName;
      tchar** szDatabaseSLVFileName;
    } JET_INSTANCE_INFO;

Members

hInstanceId

The JET_INSTANCE of the given instance.

szInstanceName

The name of the database instance. This value can be NULL if the instance does not have a name.

cDatabases

The number of databases that are attached to the database instance. cDatabases also holds the size of the arrays of strings that are returned in szDatabaseFileName, szDatabaseDisplayName, and szDatabaseSLVFileName.

szDatabaseFileName

An array of strings, each holding the file name of a database that is attached to the database instance. The array has cDatabases elements.

szDatabaseDisplayName

An array of strings, each holding the display name of a database. Currently the string can be NULL. The array has cDatabases elements.

szDatabaseSLVFileName

An array of strings, each holding the file name of the SLV file that is attached to the database instance. The array has cDatabases elements. SLV files are not supported, so this field should be ignored.

Remarks

Each database instance can have several databases attached to it.

For a given JET_INSTANCE_INFO structure, the array of strings that is returned for the databases are in the same order. For example, "szDatabaseDisplayName[ i ]" and "szDatabaseFileName[ i ]" both refer to the same database.

Requirements

Requirement Value
Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.
Header Declared in Esent.h.
Unicode Implemented as JET_INSTANCE_INFO_W (Unicode) and JET_INSTANCE_INFO _A (ANSI).

See Also

JET_API_PTR
JET_INSTANCE
JetGetInstanceInfo
JetOSSnapshotFreeze

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)

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

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