[PATCH 0/1] MR10958: ndfapi: New dll with some stubs.
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> --- configure.ac | 1 + dlls/ndfapi/Makefile.in | 5 +++ dlls/ndfapi/ndfapi.spec | 28 ++++++++++++++++ dlls/ndfapi/ndfapi_main.c | 70 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100755 dlls/ndfapi/Makefile.in create mode 100755 dlls/ndfapi/ndfapi.spec create mode 100755 dlls/ndfapi/ndfapi_main.c diff --git a/configure.ac b/configure.ac index 5517c70ae94..f963461b799 100644 --- a/configure.ac +++ b/configure.ac @@ -3022,6 +3022,7 @@ WINE_CONFIG_MAKEFILE(dlls/mtxdm) WINE_CONFIG_MAKEFILE(dlls/ncrypt) WINE_CONFIG_MAKEFILE(dlls/ncrypt/tests) WINE_CONFIG_MAKEFILE(dlls/nddeapi) +WINE_CONFIG_MAKEFILE(dlls/ndfapi) WINE_CONFIG_MAKEFILE(dlls/ndis.sys) WINE_CONFIG_MAKEFILE(dlls/ndis.sys/tests) WINE_CONFIG_MAKEFILE(dlls/netapi32) diff --git a/dlls/ndfapi/Makefile.in b/dlls/ndfapi/Makefile.in new file mode 100755 index 00000000000..67ad05d2e14 --- /dev/null +++ b/dlls/ndfapi/Makefile.in @@ -0,0 +1,5 @@ +MODULE = ndfapi.dll +#IMPORTS = uuid ole32 oleaut32 user32 oleacc + +SOURCES = \ + ndfapi_main.c diff --git a/dlls/ndfapi/ndfapi.spec b/dlls/ndfapi/ndfapi.spec new file mode 100755 index 00000000000..df2d78dca45 --- /dev/null +++ b/dlls/ndfapi/ndfapi.spec @@ -0,0 +1,28 @@ +@ stdcall -private DllCanUnloadNow() +@ stub -private DllGetClassObject(ptr ptr ptr) +@ stdcall -private DllRegisterServer() +@ stdcall -private DllUnregisterServer() +@ stub NdfRunDllDiagnoseIncident +@ stub NdfRunDllDiagnoseNetConnectionIncident +@ stub NdfRunDllDiagnoseWithAnswerFile +@ stub NdfRunDllDuplicateIPDefendingSystem +@ stub NdfRunDllDuplicateIPOffendingSystem +@ stub NdfRunDllHelpTopic +@ stub NdfCancelIncident +@ stdcall NdfCloseIncident(ptr) +@ stdcall NdfCreateConnectivityIncident(ptr) +@ stub NdfCreateDNSIncident +@ stub NdfCreateGroupingIncident +@ stub NdfCreateInboundIncident +@ stub NdfCreateIncident +@ stub NdfCreateNetConnectionIncident +@ stub NdfCreatePnrpIncident +@ stub NdfCreateSharingIncident +@ stdcall NdfCreateWebIncident(str ptr) +@ stub NdfCreateWebIncidentEx +@ stdcall NdfCreateWinSockIncident(ptr str long str ptr ptr) +@ stdcall NdfDiagnoseIncident(ptr ptr ptr long long) +@ stdcall NdfExecuteDiagnosis(ptr ptr) +@ stub NdfGetTraceFile +@ stub NdfRepairIncident +@ stub NdfRepairIncidentEx diff --git a/dlls/ndfapi/ndfapi_main.c b/dlls/ndfapi/ndfapi_main.c new file mode 100755 index 00000000000..c08153f03b8 --- /dev/null +++ b/dlls/ndfapi/ndfapi_main.c @@ -0,0 +1,70 @@ +/* +* Copyright 2026 Alistair Leslie-Hughes + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ +#include <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "winsock2.h" + +#include "ndfapi.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(ndfapi); + +STDAPI NdfCloseIncident(NDFHANDLE handle) +{ + FIXME("%p\n", handle); + + return E_NOTIMPL; +} + +STDAPI NdfCreateConnectivityIncident(NDFHANDLE *handle) +{ + FIXME("%p\n", handle); + + return E_NOTIMPL; +} + +STDAPI NdfCreateWebIncident(LPCWSTR url, NDFHANDLE *handle) +{ + FIXME("%s, %p\n", debugstr_w(url), handle); + + return E_NOTIMPL; +} + +STDAPI NdfCreateWinSockIncident(SOCKET sock, LPCWSTR host, USHORT port, LPCWSTR appId, SID *userId, NDFHANDLE *handle) +{ + FIXME("%Ix, %s, %s, %p, %p\n", sock, debugstr_w(host), debugstr_w(appId), userId, handle); + + return E_NOTIMPL; +} + +STDAPI NdfDiagnoseIncident(NDFHANDLE Handle, ULONG *RootCauseCount, RootCauseInfo **RootCauses, DWORD dwWait, DWORD dwFlags) +{ + FIXME("%p, %p, %p, %ld, %ld\n", Handle, RootCauseCount, RootCauses, dwWait, dwFlags); + + return E_NOTIMPL; +} + +STDAPI NdfExecuteDiagnosis(NDFHANDLE handle, HWND hwnd) +{ + FIXME("%p, %p\n", handle, hwnd); + + return E_NOTIMPL; +} -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10958
Why is there a commented out IMPORTS line? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10958#note_140821
participants (3)
-
Alistair Leslie-Hughes -
Alistair Leslie-Hughes (@alesliehughes) -
Elizabeth Figura (@zfigura)