//dllを解放する public void UnloadModule() { if (shModule != null && !shModule.IsInvalid) shModule.Dispose(); shModule = null; }
//dllをロードする public bool LoadModule(string unrarDllPath) { UnloadModule(); shModule = new SafeModuleHandle(unrarDllPath); return !shModule.IsInvalid; }