MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / ACT_NAME

Class ACT_NAME

IntelPresentMon/KernelProcess/kact/SetCapture.h:16–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 using namespace ::pmon::ipc::act;
15
16 class ACT_NAME : public ACT_TYPE<ACT_NAME, ACT_EXEC_CTX>
17 {
18 public:
19 static constexpr const char* Identifier = STRINGIFY(ACT_NAME);
20 struct Params
21 {
22 bool active;
23
24 template<class A> void serialize(A& ar) {
25 ar(active);
26 }
27 };
28 struct Response {
29 template<class A> void serialize(A& ar) {
30 }
31 };
32 private:
33 friend class ACT_TYPE<ACT_NAME, ACT_EXEC_CTX>;
34 static Response Execute_(const ACT_EXEC_CTX& ctx, SessionContext& stx, Params&& in)
35 {
36 (*ctx.ppKernel)->SetCapture(in.active);
37 return {};
38 }
39 };
40
41 ACTION_REG();
42}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected