__iew_import() – Import a function or external variable

Identifies a function or variable to be resolved dynamically during execution. Can be used only when _IEW_BIND intent is specified.

Format

#include <__iew_api.h>
int __iew_import(_IEWAPIContext *__context,
                             _IEWImpType __impType, 
                             const char *__dllname, const char *__iname,
                             unsigned int *__offset);

Parameters Descriptions

__context
API context is created and returned by calling __iew_openW() and is used throughout the open session.
__impType
import type can be one of the following:
  • _IEW_IMP_CODE
  • _IEW_IMP_DATA
  • _IEW_IMP_CODE64
  • _IEW_IMP_DATA64
__dllname
DLL name.
__iname
symbol name.
__offset
function descriptor offset.

Returned Value

If successful, __iew_import() returns 0.

If unsuccessful, __iew_import() returns nonzero.

Note: The returned value is the same as the code returned by a subsequent __iew_get_return_code().

Utilities Functions

__iew_get_reason_code()
__iew_get_return_code()