__iew_closeW() – Close workmod

The closeW() deletes all data associated within the context(_IEWAPIContext), releases IEWBIND from memory, and deletes the context.

Format

#include <__iew_api.h>
_IEWAPIContext  *__iew_closeW(_IEWAPIContext *__context,
                                    _IEWAPIFlags __flags,
                                    unsigned int *__return_code,
                                    unsigned int *__reason_code);

Parameters Descriptions

__context
API context is created and returned by calling __iew_openW() and is used throughout the open session.
__flags
API flags protect whether to allow the binder to delete a workmod that has been altered but not yet saved or loaded.
Note: Set the flag to 1 to turn on the bit and 0 to turn off the bit.
__return_code
return code is passed back from DELETEW or ENDD
__reason_code
reason code is passed back from DELETEW or ENDD

Returned Value

If successful, __iew_closeW() returns NULL.

If unsuccessful, __iew_closeW() returns API context.

Note: If an invalid context is passed, __iew_closeW() returns NULL.