MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / queryEvents

Function queryEvents

extensions/windows-event-log/tests/BookmarkTests.cpp:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71unique_evt_handle queryEvents() {
72 std::wstring query = L"Event/System/EventID=" + std::to_wstring(BOOKMARK_TESTS_OPCODE);
73 unique_evt_handle results{EvtQuery(NULL, APPLICATION_CHANNEL.c_str(), query.c_str(), EvtQueryChannelPath | EvtQueryReverseDirection)};
74 if (!results) {
75 FAIL("EvtQuery() failed; error code: " << GetLastError());
76 }
77 return results;
78}
79
80unique_evt_handle getFirstEventFromResults(const unique_evt_handle& results) {
81 REQUIRE(results);

Callers 1

BookmarkTests.cppFile · 0.85

Calls 2

to_wstringFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected