這很重要
請勿使用此功能。 在後續版本中可能無法使用。
RemoveTraceCallback 函式會停止 EventCallback 函式接收事件追蹤類別的事件。
語法
ULONG WMIAPI RemoveTraceCallback(
[in] LPCGUID pGuid
);
參數
[in] pGuid
回呼接收事件之事件追蹤類別類別 GUID 的指標。 使用您傳遞至 SetTraceCallback 的相同類別 GUID 來開始接收事件。
返回值
如果函式成功,則傳回值為ERROR_SUCCESS。
如果函式失敗,則傳回值是 其中一個系統錯誤碼。 以下是一些常見的錯誤及其原因。
ERROR_INVALID_PARAMETER
pGuid 參數為 Null。
ERROR_WMI_GUID_NOT_FOUND
沒有與事件追蹤類別相關聯的 EventCallback 函式。
備註
取用者會呼叫此函式。
需求
| Requirement | 價值觀 |
|---|---|
| 最低支援的用戶端 | Windows 2000 Professional [僅限傳統型應用程式] |
| 支援的最低伺服器 | Windows 2000 Server [僅限傳統型應用程式] |
| 目標平臺 | 窗戶 |
| Header | evntrace.h |
| Library | Windows 8.1 和 Windows Server 2012 R2 上的 AdvAPI32.Lib Sechost.lib;Windows 8、Windows Server 2012、Windows 7、Windows Server 2008 R2、Windows Server 2008、Windows Vista 和 Windows XP 上的 Advapi32.lib |
| DLL | 在 Windows 8.1 和 Windows Server 2012 R2 上 Sechost.dll;在 Windows 8、Windows Server 2012、Windows 7、Windows Server 2008 R2、Windows Server 2008、Windows Vista 和 Windows XP 上 Advapi32.dll |