hi,every body:
i used WFP FwpsFlowAssociateContext0 failed with win 7.it return error code is -107341811(bad param).
this is my code and the windbg display runtime value is available,pleasa tell me why this API is FAIL.
the windbg display the API param.

MY CODE:
if (FWPS_IS_METADATA_FIELD_PRESENT(inMetaValues, FWPS_METADATA_FIELD_FLOW_HANDLE))
{
flowHandle = inMetaValues->flowHandle;
}
// Get the flow handle
if (FWPS_IS_METADATA_FIELD_PRESENT(inMetaValues, FWPS_METADATA_FIELD_PROCESS_ID))//检测是否接受PID信息
{
processId = inMetaValues->processId;
}
context =(PFLOW_CONTEXT)ExAllocatePoolWithTag( NonPagedPool, sizeof(FLOW_CONTEXT), TAG_NAME_CALLOUT);
if (context == NULL) {
classifyOut->actionType = FWP_ACTION_CONTINUE;//如果条件为真则启动
goto cleanup;
}
else
{
context->flowHandle = inMetaValues->flowHandle;
context->processId=processId;
status = FwpsFlowAssociateContext0(context->flowHandle,FWPS_LAYER_INBOUND_TRANSPORT_V4,YgTcpCallinId, (UINT64)context);
if(status==STATUS_OBJECT_NAME_EXISTS)
{
classifyOut->actionType = FWP_ACTION_CONTINUE;
goto cleanup;
}
if (status != STATUS_SUCCESS)
{
classifyOut->actionType = FWP_ACTION_CONTINUE;
goto cleanup;
}
}