Share via


EventAccessRemove 函式 (evntcons.h)

移除在登錄中為指定的提供者或會話定義的許可權。

語法

ULONG EVNTAPI EventAccessRemove(
  [in] LPGUID Guid
);

參數

[in] Guid

可唯一識別您要從登錄中移除其許可權的提供者或會話的 GUID。

傳回值

如果成功,則傳回ERROR_SUCCESS。

備註

從登錄移除許可權之後,預設許可權會套用至提供者或會話。 如需預設許可權的詳細資訊,請參閱 EventAccessControl

需求

   
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 [僅限傳統型應用程式]
目標平台 Windows
標頭 evntcons.h
程式庫 Windows 8.1 和 Windows Server 2012 R2 上的 Sechost.lib;Windows 8、Windows Server 2012、Windows 7、Windows Server 2008 R2、Windows Server 2008 和 Windows Vista 上的 Advapi32.lib
Dll Windows 8.1和 Windows Server 2012 上的 Sechost.dll;windows 8、Windows Server 2012、Windows 7、Windows Server 2008 R2、Windows Server 2008 和 Windows Vista 上的 Advapi32.dll

另請參閱

EventAccessControl

EventAccessQuery