mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[IPHLPAPI] Improve function stubs
This commit is contained in:
parent
2adbfdf6cd
commit
76eed61813
1 changed files with 128 additions and 68 deletions
|
@ -1,120 +1,180 @@
|
|||
#include <stubs.h>
|
||||
|
||||
// These are here so we can forward the decorated export functions.
|
||||
// Without forwarding, we'll lose the decoration
|
||||
// These are here so we can get the decorated export functions.
|
||||
// With autogenerated stubs we'll lose the decoration
|
||||
// See:
|
||||
// https://jira.reactos.org/browse/CORE-8462
|
||||
// https://jira.reactos.org/browse/CORE-15665
|
||||
|
||||
int __stdcall PfAddFiltersToInterface(long a0, long a1, long a2, long a3, long a4, long a5)
|
||||
#include <config.h>
|
||||
#include "iphlpapi_private.h"
|
||||
#include <fltdefs.h>
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);
|
||||
|
||||
DWORD
|
||||
WINAPI
|
||||
PfAddFiltersToInterface(
|
||||
INTERFACE_HANDLE ih,
|
||||
DWORD cInFilters,
|
||||
PPF_FILTER_DESCRIPTOR pfiltIn,
|
||||
DWORD cOutFilters,
|
||||
PPF_FILTER_DESCRIPTOR pfiltOut,
|
||||
PFILTER_HANDLE pfHandle)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfAddFiltersToInterface(0x%lx,0x%lx,0x%lx,0x%lx,0x%lx,0x%lx)\n", (long)a0, (long)a1, (long)a2, (long)a3, (long)a4, (long)a5);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfAddGlobalFilterToInterface(long a0, long a1)
|
||||
DWORD
|
||||
PFEXPORT
|
||||
WINAPI
|
||||
PfAddGlobalFilterToInterface(
|
||||
INTERFACE_HANDLE pInterface,
|
||||
GLOBAL_FILTER gfFilter)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfAddGlobalFilterToInterface(0x%lx,0x%lx)\n", (long)a0, (long)a1);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfBindInterfaceToIPAddress(long a0, long a1, long a2)
|
||||
PFAPIENTRY
|
||||
PfBindInterfaceToIPAddress(
|
||||
INTERFACE_HANDLE pInterface,
|
||||
PFADDRESSTYPE pfatType,
|
||||
PBYTE IPAddress)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfBindInterfaceToIPAddress(0x%lx,0x%lx,0x%lx)\n", (long)a0, (long)a1, (long)a2);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfBindInterfaceToIndex(long a0, long a1, long a2, long a3)
|
||||
PFAPIENTRY
|
||||
PfBindInterfaceToIndex(
|
||||
INTERFACE_HANDLE pInterface,
|
||||
DWORD dwIndex,
|
||||
PFADDRESSTYPE pfatLinkType,
|
||||
PBYTE LinkIPAddress)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfBindInterfaceToIndex(0x%lx,0x%lx,0x%lx,0x%lx)\n", (long)a0, (long)a1, (long)a2, (long)a3);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfCreateInterface(long a0, long a1, long a2, long a3, long a4, long a5)
|
||||
PFAPIENTRY
|
||||
PfCreateInterface(
|
||||
DWORD dwName,
|
||||
PFFORWARD_ACTION inAction,
|
||||
PFFORWARD_ACTION outAction,
|
||||
BOOL bUseLog,
|
||||
BOOL bMustBeUnique,
|
||||
INTERFACE_HANDLE* ppInterface)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfCreateInterface(0x%lx,0x%lx,0x%lx,0x%lx,0x%lx,0x%lx)\n", (long)a0, (long)a1, (long)a2, (long)a3, (long)a4, (long)a5);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfDeleteInterface(long a0)
|
||||
PFAPIENTRY
|
||||
PfDeleteInterface(
|
||||
INTERFACE_HANDLE pInterface)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfDeleteInterface(0x%lx)\n", (long)a0);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfDeleteLog()
|
||||
PFAPIENTRY
|
||||
PfDeleteLog(
|
||||
VOID)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfDeleteLog()\n");
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfGetInterfaceStatistics(long a0, long a1, long a2, long a3)
|
||||
PFAPIENTRY
|
||||
PfGetInterfaceStatistics(
|
||||
INTERFACE_HANDLE pInterface,
|
||||
PPF_INTERFACE_STATS ppfStats,
|
||||
PDWORD pdwBufferSize,
|
||||
BOOL fResetCounters)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfGetInterfaceStatistics(0x%lx,0x%lx,0x%lx,0x%lx)\n", (long)a0, (long)a1, (long)a2, (long)a3);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfMakeLog(long a0)
|
||||
PFAPIENTRY
|
||||
PfMakeLog(
|
||||
HANDLE hEvent)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfMakeLog(0x%lx)\n", (long)a0);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfRebindFilters(long a0, long a1)
|
||||
PFAPIENTRY
|
||||
PfRebindFilters(
|
||||
INTERFACE_HANDLE pInterface,
|
||||
PPF_LATEBIND_INFO pLateBindInfo)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfRebindFilters(0x%lx,0x%lx)\n", (long)a0, (long)a1);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfRemoveFilterHandles(long a0, long a1, long a2)
|
||||
PFAPIENTRY
|
||||
PfRemoveFilterHandles(
|
||||
INTERFACE_HANDLE pInterface,
|
||||
DWORD cFilters,
|
||||
PFILTER_HANDLE pvHandles)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfRemoveFilterHandles(0x%lx,0x%lx,0x%lx)\n", (long)a0, (long)a1, (long)a2);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfRemoveFiltersFromInterface(long a0, long a1, long a2, long a3, long a4)
|
||||
PFAPIENTRY
|
||||
PfRemoveFiltersFromInterface(
|
||||
INTERFACE_HANDLE ih,
|
||||
DWORD cInFilters,
|
||||
PPF_FILTER_DESCRIPTOR pfiltIn,
|
||||
DWORD cOutFilters,
|
||||
PPF_FILTER_DESCRIPTOR pfiltOut)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfRemoveFiltersFromInterface(0x%lx,0x%lx,0x%lx,0x%lx,0x%lx)\n", (long)a0, (long)a1, (long)a2, (long)a3, (long)a4);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfRemoveGlobalFilterFromInterface(long a0, long a1)
|
||||
PFAPIENTRY
|
||||
PfRemoveGlobalFilterFromInterface(
|
||||
INTERFACE_HANDLE pInterface,
|
||||
GLOBAL_FILTER gfFilter)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfRemoveGlobalFilterFromInterface(0x%lx,0x%lx)\n", (long)a0, (long)a1);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfSetLogBuffer(long a0, long a1, long a2, long a3, long a4, long a5, long a6)
|
||||
PFAPIENTRY
|
||||
PfSetLogBuffer(
|
||||
PBYTE pbBuffer,
|
||||
DWORD dwSize,
|
||||
DWORD dwThreshold,
|
||||
DWORD dwEntries,
|
||||
PDWORD pdwLoggedEntries,
|
||||
PDWORD pdwLostEntries,
|
||||
PDWORD pdwSizeUsed)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfSetLogBuffer(0x%lx,0x%lx,0x%lx,0x%lx,0x%lx,0x%lx,0x%lx)\n", (long)a0, (long)a1, (long)a2, (long)a3, (long)a4, (long)a5, (long)a6);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfTestPacket(long a0, long a1, long a2, long a3, long a4)
|
||||
PFAPIENTRY
|
||||
PfTestPacket(
|
||||
INTERFACE_HANDLE pInInterface OPTIONAL,
|
||||
INTERFACE_HANDLE pOutInterface OPTIONAL,
|
||||
DWORD cBytes,
|
||||
PBYTE pbPacket,
|
||||
PPFFORWARD_ACTION ppAction)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfTestPacket(0x%lx,0x%lx,0x%lx,0x%lx,0x%lx)\n", (long)a0, (long)a1, (long)a2, (long)a3, (long)a4);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
int __stdcall PfUnBindInterface(long a0)
|
||||
PFAPIENTRY
|
||||
PfUnBindInterface(
|
||||
INTERFACE_HANDLE pInterface)
|
||||
{
|
||||
DbgPrint("WARNING: calling stub PfUnBindInterface(0x%lx)\n", (long)a0);
|
||||
__wine_spec_unimplemented_stub("iphlpapi.dll", __FUNCTION__);
|
||||
return 0;
|
||||
UNIMPLEMENTED;
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue