Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] i use c++ 11 and i create a payload filter then failed , status = ERROR_NOT_FOUND #213

Open
ShiverZm opened this issue Aug 16, 2023 · 0 comments

Comments

@ShiverZm
Copy link

just a part of code, just referen to this msdn

`
PayloadPredicateCreate(
&Predicates[PredicateCount++],
(PWSTR)L"event_id",
PAYLOADFIELD_EQ,
(PWSTR)L"1214");

//PayloadPredicateCreate(
//    &Predicates[PredicateCount++],
//    L"version",
//    PAYLOADFIELD_IS,
//    L"0");

Status = TdhCreatePayloadFilter(
    &guid,
    &TCPIPTransportPacketDropsEvent,
    FALSE,      // Match all predicates (AND)
    PredicateCount,
    Predicates,
    &EventFilters[FilterCount++]);
if (Status != ERROR_SUCCESS) {
    printf("TdhCreatePayloadFilter() failed with %lu\n", Status);
    return -1;
}


// Combine the interim filters into a final filter descriptor.

Status = TdhAggregatePayloadFilters(
    FilterCount,
    EventFilters,
    NULL,
    &FilterDescriptor);
if (Status != ERROR_SUCCESS) {
    printf("TdhAggregatePayloadFilters() failed with %lu\n", Status);
    return -1;
}
`

Status = ERROR_NOT_FOUND

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant