共用方式為


覆寫預設 MPR 的逾時間隔

多個提供者路由器 (MPR) 會呼叫 NPGetCaps ,以找出網路提供者何時啟動(nIndex 設定為 WNNC_START)。 MPR 接著會等候所有網路提供者所指定的最長逾時期間,再向使用者呈現合併的網路。 如果其中一個網路提供者不知道何時會啟動,MPR 會針對該提供者使用預設的逾時時間為 60 秒。

如有必要,系統管理員可以藉由建立下列 REG_DWORD 登錄逾時來覆寫預設逾時,其中 n 是以毫秒為單位的超時時間間隔:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\RestoreTimeout = n

下列偽碼顯示 MPR 處理逾時的完整的邏輯流程。

If there is a RegistryTimeout,
Then MaxTimeout = RegistryTimeout.
Otherwise,
MaxTimeout = 0.
For each provider,
if the provider does not supply a time-out and
if there is a RegistryTimeout,
ProviderTimeout is set to RegistryTimeout.
Otherwise,
ProviderTimeout is set to DefaultTimeout.
Otherwise,
If the ProviderTimeout is longer than MaxTimeout,
MaxTimeout = ProviderTimeout.