共用方式為


FwpsNetBufferListRetrieveContext0 函式 (fwpsk.h)

FwpsNetBufferListRetrieveContext0 函式會擷取與在另一層中標記的網路緩衝區清單相關聯的內容。

NoteFwpsNetBufferListRetrieveContext0 是 FwpsNetBufferListRetrieveContext 的特定版本。 如需詳細資訊,請參閱 糧食計劃署 Version-Independent 名稱和以特定版本的 Windows 為目標。
 

語法

NTSTATUS FwpsNetBufferListRetrieveContext0(
  [in, out] NET_BUFFER_LIST *netBufferList,
  [in]      UINT64          contextTag,
  [in]      BOOLEAN         removeContext,
  [in]      UINT32          flags,
  [out]     UINT64          *context
);

參數

[in, out] netBufferList

網路緩衝區清單,指出圖說文字驅動程式感興趣的一或多個封包。 如果已設定 removeContext,則傳回的網路緩衝區清單將會移除內容。

[in] contextTag

呼叫 取得的本機唯一標識碼 FwpsNetBufferListGetTagForContext0 函式。 這是初始呼叫 FwpsNetBufferListAssociateContext0中使用的內容標記。

[in] removeContext

如果設定,FwpsNetBufferListRetrieveContext0 除了擷取內容之外,還會移除內容關聯。

[in] flags

此參數保留供日後使用,且設定為零。

[out] context

初始呼叫中由圖說文字驅動程式指派給封包的內容,FwpsNetBufferListAssociateContext0

傳回值

FwpsNetBufferListRetrieveContext0 函式會傳回下列其中一個 NTSTATUS 程式代碼。

傳回碼 描述
STATUS_SUCCESS
關聯成功。
其他狀態代碼
發生錯誤。

言論

FwpsNetBufferListRetrieveContext0 函式會擷取在另一層中標記的網路緩衝區清單。

您也可以藉由設定 removeContext 參數,使用此函式來移除內容關聯。

要求

要求 價值
最低支援的用戶端 從 Windows 7 開始提供。
目標平臺 普遍
標頭 fwpsk.h (包括 Fwpsk.h)
連結庫 Fwpkclnt.lib
IRQL <= DISPATCH_LEVEL

另請參閱

FwpsNetBufferListAssociateContext0 FwpsNetBufferListGetTagForContext0 FwpsNetBufferListRemoveContext0

NET_BUFFER_LIST