/* BoCA - BonkEnc Component Architecture * Copyright (C) 2007-2015 Robert Kausch * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of * the License, or (at your option) any later version. * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #include "dllinterface.h" WMCREATEREADER ex_WMCreateReader = NIL; DynamicLoader *wmvcoredll = NIL; Bool LoadWMVCoreDLL() { wmvcoredll = new DynamicLoader("WMVCore"); ex_WMCreateReader = (WMCREATEREADER) wmvcoredll->GetFunctionAddress("WMCreateReader"); if (ex_WMCreateReader == NIL) { FreeWMVCoreDLL(); return False; } return True; } Void FreeWMVCoreDLL() { Object::DeleteObject(wmvcoredll); wmvcoredll = NIL; }