Skip to content
nyfrk edited this page Aug 22, 2020 · 1 revision

ISettlers4Api::RemoveListener method

Unregister a Listener that has previously been registered by one of the add listener methods of the ISettlers4Api interface.

Syntax

HRESULT ISettlers4Api::RemoveListener(
	S4HOOK uiHook
);

Parameters

uiHook

The S4HOOK identifier that has been returned by one of the AddListener methods.

Return value

If the method succeeds the return value will be S_OK.

If the handle was invalid the method will return E_HANDLE.

Remarks

All hooks must be removed with ISettlers4Api::RemoveListener before terminating the application.

Requirements

Minimum API Level 1
Target Edition Any
Header S4ModApi.h
Library S4ModApi.lib
DLL S4ModApi.dll

See also

ISettlers4Api

Clone this wiki locally