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

S4ApiCreate function

Create an ISettlers4Api Interface configure game hooks of the Settlers 4.

Syntax

LPSETTLERS4API S4ApiCreate();

Parameters

none

Return value

The function returns a pointer to a ISettlers4Api interface or NULL if an error occured.

Remarks

The function may fail if the runtime cannot provide the interface specified by the header. See S4CreateInterface for details.

Call the IUnknown::Release method when you no longer need to use an interface pointer. After it has been released you must not access any member of this pointer.

Requirements

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

See also

S4CreateInterface

IUnknown::Release

ISettlers4Api

Clone this wiki locally