Zen API

- Home
- Topics
- Types
- Files

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

  plugin | Destination for the constructed object handle.
  path | Path to the plugin library.
  requiredPlatform | Required platform version (or 0 to disable the version check).
  allocator | Memory allocator (or kNULL for default).

Returns
  Operation status; kERROR_VERSION in case of a mismatch.