Method
LibopenmptUtility.TryGetModuleExtInterface<T>(IntPtr, T)

Summary

Syntax

public static bool TryGetModuleExtInterface<T>(IntPtr modExtPtr, out T modExtInterface) 
    where T : struct, IModuleExtInterface

Type Parameters

Name Description
T The type of module extension interface.

Parameters

Name Type Description
modExtPtr IntPtr The module extension handle to work on. Obtained with TryCreateModuleExtFromMemory(byte[], IntPtr).
modExtInterface T The output argument that will contain the extension interface or null.

Return Value

Type Description
bool Returns true if the interface is found, false otherwise.