After stubbing the two functions, the program is able to at least print its help text and describe what it can do.
From: Alex Henrie alexhenrie24@gmail.com
--- include/Makefile.in | 1 + include/netmon.h | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 include/netmon.h
diff --git a/include/Makefile.in b/include/Makefile.in index 27360fa5f21..153830c32a8 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -557,6 +557,7 @@ SOURCES = \ netioapi.h \ netiodef.h \ netlistmgr.idl \ + netmon.h \ newdev.h \ nldef.h \ npapi.h \ diff --git a/include/netmon.h b/include/netmon.h new file mode 100644 index 00000000000..cf938e7c98e --- /dev/null +++ b/include/netmon.h @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Alex Henrie + * + * 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 + */ + +#ifndef __WINE_NETMON_H +#define __WINE_NETMON_H + +typedef const void *HBLOB; + +#endif /* __WINE_NETMON_H */
From: Alex Henrie alexhenrie24@gmail.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54671 --- dlls/npptools/Makefile.in | 3 +++ dlls/npptools/blob.c | 28 ++++++++++++++++++++++++++++ dlls/npptools/npptools.spec | 2 +- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 dlls/npptools/blob.c
diff --git a/dlls/npptools/Makefile.in b/dlls/npptools/Makefile.in index 4aa7f466fac..029a6bac684 100644 --- a/dlls/npptools/Makefile.in +++ b/dlls/npptools/Makefile.in @@ -1,3 +1,6 @@ MODULE = npptools.dll
EXTRADLLFLAGS = -Wb,--prefer-native + +C_SRCS = \ + blob.c diff --git a/dlls/npptools/blob.c b/dlls/npptools/blob.c new file mode 100644 index 00000000000..bd13c843af2 --- /dev/null +++ b/dlls/npptools/blob.c @@ -0,0 +1,28 @@ +/* + * Copyright 2023 Alex Henrie + * + * 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 "netmon.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(netmon); + +DWORD CDECL CreateBlob(HBLOB *blob) +{ + FIXME("(%p) stub\n", blob); + return ERROR_CALL_NOT_IMPLEMENTED; +} diff --git a/dlls/npptools/npptools.spec b/dlls/npptools/npptools.spec index 9f69e21dd7b..39b4d94f902 100644 --- a/dlls/npptools/npptools.spec +++ b/dlls/npptools/npptools.spec @@ -1,5 +1,5 @@ @ stub ClearEventData -@ stub CreateBlob +@ cdecl CreateBlob(ptr) @ stub CreateNPPInterface @ stub DestroyBlob @ stub DestroyNPPBlobTable
From: Alex Henrie alexhenrie24@gmail.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54671 --- dlls/npptools/blob.c | 6 ++++++ dlls/npptools/npptools.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/npptools/blob.c b/dlls/npptools/blob.c index bd13c843af2..a5ec6ee1dcf 100644 --- a/dlls/npptools/blob.c +++ b/dlls/npptools/blob.c @@ -26,3 +26,9 @@ DWORD CDECL CreateBlob(HBLOB *blob) FIXME("(%p) stub\n", blob); return ERROR_CALL_NOT_IMPLEMENTED; } + +DWORD CDECL DestroyBlob(HBLOB blob) +{ + FIXME("(%p) stub\n", blob); + return ERROR_CALL_NOT_IMPLEMENTED; +} diff --git a/dlls/npptools/npptools.spec b/dlls/npptools/npptools.spec index 39b4d94f902..1b402322b0d 100644 --- a/dlls/npptools/npptools.spec +++ b/dlls/npptools/npptools.spec @@ -1,7 +1,7 @@ @ stub ClearEventData @ cdecl CreateBlob(ptr) @ stub CreateNPPInterface -@ stub DestroyBlob +@ cdecl DestroyBlob(ptr) @ stub DestroyNPPBlobTable @ stub DuplicateBlob @ stub FilterNPPBlob