public void Unload() { if (!Loaded) { Win32.FreeLibrary(_dllPtr); } _rvextension = null; Loaded = false; }
public void Load(String dllPath) { if (!File.Exists(dllPath)) { throw new ARMAExtException(); } _dllPtr = Win32.LoadLibrary(dllPath); _rvextension = loadFunction <RVExtension_t>("_RVExtension@12"); Loaded = true; }