iphlpapi: Add GetCurrentThreadCompartmentId stub and a test.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54599
This commit is contained in:
parent
900ba82654
commit
4050ceb22f
4 changed files with 20 additions and 1 deletions
|
@ -80,7 +80,7 @@
|
|||
@ stdcall GetBestRoute( long long ptr )
|
||||
@ stdcall GetBestRoute2( ptr long ptr ptr long ptr ptr )
|
||||
@ stub GetBestRouteFromStack
|
||||
#@ stub GetCurrentThreadCompartmentId
|
||||
@ stdcall GetCurrentThreadCompartmentId()
|
||||
@ stdcall GetExtendedTcpTable( ptr ptr long long long long )
|
||||
@ stdcall GetExtendedUdpTable( ptr ptr long long long long )
|
||||
@ stdcall GetFriendlyIfIndex( long )
|
||||
|
|
|
@ -4750,3 +4750,12 @@ DWORD WINAPI Icmp6SendEcho2( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc_ro
|
|||
SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
||||
return 0;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* GetCurrentThreadCompartmentId (IPHLPAPI.@)
|
||||
*/
|
||||
NET_IF_COMPARTMENT_ID WINAPI GetCurrentThreadCompartmentId( void )
|
||||
{
|
||||
FIXME( "stub\n" );
|
||||
return NET_IF_COMPARTMENT_ID_PRIMARY;
|
||||
}
|
||||
|
|
|
@ -2893,6 +2893,14 @@ static void test_ConvertGuidToString( void )
|
|||
ok( err == ERROR_INVALID_PARAMETER, "got %ld\n", err );
|
||||
}
|
||||
|
||||
static void test_compartments(void)
|
||||
{
|
||||
NET_IF_COMPARTMENT_ID id;
|
||||
|
||||
id = GetCurrentThreadCompartmentId();
|
||||
ok(id == NET_IF_COMPARTMENT_ID_PRIMARY, "got %u\n", id);
|
||||
}
|
||||
|
||||
START_TEST(iphlpapi)
|
||||
{
|
||||
|
||||
|
@ -2927,6 +2935,7 @@ START_TEST(iphlpapi)
|
|||
test_ParseNetworkString();
|
||||
test_NotifyUnicastIpAddressChange();
|
||||
test_ConvertGuidToString();
|
||||
test_compartments();
|
||||
freeIPHlpApi();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -250,6 +250,7 @@ DWORD WINAPI ConvertInterfaceNameToLuidA(const char*,NET_LUID*);
|
|||
DWORD WINAPI ConvertInterfaceNameToLuidW(const WCHAR*,NET_LUID*);
|
||||
DWORD WINAPI ConvertLengthToIpv4Mask(ULONG,ULONG*);
|
||||
void WINAPI FreeMibTable(void*);
|
||||
NET_IF_COMPARTMENT_ID WINAPI GetCurrentThreadCompartmentId(void);
|
||||
DWORD WINAPI GetIfEntry2(MIB_IF_ROW2*);
|
||||
DWORD WINAPI GetIfEntry2Ex(MIB_IF_TABLE_LEVEL,MIB_IF_ROW2*);
|
||||
DWORD WINAPI GetIfTable2(MIB_IF_TABLE2**);
|
||||
|
|
Loading…
Add table
Reference in a new issue