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

JetUnregisterCallback Function

· 52CE 我爱测

Learn more about: JetUnregisterCallback Function

Applies to: Windows | Windows Server

JetUnregisterCallback Function

The JetUnregisterCallback function enables the application to configure the database engine to stop issuing notifications to the application as previously requested through JetRegisterCallback.

Windows XP:  JetUnregisterCallback is introduced in Windows XP.

    JET_ERR JET_API JetUnregisterCallback(
      __in          JET_SESID sesid,
      __in          JET_TABLEID tableid,
      __in          JET_CBTYP cbtyp,
      __in          JET_HANDLE hCallbackId
    );

Parameters

sesid

The session to use for this call.

tableid

The cursor to use for this call.

cbtyp

A bitmask composed of the callback reasons that the application no longer wishes to receive notifications.

To create this bitmask, simply or together valid callback reasons from the JET_CBTYP enumeration.

hCallbackId

The handle of the registered callback that was returned by JetRegisterCallback.

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_errClientRequestToStopJetService The operation cannot complete because all activity on the instance that is associated with the session has ceased as a result of a call to <a href="gg269240(v=exchg.10).md">JetStopService</a>.
JET_errInstanceUnavailable The operation cannot complete because the instance that is associated with the session encountered a fatal error that requires that access to all data be revoked to protect the integrity of that data.Windows XP:  This return value is introduced in Windows XP.
JET_errNotInitialized The operation cannot complete because the instance that is associated with the session has not yet been initialized.
JET_errRestoreInProgress The operation cannot complete because a restore operation is in progress on the instance that is associated with the session.
JET_errSessionSharingViolation The same session cannot be used for more than one thread at the same time.Windows XP:  This return value is introduced in Windows XP.
JET_errTermInProgress The operation cannot complete because the instance that is associated with the session is being shut down.

If this function succeeds, the specified callback will be unregistered for the given callback reasons with the table that is associated with the given cursor. No change to the database state will occur.

If this function fails, the specified callback will not be unregistered. No change to the database state will occur.

Remarks

The given bitmask should exactly match the bitmask that is specified when registering the callback. The database engine does not currently support removing a subset of these notifications and it does not return an error when this is attempted.

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.
See Also

JET_CBTYP
JET_ERR
JET_HANDLE
JET_SESID
JET_TABLEID
JetRegisterCallback
JetStopService

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)

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

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