[This is preliminary documentation and subject to change.]
DWORD
APIENTRY
SetInterfaceConfigInfo(
IN DWORD dwIndex,
IN PVOID pConfig
)
/*++
Routine Description
Arguments
Return Value
NO_ERROR
--*/
{
PNT_IF pIf;
PLIST_ENTRY pleNode;
PINTRNL_IF pBind;
ULONG i;
PSAMPLE_PROTOCOL_INTERFACE_INFO pIfInfo;
EnterProtocolApi();
TraceEnter("SetInterfaceConfigInfo");
if(pConfig == NULL)
{
//
// A NULL config means no change
//
TraceLeave("SetInterfaceConfigInfo");
ExitProtocolApi();
return NO_ERROR;
}
EnterCriticalSection(&g_csIfListLock);
pIf = GetIfBlockGivenIndex(dwIndex);
if(pIf == NULL)
{
Trace1(ERR,
"SetInterfaceConfigInfo: Interface %d does not exist",
dwIndex);
TraceLeave("SetInterfaceConfigInfo");
ExitProtocolApi();
return ERROR_INVALID_PARAMETER;
}
return NO_ERROR;
}