diff --git a/src/windows/com/comentrypoints.c b/src/windows/com/comentrypoints.c new file mode 100644 index 00000000..f4b29c6c --- /dev/null +++ b/src/windows/com/comentrypoints.c @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2016 Reece H. Dunn + * + * 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 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see: . + */ + +#include "config.h" + +#include + +HRESULT __stdcall DllGetClassObject(REFCLSID classId, REFIID iface, void **pObject) +{ + if (!pObject) + return E_POINTER; + + *pObject = NULL; + return CLASS_E_CLASSNOTAVAILABLE; +} + +HRESULT __stdcall DllCanUnloadNow(void) +{ + return S_OK; +} diff --git a/src/windows/libespeak-ng.def b/src/windows/libespeak-ng.def new file mode 100644 index 00000000..8ef4e594 --- /dev/null +++ b/src/windows/libespeak-ng.def @@ -0,0 +1,4 @@ +LIBRARY +EXPORTS + DllCanUnloadNow PRIVATE + DllGetClassObject PRIVATE diff --git a/src/windows/libespeak-ng.vcxproj b/src/windows/libespeak-ng.vcxproj index c33e738d..bbc610fc 100644 --- a/src/windows/libespeak-ng.vcxproj +++ b/src/windows/libespeak-ng.vcxproj @@ -94,6 +94,7 @@ Windows true + libespeak-ng.def @@ -109,6 +110,7 @@ Windows true + libespeak-ng.def @@ -128,6 +130,7 @@ true true true + libespeak-ng.def @@ -147,6 +150,7 @@ true true true + libespeak-ng.def @@ -173,6 +177,7 @@ + @@ -189,6 +194,9 @@ + + + diff --git a/src/windows/libespeak-ng.vcxproj.filters b/src/windows/libespeak-ng.vcxproj.filters index fc6ec963..ec7c4876 100644 --- a/src/windows/libespeak-ng.vcxproj.filters +++ b/src/windows/libespeak-ng.vcxproj.filters @@ -16,6 +16,9 @@ {7bec9d7b-17d5-4ff3-b0c8-0b6f746548a3} + + {77d943b9-0670-4e38-b6ad-592ad6c85094} + @@ -87,6 +90,9 @@ Source Files + + Source Files\com + @@ -129,4 +135,9 @@ Header Files + + + Source Files + + \ No newline at end of file