#define MySearchList(pHdr, Ptr) \
for ( Ptr = (pHdr)->Flink; Ptr != (pHdr); Ptr = Ptr->Flink )
if ( ARGUMENT_PRESENT(InstanceId) ) {
MySearchList (&AdvFcbHeader->FilterContexts, list) {
ctx = CONTAINING_RECORD(list, FSRTL_PER_STREAM_CONTEXT, Links);
if (ctx->OwnerId == OwnerId && ctx->InstanceId == InstanceId) {
rtnCtx = ctx;
break;
}
}
}