Commit 4050ceb2 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

iphlpapi: Add GetCurrentThreadCompartmentId stub and a test.

parent 900ba826
......@@ -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**);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment