Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kPlugin_ConstructEx ( kPlugin plugin,
const kChar path,
kVersion  requiredPlatform,
kAlloc  allocator 
)

Constructs a kPlugin object.

This constructor runs a platform version check before attempting to load the assembly. The requiredPlatform argument to this function is checked against the plaform version from the plugin's internal assembly. In case of a mismatch kERROR_VERSION will be returned.

Parameters
pluginDestination for the constructed object handle.
pathPath to the plugin library.
requiredPlatformRequired platform version (or 0 to disable the version check).
allocatorMemory allocator (or kNULL for default).
Returns
Operation status; kERROR_VERSION in case of a mismatch.