Summary
Retrieve a libopenmpt extension.
Syntax
[DllImport(Libopenmpt.DLL, EntryPoint = "openmpt_module_ext_get_interface")]
public static extern int ModuleExtGetInterface(IntPtr modExt, string interfaceId, IntPtr interfacePtr, UIntPtr interfaceSize)
Attributes
Type |
Description |
DllImportAttribute |
|
Parameters
Name |
Type |
Description |
modExt |
IntPtr |
The module handle to work on. |
interfaceId |
string |
The name of the extension interface to retrieve (e.g. LIBOPENMPT_EXT_C_INTERFACE_PATTERN_VIS). |
interfacePtr |
IntPtr |
Appropriate structure of interface function pointers which is to be filled by this function (e.g. a pointer to a openmpt_module_ext_interface_pattern_vis structure). |
interfaceSize |
UIntPtr |
Size of the interface's structure of function pointers (e.g. sizeof(openmpt_module_ext_interface_pattern_vis)). |
Return Value
Type |
Description |
int |
1 on success, 0 if the interface was not found. |