TWUOpenUpdate

The TWUOpenUpdate function starts the high-level Tarma WebUpdate update. The update must eventually be closed by a call to TWUCloseUpdate.

TWUPDATE TWUOpenUpdate(
    HWND hwndMain
);

Parameters

hwndMain
[Input] Handle of main window for your application, or NULL if there is no main window. The main window handle is used if a progress dialog or some similar window must be displayed during the session; in that case, the main window used as its parent. The main window handle is also used to close your application when a restart is executed after an update.

Return value

If the function succeeds, it returns an update handle that must be passed to the other high-level functions during the session. If the function fails, it returns NULL. The handle must eventually be closed by a call to TWUCloseUpdate.