December 21, 2024

Dynamic Windows Function [dw_timer_connect]

Syntax

HTIMER dw_timer_connect(int interval, void *sigfunc, void *data)

Parameters

int interval: Milliseconds to delay between calls.
void *sigfunc: The pointer to the function to be used as the callback.
void *data: User data to be passed to the handler function.

Returns

HTIMER Timer ID for use with dw_timer_disconnect(), 0 on error.

Description

Add a callback to a timer event.

Remarks

Since 3.2 the return type of this function is HTIMER.

Prior to 3.2 use int as the return type.